Skip to content

Commit

Permalink
Issue NOAA-EMC#21 - correct syntax for machine if-blocks in setup_exp…
Browse files Browse the repository at this point in the history
…t scripts
  • Loading branch information
KateFriedman-NOAA committed Mar 26, 2020
1 parent f4ee509 commit b133700
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ush/rocoto/setup_expt.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def edit_baseconfig():
partition = args.partition

# Set machine defaults
if machine is 'WCOSS_DELL_P3':
if machine == 'WCOSS_DELL_P3':
base_git = '/gpfs/dell2/emc/modeling/noscrub/emc.glopara/git'
base_svn = '/gpfs/dell2/emc/modeling/noscrub/emc.glopara/git'
dmpdir = '/gpfs/dell3/emc/global/dump'
Expand All @@ -179,7 +179,7 @@ def edit_baseconfig():
if partition in ['3p5']:
queue = 'dev2'
queue_arch = 'dev2_transfer'
elif machine is 'WCOSS_C':
elif machine == 'WCOSS_C':
base_git = '/gpfs/hps3/emc/global/noscrub/emc.glopara/git'
base_svn = '/gpfs/hps3/emc/global/noscrub/emc.glopara/svn'
dmpdir = '/gpfs/dell3/emc/global/dump'
Expand All @@ -191,7 +191,7 @@ def edit_baseconfig():
account = 'GFS-DEV'
queue = 'dev'
queue_arch = 'dev_transfer'
elif machine is 'HERA':
elif machine == 'HERA':
base_git = '/scratch1/NCEPDEV/global/glopara/git'
base_svn = '/scratch1/NCEPDEV/global/glopara/svn'
dmpdir = '/scratch1/NCEPDEV/global/glopara/dump'
Expand Down
6 changes: 3 additions & 3 deletions ush/rocoto/setup_expt_fcstonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def edit_baseconfig():
partition = args.partition

# Set machine defaults
if machine is 'WCOSS_DELL_P3':
if machine == 'WCOSS_DELL_P3':
base_git = '/gpfs/dell2/emc/modeling/noscrub/emc.glopara/git'
base_svn = '/gpfs/dell2/emc/modeling/noscrub/emc.glopara/git'
dmpdir = '/gpfs/dell3/emc/global/dump'
Expand All @@ -145,7 +145,7 @@ def edit_baseconfig():
if partition in ['3p5']:
queue = 'dev2'
queue_arch = 'dev2_transfer'
elif machine is 'WCOSS_C':
elif machine == 'WCOSS_C':
base_git = '/gpfs/hps3/emc/global/noscrub/emc.glopara/git'
base_svn = '/gpfs/hps3/emc/global/noscrub/emc.glopara/svn'
dmpdir = '/gpfs/dell3/emc/global/dump'
Expand All @@ -157,7 +157,7 @@ def edit_baseconfig():
account = 'GFS-DEV'
queue = 'dev'
queue_arch = 'dev_transfer'
elif machine is 'HERA':
elif machine == 'HERA':
base_git = '/scratch1/NCEPDEV/global/glopara/git'
base_svn = '/scratch1/NCEPDEV/global/glopara/svn'
dmpdir = '/scratch1/NCEPDEV/global/glopara/dump'
Expand Down

0 comments on commit b133700

Please sign in to comment.