- Timestamp:
- Aug 24, 2016 11:27:54 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- e32e35a
- Parents:
- 96d293da
- Location:
- src/sas/sasgui/perspectives/corfunc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/corfunc/corfunc_panel.py
r96d293da rd45d590 111 111 return 112 112 if self.state.is_transformed: 113 self.transform_type = self.state.transform_type 113 114 self.compute_transform() 114 115 else: … … 134 135 if self._transformed_data is not None: 135 136 state.is_transformed = True 137 state.transform_type = self.transform_type 136 138 self.state = state 137 139 -
src/sas/sasgui/perspectives/corfunc/corfunc_state.py
r96d293da rd45d590 48 48 self.outputs = {} 49 49 self.is_extrapolated = False 50 self.transform_type = 'fourier' 50 51 self.is_transformed = False 51 52 52 53 self.saved_state = DEFAULT_STATE 53 # Will be filled on panel init as number of states increases54 self.state_list = {}55 54 self.timestamp = time.time() 56 55 … … 172 171 element.appendChild(new_doc.createTextNode(str(int(self.is_transformed)))) 173 172 173 if self.is_transformed: 174 element = new_doc.createElement("transform_type") 175 top_element.appendChild(element) 176 element.appendChild(new_doc.createTextNode(self.transform_type)) 177 174 178 # Output parameters 175 179 if self.outputs != {} and self.outputs is not None: … … 233 237 if entry is not None: 234 238 self.is_transformed = bool(int(entry.text.strip())) 239 entry = get_content('ns:transform_type', node) 240 self.transform_type = entry.text.strip() 235 241 236 242 # Parse outputs
Note: See TracChangeset
for help on using the changeset viewer.