Changeset bac3988 in sasview for src/sas/sasgui/perspectives
- Timestamp:
- Mar 17, 2016 11:08:10 AM (9 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:
- 1c628f0
- Parents:
- a301204
- Location:
- src/sas/sasgui/perspectives
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/calculator/model_editor.py
rd85c194 rbac3988 574 574 if not self.is_p1_custom: 575 575 line = line.replace('#', '') 576 out_f.write(line % (name1 , name1) + "\n")576 out_f.write(line % (name1) + "\n") 577 577 else: 578 578 out_f.write(line + "\n") … … 586 586 if not self.is_p2_custom: 587 587 line = line.replace('#', '') 588 out_f.write(line % (name2 , name2) + "\n")588 out_f.write(line % (name2) + "\n") 589 589 else: 590 590 out_f.write(line + "\n") … … 1265 1265 # User can change the name of the model (only with single functional model) 1266 1266 #P1_model: 1267 #from sas .models.%s import %s as P11267 #from sasmodels.models import %s as P1 1268 1268 #from %s import Model as P1 1269 1269 1270 1270 #P2_model: 1271 #from sas .models.%s import %s as P21271 #from sasmodels.models import %s as P2 1272 1272 #from %s import Model as P2 1273 1273 import os -
src/sas/sasgui/perspectives/fitting/basepage.py
r50a77df rbac3988 1282 1282 else: 1283 1283 self.model_view.SetLabel("1D Mode") 1284 1284 1285 1285 ## set the select all check box to the a given state 1286 1286 self.cb1.SetValue(state.cb1) … … 1904 1904 m_list.append(self.model_dict[model]) 1905 1905 #else: 1906 # msg = "This model is disabled by Category Manager." 1906 # msg = "This model is disabled by Category Manager." 1907 1907 # wx.PostEvent(self.parent.parent, 1908 1908 # StatusEvent(status=msg, info="error")) … … 1945 1945 name = model.__class__.__name__ 1946 1946 if models.__name__ != "NoStructure": 1947 if hasattr(model, "oldname"): 1948 name = model.oldname 1949 elif hasattr(model, "name"): 1950 name = model.name 1947 name = model.name 1951 1948 mlist.append((name, models)) 1952 1949 … … 2417 2414 self._draw_model() 2418 2415 ## Need to use FitInside again here to replace the next four lines. 2419 ## Otherwised polydispersity off does not resize the scrollwindow. 2416 ## Otherwised polydispersity off does not resize the scrollwindow. 2420 2417 ## PDB Nov 28, 2015 2421 2418 self.FitInside() … … 2461 2458 self.values = {} 2462 2459 self.weights = {} 2463 2460 2464 2461 #from sas.models.dispersion_models import GaussianDispersion 2465 2462 from sasmodels.weights import GaussianDispersion … … 2970 2967 self.Show(False) 2971 2968 self.set_model_param_sizer(self.model) 2972 #self._set_sizer_dispersion() 2969 #self._set_sizer_dispersion() 2973 2970 self.state.magnetic_on = self.magnetic_on 2974 2971 self.SetupScrolling() … … 3597 3594 sizer_cat_box.Add(show_cat_button) 3598 3595 #self.shape_rbutton.SetValue(True) 3599 3596 3600 3597 sizer_radiobutton = wx.GridSizer(2, 2, 5, 5) 3601 3598 #sizer_radiobutton.Add(self.shape_rbutton) … … 3817 3814 event.Skip() 3818 3815 #pass 3819 -
src/sas/sasgui/perspectives/fitting/models.py
rf66d9d1 rbac3988 303 303 for mod_name in sasmodels.core.list_models(): 304 304 mod_def = sasmodels.core.load_model_info(mod_name) 305 self.model_dictionary[mod_def['oldname']] = make_class(mod_def,dtype=None,namestyle='oldname') 306 self.model_name_list.append(mod_def['oldname']) 305 self.model_dictionary[mod_def['name']] = make_class(mod_def,dtype=None,namestyle='name') 307 306 if mod_def['structure_factor'] == True: 308 self.struct_list.append(self.model_dictionary[mod_def[' oldname']])307 self.struct_list.append(self.model_dictionary[mod_def['name']]) 309 308 if mod_def['variant_info'] is not None: 310 self.multi_func_list.append(self.model_dictionary[mod_def['oldname']]) 309 self.multi_func_list.append(self.model_dictionary[mod_def['name']]) 310 else: 311 self.model_name_list.append(mod_def['name']) 311 312 if mod_def['ER'] is not None: 312 self.multiplication_factor.append(self.model_dictionary[mod_def[' oldname']])313 self.multiplication_factor.append(self.model_dictionary[mod_def['name']]) 313 314 314 315 #Looking for plugins
Note: See TracChangeset
for help on using the changeset viewer.