Changeset f24925ab in sasview for invariantview/perspectives/invariant/invariant.py
- Timestamp:
- Aug 1, 2010 2:32:53 PM (14 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- d45e7e9
- Parents:
- 0399c78
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant.py
rd318616 rf24925ab 47 47 # for your plug-in. This defines your plug-in "perspective" 48 48 self.perspective = [] 49 50 # is this data from *.inv file?51 self.is_state_data = False52 49 53 50 self.state_reader = None … … 238 235 if data is None: 239 236 return 240 if self.is_state_data: 241 self.is_state_data = False 242 else: 237 # set current data if not it's a state data 238 if not self.invariant_panel.is_state_data: 243 239 # Store reference to data 244 240 self.__data = data … … 253 249 :param state: invariant state 254 250 """ 255 256 251 # Write the state to file 257 252 # First, check that the data is of the right type 258 259 253 current_plottable = self.__data 260 254 … … 280 274 self.__data.group_id = datainfo.filename 281 275 self.__data.id = datainfo.filename 282 276 283 277 temp_state = copy.deepcopy(state) 284 278 # set state 279 self.invariant_panel.is_state_data = True 285 280 # Load the invariant states 286 281 # Make sure the user sees the invariant panel after loading 287 282 self.parent.set_perspective(self.perspective) 288 # set state 289 self.is_state_data = True 290 self.invariant_panel.is_state_data = True 291 self.invariant_panel.set_state(state=temp_state,data=self.__data) 292 283 self.invariant_panel.set_state(state=temp_state,data=self.__data) 293 284 294 285 except: 295 286 logging.error("invariant.set_state: %s" % sys.exc_value) 296 297 287 298 288 299 289 def plot_theory(self, data=None, name=None):
Note: See TracChangeset
for help on using the changeset viewer.