Ignore:
Timestamp:
Jun 26, 2017 6:22:56 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
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
Message:

move models.py to sascalc/fit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/fitpanel.py

    r67b0a99 r65f3930  
    99from wx.aui import AuiNotebook as nb 
    1010 
     11from sas.sascalc.fit.models import ModelManager 
     12 
    1113from sas.sasgui.guiframe.panel_base import PanelBase 
    1214from sas.sasgui.guiframe.events import PanelOnFocusEvent, StatusEvent 
    1315from sas.sasgui.guiframe.dataFitting import check_data_validity 
    14 from sas.sasgui.perspectives.fitting.simfitpage import SimultaneousFitPage 
    15  
    16 import basepage 
    17 import models 
     16 
     17 
     18from . import basepage 
     19from .fitpage import FitPage 
     20from .simfitpage import SimultaneousFitPage 
     21from .batchfitpage import BatchFitPage 
     22from .fitting_widgets import BatchDataDialog 
     23 
    1824_BOX_WIDTH = 80 
    1925 
     
    4652        self.event_owner = None 
    4753        # dictionary of miodel {model class name, model class} 
    48         self.menu_mng = models.ModelManager() 
     54        self.menu_mng = ModelManager() 
    4955        self.model_list_box = self.menu_mng.get_model_list() 
    5056        # pageClosedEvent = nb.EVT_FLATNOTEBOOK_PAGE_CLOSING 
     
    310316        Add the simultaneous fit page 
    311317        """ 
    312         from simfitpage import SimultaneousFitPage 
    313318        page_finder = self._manager.get_page_finder() 
    314319        if caption == "Const & Simul Fit": 
     
    338343        """ 
    339344        if self.batch_on: 
    340             from batchfitpage import BatchFitPage 
    341345            panel = BatchFitPage(parent=self) 
    342346            self.batch_page_index += 1 
     
    345349        else: 
    346350            # Increment index of fit page 
    347             from fitpage import FitPage 
    348351            panel = FitPage(parent=self) 
    349352            self.fit_page_index += 1 
     
    443446        if data_1d_list and data_2d_list: 
    444447            # need to warning the user that this batch is a special case 
    445             from sas.sasgui.perspectives.fitting.fitting_widgets import \ 
    446                 BatchDataDialog 
    447448            dlg = BatchDataDialog(self) 
    448449            if dlg.ShowModal() == wx.ID_OK: 
Note: See TracChangeset for help on using the changeset viewer.