@@ -348,7 +348,9 @@ def workflowtest(self, wfname, testname, dataname, pyname, suf="", description="
348
348
Test input dataset(s) to be mounted (e.g. "L0B_RRSD_REE1", ["L0B_RRSD_REE1", "L0B_RRSD_REE2"]).
349
349
If None, no input datasets are used.
350
350
pyname : str
351
- Name of the isce3 module to execute (e.g. "nisar.workflows.focus")
351
+ Name of the isce3 module to execute (e.g. "nisar.workflows.focus") or,
352
+ for Soil Moisture (SM) testing, the name of the SAS executable to run
353
+ (e.g. "NISAR_SM_DISAGG_SAS")
352
354
suf: str
353
355
Suffix in runconfig and output directory name to differentiate between
354
356
reference and secondary data in end-to-end tests
@@ -380,14 +382,14 @@ def workflowtest(self, wfname, testname, dataname, pyname, suf="", description="
380
382
pjoin (testdir , f"runconfig_{ wfname } { suf } .yaml" ))
381
383
log = pjoin (testdir , f"output_{ wfname } { suf } " , "stdouterr.log" )
382
384
383
- if not testname .startswith ("sm " ):
385
+ if not testname .startswith ("soilm " ):
384
386
cmd = [f"time python3 -m { pyname } { arg } runconfig_{ wfname } { suf } .yaml" ]
385
387
else :
386
388
executable = pyname
387
389
cmd = [f"time { executable } runconfig_{ wfname } { suf } .yaml" ]
388
390
389
391
try :
390
- if not testname .startswith ("sm " ):
392
+ if not testname .startswith ("soilm " ):
391
393
self .distribrun (testdir , cmd , logfile = log , dataname = dataname ,
392
394
loghdlrname = f'wftest.{ os .path .basename (testdir )} ' )
393
395
else :
@@ -501,9 +503,9 @@ def beamformtest(self, tests=None):
501
503
except subprocess .CalledProcessError as e :
502
504
raise RuntimeError (f"CalTool beamformer tool test { testname } failed" ) from e
503
505
504
- def smtest (self , tests = None ):
506
+ def soilmtest (self , tests = None ):
505
507
if tests is None :
506
- tests = workflowtests ['sm ' ].items ()
508
+ tests = workflowtests ['soilm ' ].items ()
507
509
for testname , dataname in tests :
508
510
# Note: we will eventually have multiple SM executables, each
509
511
# of which implements a different algorithm. These executables
@@ -514,11 +516,10 @@ def smtest(self, tests=None):
514
516
#
515
517
# Also, the current plan is for two of the SM executables to be
516
518
# Fortran 90 binaries and the other two to be Python modules.
517
- sm_bindir = '/opt/conda/envs/SoilMoisture/bin'
519
+ soilm_bindir = '/opt/conda/envs/SoilMoisture/bin'
518
520
executables = [ 'NISAR_SM_DISAGG_SAS' ]
519
- cmd = [ ]
520
521
for executable in executables :
521
- self .workflowtest ("sm " , testname , dataname , f"{ sm_bindir } /{ executable } " )
522
+ self .workflowtest ("soilm " , testname , dataname , f"{ soilm_bindir } /{ executable } " )
522
523
523
524
def mintests (self ):
524
525
"""
0 commit comments