Changeset 93f0a862 in sasview for fittingview/src/sans/perspectives
- Timestamp:
- Apr 3, 2012 4:07:35 PM (13 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:
- 213b445
- Parents:
- c3c050e
- Location:
- fittingview/src/sans/perspectives/fitting
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/src/sans/perspectives/fitting/basepage.py
rc3c050e r93f0a862 644 644 name = menu.GetLabel(event.GetId()) 645 645 self._on_select_model_helper() 646 if self.model != None: 647 self.m_name = self.model.name 646 648 if name in self.saved_states.keys(): 647 649 previous_state = self.saved_states[name] … … 649 651 650 652 self.reset_page(previous_state) 653 self.state.m_name = self.m_name 651 654 self.Show(True) 652 655 … … 1259 1262 #draw the pnael according to the new model parameter 1260 1263 self._on_select_model(event=None) 1264 1261 1265 # take care of 2D button 1262 1266 if data == None and self.model_view.IsEnabled(): … … 1328 1332 ## set the value of the current state to the state given as parameter 1329 1333 self.state = state.clone() 1334 self.state.m_name = self.m_name 1330 1335 1331 1336 def _reset_page_disp_helper(self, state): -
fittingview/src/sans/perspectives/fitting/fitpage.py
rd40038e r93f0a862 47 47 self.fit_started = False 48 48 self.weightbt_string = None 49 self.m_name = None 49 50 # get smear info from data 50 51 self._get_smear_info() … … 1255 1256 self.enable_fit_button() 1256 1257 if self.model != None: 1258 self.m_name = self.model.name 1259 self.state.m_name = self.m_name 1257 1260 self.rename_model() 1258 1261 self._set_copy_flag(True) -
fittingview/src/sans/perspectives/fitting/pagestate.py
rd40038e r93f0a862 172 172 # model on which the fit would be performed 173 173 self.model = model 174 self.m_name = None 174 175 #list of process done to model 175 176 self.process = [] … … 370 371 rep += "data's id : %s\n"%self.data_id 371 372 if self.model != None: 372 rep += "model name : %s\n"% self.model.__class__.__name__ 373 m_name = self.model.__class__.__name__ 374 if m_name == 'Model': 375 m_name = self.m_name 376 rep += "model name : %s\n"% m_name 373 377 else: 374 378 rep += "model name : None\n"
Note: See TracChangeset
for help on using the changeset viewer.