ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change
on this file since 672b8ab was
672b8ab,
checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago
|
Further fitpage implementation with tests SASVIEW-570
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | class FitPage(object): |
---|
2 | """ |
---|
3 | Container for all data related to the current fit page |
---|
4 | """ |
---|
5 | MIN_RANGE=0 |
---|
6 | MAX_RANGE=1 |
---|
7 | NPTS=2 |
---|
8 | NPTS_FIT=3 |
---|
9 | LOG_POINTS=4 |
---|
10 | WEIGHTING=5 |
---|
11 | SMEARING_OPTION=6 |
---|
12 | SMEARING_ACCURACY=7 |
---|
13 | SMEARING_MIN=8 |
---|
14 | SMEARING_MAX=9 |
---|
15 | def __init__(self, parent=None): |
---|
16 | """ |
---|
17 | Define the dictionary |
---|
18 | """ |
---|
19 | # Main tab |
---|
20 | self.current_category = "" |
---|
21 | self.current_model = "" |
---|
22 | self.current_factor = "" |
---|
23 | |
---|
24 | self.page_id = 0 |
---|
25 | self.data_is_loaded = False |
---|
26 | self.filename = "" |
---|
27 | self.data = None |
---|
28 | self.parameters_to_fit = [] |
---|
29 | |
---|
30 | # QModels |
---|
31 | self.param_model = None |
---|
32 | self.poly_model = None |
---|
33 | self.magnetism_model = None |
---|
34 | |
---|
35 | # Displayed values - tab #1 |
---|
36 | self.is_polydisperse = False |
---|
37 | self.is2D = False |
---|
38 | self.is_magnetism = False |
---|
39 | self.displayed_values = {} |
---|
40 | self.chi2 = None |
---|
41 | |
---|
42 | # Fit options - tab #2 |
---|
43 | self.fit_options = {} |
---|
44 | # Weight options - tab #2 |
---|
45 | #self.weighting_options = {} |
---|
46 | # Smearing options - tab #3 |
---|
47 | self.smearing_options = {} |
---|
48 | |
---|
49 | def save(self): |
---|
50 | """ |
---|
51 | Serialize the current state |
---|
52 | """ |
---|
53 | pass |
---|
54 | |
---|
55 | def load(self, location): |
---|
56 | """ |
---|
57 | Retrieve serialized state from specified location |
---|
58 | """ |
---|
59 | pass |
---|
60 | |
---|
61 | def saveAsXML(self): |
---|
62 | """ |
---|
63 | Serialize the current state |
---|
64 | """ |
---|
65 | # Connect to PageState.to_xml(), which serializes |
---|
66 | # to the existing XML with file I(Q) |
---|
67 | pass |
---|
68 | |
---|
Note: See
TracBrowser
for help on using the repository browser.