Changeset 9b18735 in sasview for invariantview/perspectives/invariant/invariant.py
- Timestamp:
- Aug 11, 2010 3:35:03 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:
- b63dc6e
- Parents:
- 3eb2811
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant.py
r4da35bc r9b18735 265 265 """ 266 266 Call-back method for the state reader. 267 This method is called when a .inv file is loaded.267 This method is called when a .inv/.svs file is loaded. 268 268 269 269 :param state: State object … … 271 271 self.temp_state = None 272 272 try: 273 273 274 if datainfo is None: 274 275 raise RuntimeError, "invariant.set_state: datainfo parameter cannot be None in standalone mode" 276 275 277 datainfo.meta_data['invstate'].file = datainfo.meta_data['invstate'].file 276 278 datainfo.name = datainfo.meta_data['invstate'].file … … 283 285 # set state 284 286 self.invariant_panel.is_state_data = True 285 # Load the invariant states287 286 288 # Make sure the user sees the invariant panel after loading 287 289 self.parent.set_perspective(self.perspective) 290 # Load the invariant states 288 291 self.temp_state = temp_state 289 292 #self.invariant_panel.set_state(state=temp_state,data=self.__data) 290 293 291 294 except: 292 295 logging.error("invariant.set_state: %s" % sys.exc_value) 293 296 294 def on_set_state_helper(self,event=None): 295 """ 297 def on_set_state_helper(self, event=None): 298 """ 299 Set the state when called by EVT_STATE_UPDATE event from guiframe 300 after a .inv/.svs file is loaded 296 301 """ 297 302 self.invariant_panel.set_state(state=self.temp_state,data=self.__data) 298 303 self.temp_state = None 304 305 299 306 300 307 def plot_theory(self, data=None, name=None):
Note: See TracChangeset
for help on using the changeset viewer.