Changeset 3a38a8b in sasview
- Timestamp:
- Aug 9, 2016 4:47:44 AM (8 years ago)
- 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- b7c21a7
- Parents:
- 5451a78 (diff), 5213d22 (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. - Files:
-
- 15 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/fit/pluginmodel.py
r9e531f2 r5213d22 3 3 4 4 class Model1DPlugin(BaseComponent): 5 is_multiplicity_model = False 6 5 7 ## Name of the model 6 8 -
src/sas/sasgui/perspectives/fitting/basepage.py
r6ed67db r5213d22 2146 2146 self.temp_multi_functional = True 2147 2147 elif form_factor != None: 2148 self.model = form_factor(self.multi_factor) 2148 if self.multi_factor is not None: 2149 self.model = form_factor(self.multi_factor) 2150 else: 2151 # old style plugin models do not accept a multiplicity argument 2152 self.model = form_factor() 2149 2153 else: 2150 2154 self.model = None -
.gitignore
re04f87b rdf332d8 8 8 # generated. 9 9 # 10 # Feel free to add more stuff to this as and when it becomes an issue. 10 # Feel free to add more stuff to this as and when it becomes an issue. 11 11 12 12 .project … … 50 50 /test/sasdataloader/test/plugins.zip 51 51 /test/sasdataloader/test/test_log.txt 52 /test/sasdataloader/test/isis_1_0_write_test.xml 53 /test/sasdataloader/test/isis_1_1_write_test.xml 54 /test/sasdataloader/test/write_test.xml 52 55 53 56 # autogenerated scripts 54 57 /sasview/installer.iss 55 -
docs/sphinx-docs/source/user/tools.rst
r8f46df7 reb8da5f 8 8 9 9 Data Operations Utility <sasgui/perspectives/calculator/data_operator_help> 10 10 11 11 Density/Volume Calculator <sasgui/perspectives/calculator/density_calculator_help> 12 12 13 13 Generic SANS Calculator <sasgui/perspectives/calculator/sas_calculator_help> 14 14 15 15 Image Viewer <sasgui/perspectives/calculator/image_viewer_help> 16 16 17 17 Kiessig Thickness Calculator <sasgui/perspectives/calculator/kiessig_calculator_help> 18 18 19 19 SLD Calculator <sasgui/perspectives/calculator/sld_calculator_help> 20 20 21 21 Slit Size Calculator <sasgui/perspectives/calculator/slit_calculator_help> 22 22 23 23 Q Resolution Estimator <sasgui/perspectives/calculator/resolution_calculator_help> 24 24 25 25 Python Shell <sasgui/perspectives/calculator/python_shell_help> 26 26 27 File Converter <sasgui/perspectives/file_converter/file_converter_help> -
run.py
r832fea2 r18e7309 72 72 platform = '%s-%s'%(get_platform(),sys.version[:3]) 73 73 build_path = joinpath(root, 'build','lib.'+platform) 74 75 # Notify the help menu that the Sphinx documentation is in a different 74 75 # Notify the help menu that the Sphinx documentation is in a different 76 76 # place than it otherwise would be. 77 77 os.environ['SASVIEW_DOC_PATH'] = joinpath(build_path, "doc") … … 123 123 # Compiled modules need to be pulled from the build directory. 124 124 # Some packages are not where they are needed, so load them explicitly. 125 import sas.sascalc.file_converter 126 sas.sascalc.file_converter.core = import_package('sas.sascalc.file_converter.core', 127 joinpath(build_path, 'sas', 'sascalc', 'file_converter', 'core')) 128 129 # Compiled modules need to be pulled from the build directory. 130 # Some packages are not where they are needed, so load them explicitly. 125 131 import sas.sascalc.calculator 126 132 sas.sascalc.calculator.core = import_package('sas.sascalc.calculator.core', -
sasview/sasview.py
r1be5202 r77d92cd 81 81 #Always use private .matplotlib setup to avoid conflicts with other 82 82 #uses of matplotlib 83 #Have to check if .sasview exists first 83 #Have to check if .sasview exists first 84 84 sasdir = os.path.join(os.path.expanduser("~"),'.sasview') 85 85 if not os.path.exists(sasdir): … … 119 119 # Fitting perspective 120 120 try: 121 import sas.sasgui.perspectives.fitting as module 121 import sas.sasgui.perspectives.fitting as module 122 122 fitting_plug = module.Plugin() 123 123 self.gui.add_perspective(fitting_plug) … … 145 145 logging.error(traceback.format_exc()) 146 146 147 #Calculator perspective 147 #Calculator perspective 148 148 try: 149 149 import sas.sasgui.perspectives.calculator as module … … 152 152 except: 153 153 logging.error("%s: could not find Calculator plug-in module"% \ 154 APP_NAME) 155 logging.error(traceback.format_exc()) 156 157 # File converter tool 158 try: 159 import sas.sasgui.perspectives.file_converter as module 160 converter_plug = module.Plugin() 161 self.gui.add_perspective(converter_plug) 162 except: 163 logging.error("%s: could not find File Converter plug-in module"% \ 154 164 APP_NAME) 155 165 logging.error(traceback.format_exc()) … … 191 201 if __name__ == "__main__": 192 202 run() 193 -
setup.py
rdb74ee8 r18e7309 9 9 from distutils.command.build_ext import build_ext 10 10 from distutils.core import Command 11 import numpy 11 12 12 13 # Manage version number ###################################### … … 54 55 print "Removing existing build directory", SASVIEW_BUILD, "for a clean build" 55 56 shutil.rmtree(SASVIEW_BUILD) 56 57 57 58 # 'sys.maxsize' and 64bit: Not supported for python2.5 58 59 is_64bits = False 59 60 if sys.version_info >= (2, 6): 60 61 is_64bits = sys.maxsize > 2**32 61 62 62 63 enable_openmp = False 63 64 … … 118 119 c = self.compiler.compiler_type 119 120 print "Compiling with %s (64bit=%s)" % (c, str(is_64bits)) 120 121 121 122 # OpenMP build options 122 123 if enable_openmp: … … 127 128 for e in self.extensions: 128 129 e.extra_link_args = lopt[ c ] 129 130 130 131 # Platform-specific build options 131 132 if platform_lopt.has_key(c): … … 205 206 ) 206 207 207 208 208 209 # sas.sascalc.pr 209 210 srcdir = os.path.join("src", "sas", "sascalc", "pr", "c_extensions") … … 217 218 include_dirs=[], 218 219 ) ) 219 220 221 # sas.sascalc.file_converter 222 mydir = os.path.join("src", "sas", "sascalc", "file_converter", "c_ext") 223 package_dir["sas.sascalc.file_converter.core"] = mydir 224 package_dir["sas.sascalc.file_converter"] = os.path.join("src","sas", "sascalc", "file_converter") 225 packages.extend(["sas.sascalc.file_converter","sas.sascalc.file_converter.core"]) 226 ext_modules.append( Extension("sas.sascalc.file_converter.core.bsl_loader", 227 sources = [os.path.join(mydir, "bsl_loader.c")], 228 include_dirs=[numpy.get_include()], 229 ) ) 230 220 231 # sas.sascalc.fit 221 232 package_dir["sas.sascalc.fit"] = os.path.join("src", "sas", "sascalc", "fit") … … 239 250 packages.extend(["sas.sasgui.perspectives", "sas.sasgui.perspectives.calculator"]) 240 251 package_data['sas.sasgui.perspectives.calculator'] = ['images/*', 'media/*'] 241 252 242 253 # Data util 243 254 package_dir["sas.sascalc.data_util"] = os.path.join("src", "sas", "sascalc", "data_util") … … 294 305 'test/2d_data/*', 295 306 'test/save_states/*', 296 'test/upcoming_formats/*', 307 'test/upcoming_formats/*', 297 308 'default_categories.json'] 298 309 packages.append("sas.sasview") … … 316 327 required.extend(['pillow']) 317 328 318 # Set up SasView 329 # Set up SasView 319 330 setup( 320 331 name="sasview", … … 341 352 'docs': BuildSphinxCommand, 342 353 'disable_openmp': DisableOpenMPCommand} 343 ) 354 ) -
src/sas/sascalc/dataloader/readers/cansas_reader.py
r83b6408 rfcba29a 957 957 written = written | self.write_node(pix, "z", item.pixel_size.z, 958 958 {"unit": item.pixel_size_unit}) 959 written = written | self.write_node(det, "slit_length",960 item.slit_length,961 {"unit": item.slit_length_unit})962 959 if written == True: 963 960 self.append(pix, det) 961 self.write_node(det, "slit_length", item.slit_length, 962 {"unit": item.slit_length_unit}) 963 964 964 965 965 def _write_process_notes(self, datainfo, entry_node):
Note: See TracChangeset
for help on using the changeset viewer.