Changeset 4f20b27 in sasview for sansview/perspectives


Ignore:
Timestamp:
May 15, 2009 12:08:44 PM (16 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
111acd2
Parents:
650f87d3
Message:

Added pr module to sansview and removed some conflicts with sansview

Location:
sansview/perspectives/pr
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/pr/inversion_panel.py

    r1f723e0 r4f20b27  
    983983        path = None 
    984984        dlg = wx.FileDialog(self, "Choose a file", os.getcwd(), "", "*.txt", wx.OPEN) 
     985 
    985986        if dlg.ShowModal() == wx.ID_OK: 
    986987            path = dlg.GetPath() 
  • sansview/perspectives/pr/pr.py

    r1f723e0 r4f20b27  
    326326        new_plot.xaxis("\\rm{r}", 'A') 
    327327        new_plot.yaxis("\\rm{P(r)} ","cm^{-3}") 
     328        new_plot.xtransform="x" 
     329        new_plot.ytransform="y"         
    328330             
    329331        wx.PostEvent(self.parent, NewPlotEvent(plot=new_plot, title="P(r) fit")) 
     
    520522 
    521523            elif item.name==graph.selected_plottable: 
    522                 return [["Compute P(r)", "Compute P(r) from distribution", self._on_context_inversion]]       
     524                if  item.name=="$I_{obs}(q)$": 
     525                    return [["Compute P(r)", "Compute P(r) from distribution", self._on_context_inversion]]      
     526 
     527                     
    523528                 
    524529        return [] 
     
    11001105        self.perspective = [] 
    11011106        self.perspective.append(self.control_panel.window_name) 
    1102          
    11031107        self.parent.Bind(EVT_PR_FILE, self._on_new_file) 
    11041108         
  • sansview/perspectives/pr/pr_thread.py

    r1f723e0 r4f20b27  
    11import sys, time 
    2 from calcthread import CalcThread 
     2from perspectives.fitting.calcthread import CalcThread 
    33 
    44class CalcPr(CalcThread): 
Note: See TracChangeset for help on using the changeset viewer.