Changeset c3b4dcb in sasview for sansview/perspectives/fitting
- Timestamp:
- Jun 8, 2009 10:20:34 AM (16 years ago)
- 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:
- e5c6fff
- Parents:
- a7bd562
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/fitting.py
r05971e1 rc3b4dcb 2 2 import sys, wx, logging 3 3 import string, numpy, math 4 5 from danse.common.plottools.plottables import Data2D,Theory1D 4 import time 5 import thread 6 from danse.common.plottools.plottables import Theory1D 7 from danse.common.plottools.PlotPanel import PlotPanel 8 9 from sans.guiframe.dataFitting import Data2D 10 from sans.guiframe.dataFitting import Data1D 6 11 from sans.guiframe import dataFitting 7 from danse.common.plottools.PlotPanel import PlotPanel 12 8 13 from sans.guicomm.events import NewPlotEvent, StatusEvent 9 14 from sans.guicomm.events import EVT_SLICER_PANEL,ERR_DATA,EVT_REMOVE_DATA 10 15 from sans.guicomm.events import EVT_SLICER_PARS_UPDATE 11 from sans.guiframe import dataFitting 16 12 17 from sans.fit.AbstractFitEngine import Model 13 18 from sans.fit.AbstractFitEngine import FitAbort 14 19 15 20 from fitproblem import FitProblem … … 19 24 import fitpage 20 25 21 22 26 DEFAULT_BEAM = 0.005 23 27 DEFAULT_QMIN = 0.0001 24 28 DEFAULT_QMAX = 0.13 25 29 DEFAULT_NPTS = 50 26 import time27 import thread28 from sans.fit.AbstractFitEngine import FitAbort29 30 30 31 (PageInfoEvent, EVT_PAGE_INFO) = wx.lib.newevent.NewEvent() 32 33 31 34 class PlotInfo: 32 35 """ … … 169 172 # multiple times. 170 173 self.graph=graph 174 171 175 for item in graph.plottables: 172 176 if item.__class__.__name__ is "Data2D": 177 173 178 if hasattr(item,"is_data"): 174 179 if item.is_data: … … 278 283 279 284 280 data= dataFitting.Data1D(x=item.x, y=item.y,dx=dx, dy=dy, dxl=dxl, dxw=dxw) 285 data= Data1D(x=item.x, y=item.y,dx=dx, dy=dy) 286 data.dxl = dxl 287 data.dxw = dxw 281 288 282 289 data.name = item.name … … 294 301 data.yaxis(copy.deepcopy(item._yaxis),copy.deepcopy(item._yunit)) 295 302 ##group_id specify on which panel to plot this data 296 data.group_id = copy.deepcopy(item.group_id)303 data.group_id = item.group_id 297 304 return data 298 305 … … 675 682 data.is_data=True 676 683 684 677 685 ## create anew page 678 686 if item.name == self.panel.graph.selected_plottable or\ … … 1065 1073 1066 1074 from DataLoader import data_info 1067 info= data_info.Data1D(x= new_plot.x, y=new_plot.y)1075 info= Data1D(x= new_plot.x, y=new_plot.y) 1068 1076 info.title= new_plot.name 1069 1077 title= my_info.title
Note: See TracChangeset
for help on using the changeset viewer.