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