Changes in / [1ed6be7:695ec0b] in sasview


Ignore:
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • build_tools/jenkins_win_build.bat

    rd2fd8fc r801a296  
    1616 
    1717:: SET SASVIEW GITHASH ################################################ 
    18 :: 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 
     18cd %WORKSPACE% 
     19cd sasview\sasview 
     20git rev-parse HEAD > tmpFile_githash 
     21SET /p githash= < tmpFile_githash 
     22DEL tmpFile_githash 
     23%GIT_SED% -i.bak "s/GIT_COMMIT/%githash%/g" __init__.py 
    2424 
    2525 
  • sasview/__init__.py

    r8ca1ba1 r801a296  
    33try: 
    44    import subprocess 
    5     git_revision = subprocess.check_output(['git', 'rev-parse', 'HEAD']) 
     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) 
    610    __build__ = str(git_revision).strip() 
    711except: 
  • src/sas/sascalc/calculator/BaseComponent.py

    rcb4ef58 rdeddda1  
    77# imports 
    88import copy 
     9from collections import OrderedDict 
     10 
    911import numpy 
    1012#TO DO: that about a way to make the parameter 
     
    254256        Return a list of all available parameters for the model 
    255257        """ 
    256         list = self.params.keys() 
     258        list = _ordered_keys(self.params) 
    257259        # WARNING: Extending the list with the dispersion parameters 
    258260        list.extend(self.getDispParamList()) 
     
    264266        """ 
    265267        list = [] 
    266  
    267         for item in self.dispersion.keys(): 
    268             for p in self.dispersion[item].keys(): 
     268        for item in _ordered_keys(self.dispersion): 
     269            for p in _ordered_keys(self.dispersion[item]): 
    269270                if p not in ['type']: 
    270271                    list.append('%s.%s' % (item.lower(), p.lower())) 
     
    309310        """ 
    310311        raise ValueError, "Model operation are no longer supported" 
     312 
     313 
     314def _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

    rb699768 re5c09cf  
    9292    import nexus_reader 
    9393    import sesans_reader 
     94    import cansas_reader_HDF5 
     95    import anton_paar_saxs_reader 
    9496    registry_function(sesans_reader) 
    9597    registry_function(abs_reader) 
     
    102104    #registry_function(tiff_reader) 
    103105    registry_function(nexus_reader) 
    104      
     106    registry_function(cansas_reader_HDF5) 
     107    registry_function(anton_paar_saxs_reader) 
    105108    return True 
Note: See TracChangeset for help on using the changeset viewer.