Skip to content

Commit

Permalink
smurf: Correct naming of jsasplit output NDFs if "OUT" is null
Browse files Browse the repository at this point in the history
If parameter "out" is null, it now uses the name of the input NDF as the
default.
  • Loading branch information
David Berry committed Jan 31, 2014
1 parent e1a84d7 commit c2a584b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions applications/smurf/scripts/jsasplit.py
Expand Up @@ -75,7 +75,8 @@
* OUT = LITERAL (Read)
* The basename for the output NDFs. Each output NDF will have a
* name formed by appending the integer tile index to the supplied
* basename, preceeded by and underscore.
* basename, preceeded by and underscore. A null (!) value causes
* the name of the input NDF to be used.
* RETAIN = _LOGICAL (Read)
* Should the temporary directory containing the intermediate files
* created by this script be retained? If not, it will be deleted
Expand Down Expand Up @@ -186,8 +187,11 @@ def cleanup():
# Get the input NDF.
inndf = parsys["IN"].value

# Get the name of the output NDF.
# Get the name of the output NDF. If not supplied, use the name of hte
# input NDF.
outndf = parsys["OUT"].value
if outndf == None:
outndf = inndf

# See how the output NDFs are to be trimmed.
trim = parsys["TRIM"].value
Expand Down

0 comments on commit c2a584b

Please sign in to comment.