Changes in / [47f2b5d:4ed199e] in sasview
- Files:
-
- 1 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/sphinx-docs/source/user/tools.rst
rec860a8f r3150541 11 11 Data Operations Utility <sasgui/perspectives/calculator/data_operator_help> 12 12 13 SLD Calculator <sasgui/perspectives/calculator/sld_calculator_help> 14 13 15 Density/Volume Calculator <sasgui/perspectives/calculator/density_calculator_help> 16 17 Slit Size Calculator <sasgui/perspectives/calculator/slit_calculator_help> 18 19 Kiessig Thickness Calculator <sasgui/perspectives/calculator/kiessig_calculator_help> 20 21 Q Resolution Estimator <sasgui/perspectives/calculator/resolution_calculator_help> 14 22 15 23 Generic SANS Calculator <sasgui/perspectives/calculator/sas_calculator_help> 16 24 25 Python Shell <sasgui/perspectives/calculator/python_shell_help> 26 17 27 Image Viewer <sasgui/perspectives/calculator/image_viewer_help> 18 28 19 Kiessig Thickness Calculator <sasgui/perspectives/calculator/kiessig_calculator_help>20 21 SLD Calculator <sasgui/perspectives/calculator/sld_calculator_help>22 23 Slit Size Calculator <sasgui/perspectives/calculator/slit_calculator_help>24 25 Q Resolution Estimator <sasgui/perspectives/calculator/resolution_calculator_help>26 27 Python Shell <sasgui/perspectives/calculator/python_shell_help>28 29 29 File Converter <sasgui/perspectives/file_converter/file_converter_help> 30 -
sasview/setup_mac.py
r3d8e3c7 rb58654c 62 62 63 63 APP = ['sasview.py'] 64 DATA_FILES += ['images','test','media', 'custom_config.py', 'local_config.py', 65 'default_categories.json'] 64 DATA_FILES += ['images','test','media', 'custom_config.py', 'local_config.py'] 66 65 if os.path.isfile("BUILD_NUMBER"): 67 66 DATA_FILES.append("BUILD_NUMBER") -
sasview/test/README.txt
r850a498 r3f9a18a 1 1 Test data sets are included as a convenience to our users. The data sets are organized based on their data structure; 1D data (ie, I(Q)), 2D data (ie, I(Qx,Qy)), coordinate data (eg, PDB files), image data (eg, TIFF files), SasView saved states, SESANS data, and data in formats that are not yet implemented but which are in the works for future releases. 2 2 3 1D data sets EITHER a) have at least two columns of data with I(abs. units) on the y-axis and Q on the x-axis, OR b) have I and Q in separate files. Data in the latter format need to be converted to a single file format with the File Converter tool before SasView will analyse them.3 1D data sets EITHER a) have at least two columns of data with I(abs. units) on the y-axis and Q on the x-axis, OR b) have I and Q in separate files. Data in the latter format (/convertible_files) need to be converted to a single file format with the File Converter tool before SasView will analyse them. 4 4 5 5 2D data sets are data sets that give the deduced intensity for each detector pixel. Depending on the file extension, uncertainty and metadata may also be available. -
sasview/test/media/testdata_help.rst
rda456fb r3f9a18a 10 10 11 11 - *1D data* 12 - *convertible 1D data files* 12 13 - *2D data* 13 14 - *coordinate data* … … 29 30 - the I(Q) and Q data in separate files *with no other information*. 30 31 31 Data in the latter format need to be converted to a single file format with the :ref:`File_Converter_Tool` before they can be analysed in SasView. 32 Data in the latter format need to be converted to a single file format with the :ref:`File_Converter_Tool` before they can be analysed in SasView. Test files are located in the /convertible_files folder. 32 33 33 34 1D Test Data … … 36 37 - Data from a magnetically-oriented surfactant liquid crystal output by the Mantid framework. The data was collected on the SANS2D instrument at ISIS. 37 38 38 10wtAOT_Reline_120_reduced / Anton-Paar _PDH/ saxsess_example39 10wtAOT_Reline_120_reduced / Anton-Paar / saxsess_example 39 40 - Data from Anton-Paar SAXSess instruments saved in Otto Glatter's PDH format. 40 41 … … 48 49 - ASCII data from the DND-CAT beamline at the APS. 49 50 50 APS_X / APS_Y51 - ASCII data output by a reduction software package at the APS.52 - Suitable for testing the :ref:`File_Converter_Tool` .53 54 FIT2D_I / FIT2D_Q55 - ASCII data output by the FIT2D software package at the ESRF.56 - Suitable for testing the :ref:`File_Converter_Tool` .57 58 51 hSDS_D2O 59 52 - h25-sodium dodecyl sulphate solutions at two concentrations: 0.5wt% (just … … 64 57 ISIS_83404 / ISIS_98929 65 58 - Polyamide-6 fibres hydrated in D2O exhibiting a broad lamellar peak from the semi-crystalline nanostructure. 66 - This is the *same data* as that in Z8300* / Z9800*but in an amalgamated ASCII format!59 - This is the *same data* as that in the BSL/OTOKO Z8300* / Z9800* files but in an amalgamated ASCII format! 67 60 - Suitable for testing :ref:`Correlation_Function_Analysis` . 68 61 … … 76 69 Pluronic P123 in water at three concentrations: 10wt%, 30wt%, and 40wt%. 77 70 - Suitable for testing paracrystal models. 71 72 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 73 74 Convertible 1D Data 75 ^^^^^^^^^^^^^^^^^^^ 76 77 APS_X / APS_Y 78 - ASCII data output by a reduction software package at the APS. 79 - Suitable for testing the :ref:`File_Converter_Tool` . 80 81 FIT2D_I / FIT2D_Q 82 - ASCII data output by the FIT2D software package at the ESRF. 83 - Suitable for testing the :ref:`File_Converter_Tool` . 78 84 79 85 Z8300*.I1D / Z8300*.QAX / Z9800*.I1D / Z9800*.QAX -
src/sas/sasgui/guiframe/gui_manager.py
re6de6b8 ra4c2445 677 677 update edit menu if available 678 678 """ 679 if event !=None:679 if event is not None: 680 680 self.panel_on_focus = event.panel 681 681 if self.panel_on_focus is not None: 682 #Disable save application if the current panel is in batch mode 683 flag = self.panel_on_focus.get_save_flag() 684 if self._save_appl_menu != None: 685 self._save_appl_menu.Enable(flag) 686 687 if self.panel_on_focus not in self.plot_panels.values(): 688 for ID in self.panels.keys(): 689 if self.panel_on_focus != self.panels[ID]: 690 self.panels[ID].on_kill_focus(None) 691 692 if self._data_panel is not None and \ 693 self.panel_on_focus is not None: 694 self.set_panel_on_focus_helper() 695 #update toolbar 696 self._update_toolbar_helper() 697 #update edit menu 698 self.enable_edit_menu() 682 # Disable save application if the current panel is in batch mode 683 try: 684 flag = self.panel_on_focus.get_save_flag() 685 if self._save_appl_menu != None: 686 self._save_appl_menu.Enable(flag) 687 688 if self.panel_on_focus not in self.plot_panels.values(): 689 for ID in self.panels.keys(): 690 if self.panel_on_focus != self.panels[ID]: 691 self.panels[ID].on_kill_focus(None) 692 693 if self._data_panel is not None and \ 694 self.panel_on_focus is not None: 695 self.set_panel_on_focus_helper() 696 #update toolbar 697 self._update_toolbar_helper() 698 #update edit menu 699 self.enable_edit_menu() 700 except wx._core.PyDeadObjectError: 701 pass 699 702 700 703 def disable_app_menu(self, p_panel=None): … … 1904 1907 def _on_open_state_project(self, event): 1905 1908 """ 1909 Load in a .svs project file after removing all data from SasView 1906 1910 """ 1907 1911 path = None 1908 1912 if self._default_save_location == None: 1909 1913 self._default_save_location = os.getcwd() 1910 msg = "This operation will set SasView to its freshly opened state " 1911 msg += "before loading the project. Do you wish to continue?" 1914 msg = "This operation will set remove all data, plots and analyses from" 1915 msg += " SasView before loading the project. Do you wish to continue?" 1916 self._data_panel.selection_cbox.SetValue('Select all Data') 1917 self._data_panel._on_selection_type(None) 1918 for _, theory_dict in self._data_panel.list_cb_theory.iteritems(): 1919 for key, value in theory_dict.iteritems(): 1920 item, _, _ = value 1921 item.Check(True) 1912 1922 if not self._data_panel.on_remove(None, msg): 1913 1923 wx.PostEvent(self, StatusEvent(status="Loading Project file...")) … … 1934 1944 self._data_panel.set_panel_on_focus() 1935 1945 # Remove all loaded data 1936 self._data_panel.selection_cbox.SetValue('Select all Data')1937 self._data_panel._on_selection_type(None)1938 1946 for plugin in self.plugins: 1939 1947 plugin.clear_panel() -
src/sas/sasgui/perspectives/calculator/calculator.py
rd85c194 ra0c1e1d 80 80 ("Kiessig Thickness Calculator", 81 81 kiessig_help, self.on_calculate_kiessig), 82 (" SASResolution Estimator",82 ("Q Resolution Estimator", 83 83 resolution_help, self.on_calculate_resoltuion), 84 84 ("Generic Scattering Calculator", -
src/sas/sasgui/perspectives/calculator/pyconsole.py
rf1cbae7 r0912b405 231 231 if result.path: 232 232 self.bufferCreate(result.path) 233 234 # See if there is a corresponding C file 235 if result.path != None: 236 c_filename = os.path.splitext(result.path)[0] + ".c" 237 if os.path.isfile(c_filename): 238 self.bufferCreate(c_filename) 239 233 240 cancel = False 234 241 return cancel -
src/sas/sasgui/perspectives/calculator/resolution_calculator_panel.py
rd0248bd ra0c1e1d 63 63 """ 64 64 ## Internal nickname for the window, used by the AUI manager 65 window_name = " SASResolution Estimator"65 window_name = "Q Resolution Estimator" 66 66 ## Name to appear on the window title bar 67 67 window_caption = "" … … 1329 1329 """ 1330 1330 def __init__(self, parent=None, manager=None, 1331 title=" SASResolution Estimator",1331 title="Q Resolution Estimator", 1332 1332 size=(PANEL_WIDTH * 2, PANEL_HEIGHT), *args, **kwds): 1333 1333 kwds['title'] = title -
src/sas/sasgui/perspectives/file_converter/media/file_converter_help.rst
rda456fb rd73998c 9 9 ----------- 10 10 11 This tool converts file formats with the Q data and intensity datain separate12 files, into a single CanSAS XML or NXcanSAS HDF5file.11 This tool converts file formats with the Q data and Intensity data stored in separate 12 files, into a single CanSAS (XML) or NXcanSAS (HDF5) file. 13 13 14 It can also convert 2D BSL files into NXcanSAS HDF5 files.14 It can also convert 2D BSL/OTOKO files into a NXcanSAS file. 15 15 16 Supported input file formats :16 Supported input file formats (examples may be found in the /test/convertible_files folder): 17 17 18 * Single column ASCII data, with lines that end with a digit (no delimiter),19 comma or semi-colon.20 * ` One-Dimensional OTOKO formatted18 * Single-column ASCII data, with lines that end without any delimiter, 19 or with a comma or semi-colon delimiter 20 * `1D BSL/OTOKO format 21 21 <http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/ 22 SAXS-Software/CCP13/ XOTOKO.html>`_ data.23 * ` Two-Dimensional BSL formatted22 SAXS-Software/CCP13/BSL.html>`_ data 23 * `2D BSL/OTOKO format 24 24 <http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/ 25 SAXS-Software/CCP13/BSL.html>`_ data .25 SAXS-Software/CCP13/BSL.html>`_ data 26 26 27 Supported output file formats @27 Supported output file formats: 28 28 29 * `CanSAS XML<http://www.cansas.org/formats/canSAS1d/1.1/doc/>`_30 * `NXcanSAS HDF5<http://download.nexusformat.org/sphinx/classes/contributed_definitions/NXcanSAS.html>`_29 * `CanSAS <http://www.cansas.org/formats/canSAS1d/1.1/doc/>`_ 30 * `NXcanSAS <http://download.nexusformat.org/sphinx/classes/contributed_definitions/NXcanSAS.html>`_ 31 31 32 32 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ … … 35 35 -------------- 36 36 37 1) Select the files containing your Q- Axis and Intensity-Axis data38 2) Cho se whether the files are in ASCII, OTOKO or BSLformat39 3) Cho se where you would like to save the converted file37 1) Select the files containing your Q-axis and Intensity-axis data 38 2) Choose whether the files are in ASCII, 1D BSL/OTOKO or 2D BSL/OTOKO format 39 3) Choose where you would like to save the converted file 40 40 4) Optionally, input some metadata such as sample size, detector name, etc 41 5) Click *Convert* to save the converted file to disk41 5) Click *Convert* to save the converted file 42 42 43 43 Files With Multiple Frames 44 44 ^^^^^^^^^^^^^^^^^^^^^^^^^^ 45 45 46 If a BSL/OTOKO file with multiple frames is selected for the intensity-axis46 If a BSL/OTOKO file with multiple frames is selected for the Intensity-axis 47 47 file, a dialog will appear asking which frames you would like converted. You 48 48 may enter a start frame, end frame & increment, and all frames in that subset 49 will be converted. For example: entering 0, 50 and 10 for the first frame, last 50 frame, and increment respectively will convert frames 0, 10, 20, 30, 40 & 50. 49 will be converted. For example, entering 0, 50 and 10 will convert frames 0, 50 10, 20, 30, 40 & 50. 51 51 52 To convert a single frame, enter the same value for first frame & last frame, 52 53 and 1 as the increment. … … 54 55 CanSAS XML files can become quite large when exporting multiple frames to a 55 56 single file, so there is an option in the *Select Frame* dialog to output each 56 frame to it 's own file. The single file option will produce one file with57 multiple `<SASdata>` elements. The multiple file option will output a file for58 each frame; each file will have one `<SASdata>` element, and the frame number 59 willappended to the file name.57 frame to its own file. The single file option will produce one file with 58 multiple `<SASdata>` elements. The multiple file option will output a separate 59 file with one `<SASdata>` element for each frame. The frame number will also be 60 appended to the file name. 60 61 61 The multiple file option is not available when exporting to NXcanSAS. All 62 frames will be written to the same file, since the HDF5 format is designed for 63 handling large amounts of data. 62 The multiple file option is not available when exporting to NXcanSAS because 63 the HDF5 format is more efficient at handling large amounts of data. 64 65 66 .. note:: 67 This help document was last changed by Steve King, 08Oct2016 -
src/sas/sasgui/perspectives/fitting/basepage.py
r47f2b5d r47f2b5d 514 514 def initialize_combox(self): 515 515 """ 516 put default value in the combobox 517 """ 518 ## fill combox box 519 if self.model_list_box is None: 520 return 521 if len(self.model_list_box) > 0: 516 put default value in the combo box 517 """ 518 if self.model_list_box is not None and len(self.model_list_box) > 0: 522 519 self._populate_box(self.structurebox, 523 520 self.model_list_box["Structure Factors"]) … … 528 525 self.structurebox.Disable() 529 526 self.text2.Disable() 530 531 if self.model.__class__ in self.model_list_box["P(Q)*S(Q)"]:532 self.structurebox.Show()533 self.text2.Show()534 self.structurebox.Enable()535 self.text2.Enable()536 527 537 528 def set_dispers_sizer(self): … … 1962 1953 form_factor = self.formfactorbox.GetClientData(f_id) 1963 1954 1964 if not form_factor in self.model_list_box["multiplication"]:1955 if form_factor is None or not form_factor.is_form_factor: 1965 1956 self.structurebox.Hide() 1966 1957 self.text2.Hide() -
src/sas/sasgui/perspectives/fitting/fitpage.py
r4c3be25 rb4818d9 364 364 self.Bind(wx.EVT_RADIOBUTTON, self.onSlitSmear, 365 365 id=self.slit_smearer.GetId()) 366 self. disable_smearer.SetValue(True)366 self.enable_smearer.SetValue(True) 367 367 368 368 sizer_smearer.Add(self.disable_smearer, 0, wx.LEFT, 10)
Note: See TracChangeset
for help on using the changeset viewer.