source: sasview/guiframe/dataFitting.py @ e5c6fff

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since e5c6fff was 1abcb04, checked in by Mathieu Doucet <doucetm@…>, 15 years ago

guiframe: modified the dataFitting.Data1D to be a child class of DataLoader?.data_info.Data1D, as was originally designed. Added lots of TODOs for refactoring. Inserted a call to bridge the data of the newly defined Data1D to the output of DataLoader?. The data_loader module needs a lot of work.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1"""
2    A Data1D class compatible with guiframe from the output of DataLoader.
3"""
4from danse.common.plottools.plottables import Data1D as plotData1D
5from danse.common.plottools.plottables import Theory1D as plotTheory1D
6
7from DataLoader.data_info import Data1D as loader_data_1D
8
9class Data1D(plotData1D, loader_data_1D):
10    """
11        A Data1D class compatible with guiframe from
12        the output of DataLoader. The new class inherits
13        from DataLoader.data_info.Data1D
14    """
15    def __init__(self,x=[],y=[],dx=None,dy=None,dxl=None, dxw=None):
16        plotData1D.__init__(self, x, y, dx, dy)
17        loader_data_1D.__init__(self, x=x, y=y, dx=dx, dy=dy)
18        self.smearer=None
19       
20        self.dxl = dxl
21        self.dxw = dxw
22 
23class Theory1D(plotTheory1D, loader_data_1D):
24    """
25        A Theory1D class compatible with guiframe from
26        the output of DataLoader. The new class inherits
27        from DataLoader.data_info.Data1D
28    """
29    def __init__(self,x=[],y=[],dy=None,dxl=None, dxw=None):
30        plotTheory1D.__init__(self, x, y)
31        loader_data_1D.__init__(self, x=x, y=y, dx=dx, dy=dy)
32        self.smearer=None
33       
34        self.dxl = dxl
35        self.dxw = dxw
36 
Note: See TracBrowser for help on using the repository browser.