Changeset 15396 for issm/trunk/test/NightlyRun/runme.py
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/test
- Property svn:mergeinfo changed
-
issm/trunk/test/NightlyRun
- Property svn:ignore
-
old new 1 *.toolkits 1 2 __pycache__ 2 3 *.tar.gz
-
- Property svn:ignore
-
issm/trunk/test/NightlyRun/runme.py
r14067 r15396 22 22 'id' followed by the list of ids requested 23 23 'exclude' ids to be excluded from the test 24 'benchmark' 'nightly' (nightly run/ daily run) 24 'benchmark' 'all' (all of the tests) 25 'nightly' (nightly run/ daily run) 25 26 'ismip' : validation of ismip-hom tests 26 27 'eismint': validation of eismint tests 27 28 'thermal': validation of thermal tests 28 29 'mesh' : validation of mesh tests 30 'adolc' : validation of adolc tests 31 'gia' : validation of gia tests 32 29 33 ... 30 34 'procedure' 'check' : run the test (default) … … 32 36 33 37 Usage: 34 md=runme(varargin);38 runme(varargin); 35 39 36 40 Examples: 37 41 runme() 38 42 runme(exclude=101) 39 md=runme(id=102,procedure='update')43 runme(id=102,procedure='update') 40 44 """ 41 45 … … 50 54 #Process options 51 55 #GET benchmark {{{ 52 if not ismember(benchmark,['all','nightly','ismip','eismint','thermal','mesh','validation','tranforcing','adolc' ]):56 if not ismember(benchmark,['all','nightly','ismip','eismint','thermal','mesh','validation','tranforcing','adolc','gia']): 53 57 print "runme warning: benchmark '%s' not supported, defaulting to test 'nightly'." % benchmark 54 58 benchmark='nightly' … … 113 117 elif strcmpi(benchmark,'referential'): 114 118 test_ids=test_ids.intersection(set(range(1601,1603))) 119 elif strcmpi(benchmark,'gia'): 120 test_ids=test_ids.intersection(set(range(2001,2100))) 115 121 elif strcmpi(benchmark,'adolc'): 116 122 test_ids=test_ids.intersection(set(range(3001,3020))) … … 144 150 else: 145 151 field=field.reshape(0,0) 152 elif len(field.shape) == 0: 153 field=field.reshape(1,1) 146 154 # Matlab uses base 1, so use base 1 in labels 147 155 f.createDimension(archive_name+'_field'+str(k+1)+'_1',numpy.size(field,0)) … … 234 242 raise RuntimeError(me) 235 243 236 # #output md if requested237 # if nargout==1238 # varargout{1}=md;239 # end240 241 244 return 242 245
Note:
See TracChangeset
for help on using the changeset viewer.