Changes in / [cde9d7d:b609c34] in sasview


Ignore:
Files:
10 added
6 deleted
20 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-docs/source/conf.py

    rd85c194 r82bc7a9  
    201201# -- Options for LaTeX output -------------------------------------------------- 
    202202 
     203LATEX_PREAMBLE=r""" 
     204\renewcommand{\AA}{\text{\r{A}}} % Allow \AA in math mode 
     205\usepackage[utf8]{inputenc}      % Allow unicode symbols in text 
     206\DeclareUnicodeCharacter {00B7} {\ensuremath{\cdot}}   % cdot 
     207\DeclareUnicodeCharacter {00B0} {\ensuremath{^\circ}}  % degrees 
     208\DeclareUnicodeCharacter {212B} {\AA}                  % Angstrom 
     209""" 
    203210latex_elements = { 
    204211# The paper size ('letterpaper' or 'a4paper'). 
    205 #'papersize': 'letterpaper', 
     212'papersize': 'a4paper', 
    206213 
    207214# The font size ('10pt', '11pt' or '12pt'). 
     
    209216 
    210217# Additional stuff for the LaTeX preamble. 
    211 #'preamble': '', 
     218'preamble': LATEX_PREAMBLE 
     219 
    212220} 
    213221 
  • docs/sphinx-docs/source/user/user.rst

    re0bbb7c re479a9f  
    88 
    99   Model Documentation <models/model_functions> 
     10    
     11   Tools <tools> 
     12    
     13   Types of Analysis <analysis> 
    1014 
    1115   Data Formats <sasgui/guiframe/data_formats_help> 
     
    1418    
    1519   Plotting Data/Models <sasgui/guiframe/graph_help> 
    16     
    17    Fitting Perspective <sasgui/perspectives/fitting/fitting> 
    18     
    19    P(r) Inversion Perspective <sasgui/perspectives/pr/pr_help> 
    20     
    21    Invariant Calculation Perspective <sasgui/perspectives/invariant/invariant_help> 
    22     
    23    Data Operations Tool <sasgui/perspectives/calculator/data_operator_help> 
    2420       
    25    Density/Volume Calculator Tool <sasgui/perspectives/calculator/density_calculator_help> 
    26     
    27    Generic SANS Calculator Tool <sasgui/perspectives/calculator/sas_calculator_help> 
    28     
    29    Image Viewer Tool <sasgui/perspectives/calculator/image_viewer_help> 
    30     
    31    Kiessig Thickness Calculator Tool <sasgui/perspectives/calculator/kiessig_calculator_help> 
    32     
    33    SLD Calculator Tool <sasgui/perspectives/calculator/sld_calculator_help> 
    34     
    35    Slit Size Calculator Tool <sasgui/perspectives/calculator/slit_calculator_help> 
    36     
    37    Q Resolution Estimator Tool <sasgui/perspectives/calculator/resolution_calculator_help> 
    38     
    39    Python Shell Tool <sasgui/perspectives/calculator/python_shell_help> 
    40  
    4121   Test Data <../test/testdata_help.rst> 
  • src/examples/test_chisq_panel.py

    rd7bb526 rc10d9d6c  
    8686        dy = numpy.sqrt(100*numpy.abs(y))/100 
    8787 
    88     from sas.plottools.plottables import Data1D, Theory1D, Chisq , Graph 
     88    from sas.sasgui.plottools.plottables import Data1D, Theory1D, Chisq , Graph 
    8989    data = Data1D(x,y,dy=dy) 
    9090    data.xaxis('distance', 'm') 
  • src/sas/sascalc/fit/AbstractFitEngine.py

    rb699768 rfc18690  
    140140            do the following: :: 
    141141             
    142                 from sas.models.qsmearing import smear_selection 
     142                from sas.sascalc.data_util.qsmearing import smear_selection 
    143143                smearer = smear_selection(some_data) 
    144144                fitdata1d = FitData1D( x= [1,3,..,], 
  • src/sas/sascalc/pr/fit/AbstractFitEngine.py

    rb699768 rfc18690  
    140140            do the following: :: 
    141141             
    142                 from sas.models.qsmearing import smear_selection 
     142                from sas.sascalc.data_util.qsmearing import smear_selection 
    143143                smearer = smear_selection(some_data) 
    144144                fitdata1d = FitData1D( x= [1,3,..,], 
  • src/sas/sasgui/guiframe/data_processor.py

    rd85c194 rfce0139  
    1010The organization of the classes goes as: 
    1111 
    12 .. image::  ../../user/guiframe/BatchGridClassLayout.png 
     12#Path to this is:           /sasview/src/sas/sasgui/guiframe/data_processor.py 
     13#Path to image is:          /sasview/src/sas/sasgui/guiframe/media/BatchGridClassLayout.png 
     14.. image::  ./guiframe/media/BatchGridClassLayout.png 
    1315   :align:   center 
    1416 
  • src/sas/sasgui/guiframe/dummyapp.py

    rd85c194 rb080ba8  
    77from sas.sasgui.guiframe.plugin_base import PluginBase 
    88 
    9 class DummyView(gui_manager.ViewApp): 
     9class DummyView(gui_manager.SasViewApp): 
    1010    """ 
    1111    """ 
  • src/sas/sasgui/guiframe/gui_manager.py

    r0d534de rb080ba8  
    34803480 
    34813481if __name__ == "__main__": 
    3482     app = ViewApp(0) 
     3482    app = SasViewApp(0) 
    34833483    app.MainLoop() 
  • src/sas/sasgui/perspectives/fitting/batchfitpage.py

    rd85c194 rfc18690  
    1515 
    1616from sas.sasgui.perspectives.fitting.basepage import PageInfoEvent 
    17 from sas.models.qsmearing import smear_selection 
     17from sas.sascalc.data_util.qsmearing import smear_selection 
    1818from sas.sasgui.perspectives.fitting.fitpage import FitPage 
    1919from sas.sasgui.perspectives.fitting.fitpage import check_data_validity 
  • src/sas/sasgui/perspectives/fitting/fit_thread.py

    rd85c194 raac161f1  
    9696            #some mssg and reset progress bar. 
    9797 
     98            # Shouldn't this be re-raising? ConsoleUpdate doesn't act on it. 
     99            # raise KeyboardInterrupt 
    98100            if self.handler is not None: 
    99101                self.handler.stop(msg=msg) 
  • src/sas/sasgui/perspectives/fitting/fitpage.py

    r7d265a8 rfc18690  
    2626from sas.sasgui.perspectives.fitting.basepage import BasicPage as BasicPage 
    2727from sas.sasgui.perspectives.fitting.basepage import PageInfoEvent as PageInfoEvent 
    28 from sas.models.qsmearing import smear_selection 
     28from sas.sascalc.data_util.qsmearing import smear_selection 
    2929from .basepage import ModelTextCtrl 
    3030 
  • src/sas/sasgui/perspectives/fitting/fitproblem.py

    rd85c194 rfc18690  
    1414################################################################################ 
    1515import copy 
    16 from sas.models.qsmearing import smear_selection 
     16from sas.sascalc.data_util.qsmearing import smear_selection 
    1717 
    1818class FitProblemComponent(object): 
  • src/sas/sasgui/perspectives/fitting/fitting.py

    • Property mode changed from 100644 to 100755
    rd85c194 raac161f1  
    14831483        try: 
    14841484            index = 0 
     1485            # Update potential simfit page(s) 
     1486            if self.sim_page is not None: 
     1487                self.sim_page._on_fit_complete() 
     1488            if self.batch_page: 
     1489                self.batch_page._on_fit_complete() 
     1490            # Update all fit pages 
    14851491            for uid in page_id: 
    14861492                res = result[index] 
  • src/sas/sasgui/perspectives/fitting/pagestate.py

    rd85c194 rc10d9d6c  
    16131613 
    16141614        if state.data is None: 
    1615             data = sas.dataloader.data_info.Data1D(x=[], y=[]) 
     1615            data = sas.sascalc.dataloader.data_info.Data1D(x=[], y=[]) 
    16161616            return None 
    16171617        elif not state.data.is_data: 
     
    16261626 
    16271627            if issubclass(state.data.__class__, 
    1628                           sas.dataloader.data_info.Data1D): 
     1628                          sas.sascalc.dataloader.data_info.Data1D): 
    16291629                data = state.data 
    16301630                doc, sasentry = self._to_xml_doc(data) 
  • src/sas/sasgui/perspectives/fitting/simfitpage.py

    rd85c194 raac161f1  
    9191        ## selected mdoel to fit 
    9292        self.model_toFit = [] 
     93        ## Control the fit state 
     94        self.fit_started = False 
    9395        ## number of constraint 
    9496        self.nb_constraint = 0 
     
    423425 
    424426        """ 
     427        if self.fit_started: 
     428            self._stop_fit() 
     429            self.fit_started = False 
     430            return 
     431 
    425432        flag = False 
    426433        # check if the current page a simultaneous fit page or a batch page 
     
    439446                    self.manager.schedule_for_fit(value=1, uid=item[2]) 
    440447            try: 
     448                self.fit_started = True 
     449                wx.CallAfter(self.set_fitbutton) 
    441450                if not self.manager.onFit(uid=self.uid): 
    442451                    return 
     
    447456            msg = "Select at least one model check box to fit " 
    448457            wx.PostEvent(self.parent.parent, StatusEvent(status=msg)) 
     458 
     459    def _on_fit_complete(self): 
     460        """ 
     461        Set the completion flag and display the updated fit button label. 
     462        """ 
     463        self.fit_started = False 
     464        self.set_fitbutton() 
     465 
     466    def _stop_fit(self, event=None): 
     467        """ 
     468        Attempt to stop the fitting thread 
     469        """ 
     470        if event != None: 
     471            event.Skip() 
     472        self.manager.stop_fit(self.uid) 
     473        self.manager._reset_schedule_problem(value=0) 
     474        self._on_fit_complete() 
     475 
     476    def set_fitbutton(self): 
     477        """ 
     478        Set fit button label depending on the fit_started 
     479        """ 
     480        label = "Stop" if self.fit_started else "Fit" 
     481        color = "red" if self.fit_started else "black" 
     482 
     483        self.btFit.SetLabel(label) 
     484        self.btFit.SetForegroundColour(color) 
     485        self.btFit.Enable(True) 
    449486 
    450487    def _onHelp(self, event): 
  • src/sas/sasgui/perspectives/invariant/invariant.py

    rd85c194 rc10d9d6c  
    237237        else: 
    238238            msg = "invariant.save_file: the data being saved is" 
    239             msg += " not a sas.dataloader.data_info.Data1D object" 
     239            msg += " not a sas.sascalc.dataloader.data_info.Data1D object" 
    240240            raise RuntimeError, msg 
    241241 
  • src/sas/sasgui/perspectives/invariant/invariant_state.py

    rd85c194 rc10d9d6c  
    773773        """ 
    774774        if datainfo is None: 
    775             datainfo = sas.dataloader.data_info.Data1D(x=[], y=[]) 
    776         elif not issubclass(datainfo.__class__, sas.dataloader.data_info.Data1D): 
     775            datainfo = sas.sascalc.dataloader.data_info.Data1D(x=[], y=[]) 
     776        elif not issubclass(datainfo.__class__, sas.sascalc.dataloader.data_info.Data1D): 
    777777            msg = "The cansas writer expects a Data1D" 
    778778            msg += " instance: %s" % str(datainfo.__class__.__name__) 
  • src/sas/sasgui/perspectives/pr/pr.py

    rd85c194 rc10d9d6c  
    896896        # First, check that the data is of the right type 
    897897        if issubclass(self.current_plottable.__class__, 
    898                       sas.dataloader.data_info.Data1D): 
     898                      sas.sascalc.dataloader.data_info.Data1D): 
    899899            self.state_reader.write(filepath, self.current_plottable, prstate) 
    900900        else: 
  • test/sasfit/test/batch_fit.py

    rb699768 rfc18690  
    66from sas.models.CylinderModel import CylinderModel 
    77import sas.models.dispersion_models  
    8 from sas.models.qsmearing import smear_selection 
     8from sas.sascalc.data_util.qsmearing import smear_selection 
    99 
    1010NPTS = 1 
  • test/sasfit/test/utest_fit_smeared.py

    rb699768 rfc18690  
    1010from sas.sascalc.fit.BumpsFitting import BumpsFit as Fit 
    1111from sas.sascalc.dataloader.loader import Loader 
    12 from sas.models.qsmearing import smear_selection 
     12from sas.sascalc.data_util.qsmearing import smear_selection 
    1313from sas.models.CylinderModel import CylinderModel 
    1414from sas.models.SphereModel import SphereModel 
Note: See TracChangeset for help on using the changeset viewer.