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 a911b48 was
858fabed,
checked in by Gervaise Alina <gervyh@…>, 15 years ago
|
add small function in utils
|
-
Property mode set to
100644
|
File size:
709 bytes
|
Rev | Line | |
---|
[12aa9b5] | 1 | """ |
---|
| 2 | Adapters for fitting module |
---|
| 3 | """ |
---|
[81812d9] | 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 DataInfo |
---|
| 8 | |
---|
| 9 | class Data1D(plotData1D,DataInfo): |
---|
[12aa9b5] | 10 | |
---|
[81812d9] | 11 | def __init__(self,x=[],y=[],dx=None,dy=None,dxl=None, dxw=None): |
---|
| 12 | plotData1D.__init__(self, x, y, dx, dy) |
---|
| 13 | self.smearer=None |
---|
[858fabed] | 14 | |
---|
| 15 | self.dxl = dxl |
---|
| 16 | self.dxw = dxw |
---|
[81812d9] | 17 | |
---|
| 18 | class Theory1D(plotTheory1D,DataInfo): |
---|
| 19 | def __init__(self,x=[],y=[],dy=None,dxl=None, dxw=None): |
---|
[a644dc4] | 20 | plotTheory1D.__init__(self, x, y) |
---|
[81812d9] | 21 | self.smearer=None |
---|
[858fabed] | 22 | |
---|
| 23 | self.dxl = dxl |
---|
| 24 | self.dxw = dxw |
---|
[81812d9] | 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.