Changes in / [cde9d7d:b609c34] in sasview
- Files:
-
- 10 added
- 6 deleted
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/sphinx-docs/source/conf.py
rd85c194 r82bc7a9 201 201 # -- Options for LaTeX output -------------------------------------------------- 202 202 203 LATEX_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 """ 203 210 latex_elements = { 204 211 # The paper size ('letterpaper' or 'a4paper'). 205 #'papersize': 'letterpaper',212 'papersize': 'a4paper', 206 213 207 214 # The font size ('10pt', '11pt' or '12pt'). … … 209 216 210 217 # Additional stuff for the LaTeX preamble. 211 #'preamble': '', 218 'preamble': LATEX_PREAMBLE 219 212 220 } 213 221 -
docs/sphinx-docs/source/user/user.rst
re0bbb7c re479a9f 8 8 9 9 Model Documentation <models/model_functions> 10 11 Tools <tools> 12 13 Types of Analysis <analysis> 10 14 11 15 Data Formats <sasgui/guiframe/data_formats_help> … … 14 18 15 19 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>24 20 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 41 21 Test Data <../test/testdata_help.rst> -
src/examples/test_chisq_panel.py
rd7bb526 rc10d9d6c 86 86 dy = numpy.sqrt(100*numpy.abs(y))/100 87 87 88 from sas. plottools.plottables import Data1D, Theory1D, Chisq , Graph88 from sas.sasgui.plottools.plottables import Data1D, Theory1D, Chisq , Graph 89 89 data = Data1D(x,y,dy=dy) 90 90 data.xaxis('distance', 'm') -
src/sas/sascalc/fit/AbstractFitEngine.py
rb699768 rfc18690 140 140 do the following: :: 141 141 142 from sas. models.qsmearing import smear_selection142 from sas.sascalc.data_util.qsmearing import smear_selection 143 143 smearer = smear_selection(some_data) 144 144 fitdata1d = FitData1D( x= [1,3,..,], -
src/sas/sascalc/pr/fit/AbstractFitEngine.py
rb699768 rfc18690 140 140 do the following: :: 141 141 142 from sas. models.qsmearing import smear_selection142 from sas.sascalc.data_util.qsmearing import smear_selection 143 143 smearer = smear_selection(some_data) 144 144 fitdata1d = FitData1D( x= [1,3,..,], -
src/sas/sasgui/guiframe/data_processor.py
rd85c194 rfce0139 10 10 The organization of the classes goes as: 11 11 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 13 15 :align: center 14 16 -
src/sas/sasgui/guiframe/dummyapp.py
rd85c194 rb080ba8 7 7 from sas.sasgui.guiframe.plugin_base import PluginBase 8 8 9 class DummyView(gui_manager. ViewApp):9 class DummyView(gui_manager.SasViewApp): 10 10 """ 11 11 """ -
src/sas/sasgui/guiframe/gui_manager.py
r0d534de rb080ba8 3480 3480 3481 3481 if __name__ == "__main__": 3482 app = ViewApp(0)3482 app = SasViewApp(0) 3483 3483 app.MainLoop() -
src/sas/sasgui/perspectives/fitting/batchfitpage.py
rd85c194 rfc18690 15 15 16 16 from sas.sasgui.perspectives.fitting.basepage import PageInfoEvent 17 from sas. models.qsmearing import smear_selection17 from sas.sascalc.data_util.qsmearing import smear_selection 18 18 from sas.sasgui.perspectives.fitting.fitpage import FitPage 19 19 from sas.sasgui.perspectives.fitting.fitpage import check_data_validity -
src/sas/sasgui/perspectives/fitting/fit_thread.py
rd85c194 raac161f1 96 96 #some mssg and reset progress bar. 97 97 98 # Shouldn't this be re-raising? ConsoleUpdate doesn't act on it. 99 # raise KeyboardInterrupt 98 100 if self.handler is not None: 99 101 self.handler.stop(msg=msg) -
src/sas/sasgui/perspectives/fitting/fitpage.py
r7d265a8 rfc18690 26 26 from sas.sasgui.perspectives.fitting.basepage import BasicPage as BasicPage 27 27 from sas.sasgui.perspectives.fitting.basepage import PageInfoEvent as PageInfoEvent 28 from sas. models.qsmearing import smear_selection28 from sas.sascalc.data_util.qsmearing import smear_selection 29 29 from .basepage import ModelTextCtrl 30 30 -
src/sas/sasgui/perspectives/fitting/fitproblem.py
rd85c194 rfc18690 14 14 ################################################################################ 15 15 import copy 16 from sas. models.qsmearing import smear_selection16 from sas.sascalc.data_util.qsmearing import smear_selection 17 17 18 18 class FitProblemComponent(object): -
src/sas/sasgui/perspectives/fitting/fitting.py
- Property mode changed from 100644 to 100755
rd85c194 raac161f1 1483 1483 try: 1484 1484 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 1485 1491 for uid in page_id: 1486 1492 res = result[index] -
src/sas/sasgui/perspectives/fitting/pagestate.py
rd85c194 rc10d9d6c 1613 1613 1614 1614 if state.data is None: 1615 data = sas. dataloader.data_info.Data1D(x=[], y=[])1615 data = sas.sascalc.dataloader.data_info.Data1D(x=[], y=[]) 1616 1616 return None 1617 1617 elif not state.data.is_data: … … 1626 1626 1627 1627 if issubclass(state.data.__class__, 1628 sas. dataloader.data_info.Data1D):1628 sas.sascalc.dataloader.data_info.Data1D): 1629 1629 data = state.data 1630 1630 doc, sasentry = self._to_xml_doc(data) -
src/sas/sasgui/perspectives/fitting/simfitpage.py
rd85c194 raac161f1 91 91 ## selected mdoel to fit 92 92 self.model_toFit = [] 93 ## Control the fit state 94 self.fit_started = False 93 95 ## number of constraint 94 96 self.nb_constraint = 0 … … 423 425 424 426 """ 427 if self.fit_started: 428 self._stop_fit() 429 self.fit_started = False 430 return 431 425 432 flag = False 426 433 # check if the current page a simultaneous fit page or a batch page … … 439 446 self.manager.schedule_for_fit(value=1, uid=item[2]) 440 447 try: 448 self.fit_started = True 449 wx.CallAfter(self.set_fitbutton) 441 450 if not self.manager.onFit(uid=self.uid): 442 451 return … … 447 456 msg = "Select at least one model check box to fit " 448 457 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) 449 486 450 487 def _onHelp(self, event): -
src/sas/sasgui/perspectives/invariant/invariant.py
rd85c194 rc10d9d6c 237 237 else: 238 238 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" 240 240 raise RuntimeError, msg 241 241 -
src/sas/sasgui/perspectives/invariant/invariant_state.py
rd85c194 rc10d9d6c 773 773 """ 774 774 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): 777 777 msg = "The cansas writer expects a Data1D" 778 778 msg += " instance: %s" % str(datainfo.__class__.__name__) -
src/sas/sasgui/perspectives/pr/pr.py
rd85c194 rc10d9d6c 896 896 # First, check that the data is of the right type 897 897 if issubclass(self.current_plottable.__class__, 898 sas. dataloader.data_info.Data1D):898 sas.sascalc.dataloader.data_info.Data1D): 899 899 self.state_reader.write(filepath, self.current_plottable, prstate) 900 900 else: -
test/sasfit/test/batch_fit.py
rb699768 rfc18690 6 6 from sas.models.CylinderModel import CylinderModel 7 7 import sas.models.dispersion_models 8 from sas. models.qsmearing import smear_selection8 from sas.sascalc.data_util.qsmearing import smear_selection 9 9 10 10 NPTS = 1 -
test/sasfit/test/utest_fit_smeared.py
rb699768 rfc18690 10 10 from sas.sascalc.fit.BumpsFitting import BumpsFit as Fit 11 11 from sas.sascalc.dataloader.loader import Loader 12 from sas. models.qsmearing import smear_selection12 from sas.sascalc.data_util.qsmearing import smear_selection 13 13 from sas.models.CylinderModel import CylinderModel 14 14 from sas.models.SphereModel import SphereModel
Note: See TracChangeset
for help on using the changeset viewer.