Changeset d1520fc in sasview
- Timestamp:
- Feb 13, 2018 12:15:53 PM (7 years ago)
- Parents:
- 61bfd36 (diff), 9592c6f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Jeff Krzywon <krzywon@…> (02/13/18 12:15:53)
- git-committer:
- GitHub <noreply@…> (02/13/18 12:15:53)
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/dataloader/loader.py
rdc8d1c2 r9592c6f 54 54 self.wildcards = ['All (*.*)|*.*'] 55 55 56 # Deprecated extensions 57 self.deprecated_extensions = ['.asc', '.nxs'] 58 56 59 # Creation time, for testing 57 60 self._created = time.time() … … 73 76 # Gets set to a string if the file has an associated reader that fails 74 77 msg_from_reader = None 78 extlist = [ext for ext in self.deprecated_extensions if 79 path.lower().endswith(ext)] 80 if extlist: 81 msg = ("\rThe file you are attempting to load, {}, is no longer " 82 "loadable by SasView. The file extension suggests the data " 83 "set is in pixel space. SasView will no longer reduce raw da" 84 "ta sets. Please provide fully reduced data in Q space. No a" 85 "ttempt to load the data has been made." 86 .format(path)) 87 raise RuntimeError(msg) 75 88 try: 76 89 return super(Registry, self).load(path, format=format) -
docs/sphinx-docs/source/user/marketplace.rst
r59dfb53 r1eb86a5 6 6 plug-in fitting models for *SasView* for all to use. 7 7 8 .. note:: These plug-in models require SasView version 4.0 or later. 8 .. note:: 9 These plug-in models require SasView version 4.0 or later. However, 10 not *all* models may work with *every* version of SasView because 11 of changes to our API. 9 12 10 13 Contributed models should be written in Python (only version 2.7.x is … … 12 15 combination of Python and C. You only need to upload the .py/.c source 13 16 code files to the Marketplace! 17 18 Please put a comment in your code to indicate which version of SasView you 19 wrote the model for. 14 20 15 21 For guidance on how to write a plugin model see :ref:`Writing_a_Plugin` . It -
src/sas/sasgui/guiframe/media/data_formats_help.rst
r959eb01 r1eb86a5 28 28 29 29 * .TXT 30 * .ASC31 30 * .DAT 32 31 * .XML (in canSAS format v1.0 and 1.1) 32 * .H5 (as NeXus NXcanSAS only) 33 * .NXS (as NeXus NXcanSAS only) 34 35 .. note:: 36 From SasView version 4.2 onwards files written in the NIST .ASC format are no longer read. This is because that 37 format normally represents *raw* and not reduced data. 33 38 34 39 If using CSV output from, for example, a spreadsheet, ensure that it is not using commas as delimiters for thousands. … … 40 45 41 46 For a description of the ISIS 1D format see: 42 http ://www.isis.stfc.ac.uk/instruments/loq/software/colette-ascii-file-format-descriptions9808.pdf47 https://www.isis.stfc.ac.uk/Pages/colette-ascii-file-format-descriptions.pdf 43 48 44 49 For a description of the NXcanSAS format see: … … 58 63 -------------- 59 64 60 SasView will read ASCII ('text') files in the NIST 2D format (with the extension s .ASC or .DAT) or files in the NeXus NXcanSAS (HDF5) format (with the extension .H5). File extensions are not case-sensitive. Both of these formats are written by the `Mantid Framework <http://www.mantidproject.org/>`_.65 SasView will read ASCII ('text') files in the NIST 2D format (with the extension .DAT) or files in the NeXus NXcanSAS (HDF5) format (with the extension .H5 or .NXS). File extensions are not case-sensitive. Both of these formats are written by the `Mantid Framework <http://www.mantidproject.org/>`_. 61 66 62 67 Most of the header lines in the NIST 2D format can actually be removed except the last line, and only the first three columns (*Qx, Qy,* and *I(Qx,Qy)*) are actually required. 68 69 .. note:: 70 From SasView version 4.2 onwards files written in the NIST .ASC format are no longer read. This is because that 71 format normally represents *raw* and not reduced data. 72 73 .. note:: 74 SasView does not read the standard NeXus format, only the NXcanSAS subset. 63 75 64 76 The SasView :ref:`File_Converter_Tool` available in SasView 4.1 onwards can be used to convert data sets in the 2D BSL/OTOKO format into the NeXus NXcanSAS (HDF5) format. -
src/sas/sasgui/perspectives/calculator/calculator.py
r235f514 r61bfd36 86 86 ("Generic Scattering Calculator", 87 87 gensas_help, self.on_gen_model), 88 ("Orientation Viewer", "Show 3-D view of oriented shape", self.on_show_orientation), 88 89 ("Python Shell/Editor", pyconsole_help, self.on_python_console), 89 90 ("Image Viewer", imageviewer_help, self.on_image_viewer), ] … … 190 191 self.gen_frame.Show(False) 191 192 self.gen_frame.Show(True) 193 194 def on_show_orientation(self, event): 195 """ 196 Make sasmodels orientation & jitter viewer available 197 """ 198 from sasmodels.jitter import run 199 run() 192 200 193 201 def on_image_viewer(self, event): -
src/sas/sasgui/perspectives/file_converter/media/file_converter_help.rst
r59decb81 rfafb396 19 19 or with a comma or semi-colon delimiter 20 20 * 2D `ISIS ASCII formatted 21 <http://www.isis.stfc.ac.uk/instruments/loq/software/ 22 colette-ascii-file-format-descriptions9808.pdf>`_ data 21 <https://www.isis.stfc.ac.uk/Pages/colette-ascii-file-format-descriptions.pdf>`_ data 23 22 * `1D BSL/OTOKO format 24 23 <http://www.diamond.ac.uk/Beamlines/Soft-Condensed-Matter/small-angle/ -
src/sas/sasgui/perspectives/fitting/basepage.py
r58a8f76 r1f4d708 1367 1367 except Exception: 1368 1368 logger.error(traceback.format_exc()) 1369 selection = self._find_polyfunc_selection(disp_model)1369 index, selection = self._find_polyfunc_selection(disp_model) 1370 1370 for list in self.fittable_param: 1371 1371 if list[1] == key and list[7] is not None: 1372 list[7].SetSelection( selection)1372 list[7].SetSelection(index) 1373 1373 # For the array disp_model, set the values and weights 1374 if selection == 1:1374 if selection == 'array': 1375 1375 disp_model.set_weights(self.values[key], 1376 1376 self.weights[key]) … … 1385 1385 logger.error(traceback.format_exc()) 1386 1386 # For array, disable all fixed params 1387 if selection == 1:1387 if selection == 'array': 1388 1388 for item in self.fixed_param: 1389 1389 if item[1].split(".")[0] == key.split(".")[0]: … … 2668 2668 def _find_polyfunc_selection(self, disp_func=None): 2669 2669 """ 2670 F Ind Comboox selection from disp_func2670 Find Combobox selection from disp_func 2671 2671 2672 2672 :param disp_function: dispersion distr. function … … 2675 2675 if disp_func is not None: 2676 2676 try: 2677 return POLYDISPERSITY_MODELS.values().index(disp_func.__class__) 2677 return (list(POLYDISPERSITY_MODELS).index(disp_func.type), 2678 disp_func.type) 2678 2679 except ValueError: 2679 2680 pass # Fall through to default class 2680 return POLYDISPERSITY_MODELS.keys().index('gaussian')2681 return (list(POLYDISPERSITY_MODELS).index('gaussian'), 'gaussian') 2681 2682 2682 2683 def on_reset_clicked(self, event):
Note: See TracChangeset
for help on using the changeset viewer.