Changes in / [2c627ad:5a3c1f0] in sasview
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
build_tools/jenkins_win_build.bat
r801a296 rd2fd8fc 16 16 17 17 :: SET SASVIEW GITHASH ################################################ 18 cd %WORKSPACE%19 cd sasview\sasview20 git rev-parse HEAD > tmpFile_githash21 SET /p githash= < tmpFile_githash22 DEL tmpFile_githash23 %GIT_SED% -i.bak "s/GIT_COMMIT/%githash%/g" __init__.py18 :: cd %WORKSPACE% 19 :: cd sasview\sasview 20 :: git rev-parse HEAD > tmpFile_githash 21 :: SET /p githash= < tmpFile_githash 22 :: DEL tmpFile_githash 23 :: %GIT_SED% -i.bak "s/GIT_COMMIT/%githash%/g" __init__.py 24 24 25 25 -
sasview/__init__.py
r801a296 r8ca1ba1 3 3 try: 4 4 import subprocess 5 import os 6 FNULL = open(os.devnull, 'w') 7 git_revision = subprocess.check_output(['git', 'rev-parse', 'HEAD'], 8 stderr=FNULL, 9 shell=True) 5 git_revision = subprocess.check_output(['git', 'rev-parse', 'HEAD']) 10 6 __build__ = str(git_revision).strip() 11 7 except: -
src/sas/sascalc/calculator/BaseComponent.py
rdeddda1 rcb4ef58 7 7 # imports 8 8 import copy 9 from collections import OrderedDict10 11 9 import numpy 12 10 #TO DO: that about a way to make the parameter … … 256 254 Return a list of all available parameters for the model 257 255 """ 258 list = _ordered_keys(self.params)256 list = self.params.keys() 259 257 # WARNING: Extending the list with the dispersion parameters 260 258 list.extend(self.getDispParamList()) … … 266 264 """ 267 265 list = [] 268 for item in _ordered_keys(self.dispersion): 269 for p in _ordered_keys(self.dispersion[item]): 266 267 for item in self.dispersion.keys(): 268 for p in self.dispersion[item].keys(): 270 269 if p not in ['type']: 271 270 list.append('%s.%s' % (item.lower(), p.lower())) … … 310 309 """ 311 310 raise ValueError, "Model operation are no longer supported" 312 313 314 def _ordered_keys(d):315 keys = list(d.keys())316 if not isinstance(d, OrderedDict):317 keys.sort()318 return keys -
src/sas/sascalc/dataloader/readers/associations.py
re5c09cf rb699768 92 92 import nexus_reader 93 93 import sesans_reader 94 import cansas_reader_HDF595 import anton_paar_saxs_reader96 94 registry_function(sesans_reader) 97 95 registry_function(abs_reader) … … 104 102 #registry_function(tiff_reader) 105 103 registry_function(nexus_reader) 106 registry_function(cansas_reader_HDF5) 107 registry_function(anton_paar_saxs_reader) 104 108 105 return True
Note: See TracChangeset
for help on using the changeset viewer.