1 | """ |
---|
2 | A Data1D class compatible with guiframe from the output of DataLoader. |
---|
3 | """ |
---|
4 | from danse.common.plottools.plottables import Data1D as plotData1D |
---|
5 | from danse.common.plottools.plottables import Theory1D as plotTheory1D |
---|
6 | |
---|
7 | from DataLoader.data_info import Data1D as loader_data_1D |
---|
8 | |
---|
9 | class 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 | |
---|
23 | class 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 | |
---|