Changeset bb9f322 in sasview for sansview/perspectives/fitting/models.py
- Timestamp:
- Mar 30, 2011 10:57:16 AM (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:
- cd0d039
- Parents:
- b7e6bd3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/perspectives/fitting/models.py
r9466f2d6 rbb9f322 135 135 return self.mydict 136 136 137 class ModelManager :137 class ModelManagerBase: 138 138 """ 139 139 """ … … 159 159 event_owner = None 160 160 last_time_dir_modified = 0 161 162 161 def __init__(self): 163 162 """ 164 163 """ 164 165 165 self.stored_plugins = {} 166 166 self._getModelList() 167 167 168 168 169 def findModels(self): … … 416 417 if os.path.isdir(PLUGIN_DIR): 417 418 temp = os.path.getmtime(PLUGIN_DIR) 419 print "update", self.last_time_dir_modified, temp 418 420 if self.last_time_dir_modified != temp: 419 421 is_modified = True 420 422 self.last_time_dir_modified = temp 423 421 424 return is_modified 422 425 … … 609 612 610 613 614 class ModelManager(object): 615 """ 616 implement model 617 """ 618 __modelmanager = ModelManagerBase() 619 620 def findModels(self): 621 return self.__modelmanager.findModels() 622 623 def _getModelList(self): 624 return self.__modelmanager._getModelList() 625 626 def is_changed(self): 627 return self.__modelmanager.is_changed() 628 629 def update(self): 630 print "update %%%" 631 return self.__modelmanager.update() 632 633 def populate_menu(self, modelmenu, event_owner): 634 return self.__modelmanager.populate_menu(modelmenu, event_owner) 635 636 def _on_model(self, evt): 637 return self.__modelmanager._on_model(evt) 638 639 def _get_multifunc_models(self): 640 return self.__modelmanager._get_multifunc_models() 641 642 def get_model_list(self): 643 return self.__modelmanager.get_model_list() 611 644 612 645
Note: See TracChangeset
for help on using the changeset viewer.