Changeset 65f3930 in sasview for src/sas/sasgui/perspectives/fitting/basepage.py
- Timestamp:
- Jun 26, 2017 6:22:56 PM (7 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, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 50fcb09
- Parents:
- 98e3f24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/basepage.py
rba8d326 r65f3930 19 19 from wx.lib.scrolledpanel import ScrolledPanel 20 20 21 from sasmodels.sasview_model import MultiplicationModel 21 22 from sasmodels.weights import MODELS as POLYDISPERSITY_MODELS 23 from sasmodels.weights import GaussianDispersion 22 24 23 25 from sas.sascalc.dataloader.data_info import Detector 24 26 from sas.sascalc.dataloader.data_info import Source 25 27 from sas.sascalc.fit.pagestate import PageState 28 from sas.sascalc.fit.models import PLUGIN_NAME_BASE 26 29 27 30 from sas.sasgui.guiframe.panel_base import PanelBase … … 38 41 from sas.sasgui.guiframe.documentation_window import DocumentationWindow 39 42 40 from sas.sasgui.perspectives.fitting.report_dialog import ReportDialog 43 from .report_dialog import ReportDialog 44 from .utils import get_weight 41 45 42 46 logger = logging.getLogger(__name__) … … 1214 1218 self.categorybox.Select(category_pos) 1215 1219 self._show_combox(None) 1216 from models import PLUGIN_NAME_BASE1217 1220 if self.categorybox.GetValue() == CUSTOM_MODEL \ 1218 1221 and PLUGIN_NAME_BASE not in state.formfactorcombobox: … … 1752 1755 temp_smear = self.current_smearer 1753 1756 # compute weight for the current data 1754 from sas.sasgui.perspectives.fitting.utils import get_weight1755 1757 flag = self.get_weight_flag() 1756 1758 weight = get_weight(data=self.data, is2d=self._is_2D(), flag=flag) … … 1778 1780 1779 1781 from sas.sasgui.plottools import Data1D as pf_data1d 1780 # from sas.sasgui.perspectives.theory.profile_dialog import SLDPanel1781 1782 from sas.sasgui.guiframe.local_perspectives.plotting.profile_dialog \ 1782 1783 import SLDPanel … … 2074 2075 2075 2076 if struct_factor is not None: 2076 from sasmodels.sasview_model import MultiplicationModel2077 2077 self.model = MultiplicationModel(form_factor(self.multi_factor), 2078 2078 struct_factor()) … … 2396 2396 self.weights = {} 2397 2397 2398 # from sas.models.dispersion_models import GaussianDispersion2399 from sasmodels.weights import GaussianDispersion2400 2398 if not self.disp_cb_dict: 2401 2399 self.sizer4_4.Clear(True)
Note: See TracChangeset
for help on using the changeset viewer.