Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Jul 27, 2016
1 parent 8624ece commit 4ef656d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion utils/python/CIME/SystemTests/lii.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(self):
stop_n = self._case.get_value("STOP_N")
stop_option = self._case.get_value("STOP_OPTION")
logger.info("doing a %d %s initial test with init_interp set to %s, no restarts written"
% (stop_n, stop_option, os.path.basename(filename) == "user_nl_interp"))
% (stop_n, stop_option, user_nl_dir == "interp"))

success = SystemTestsCommon._run(self, suffix=user_nl_dir)
if not success:
Expand Down
4 changes: 2 additions & 2 deletions utils/python/CIME/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,8 @@ def configure(self, compset_name, grid_name, machine_name=None,
#--------------------------------------------
# pe payout
#--------------------------------------------
match1 = False
match2 = False
match1 = None
match2 = None
pes_ntasks = {}
pes_nthrds = {}
pes_rootpe = {}
Expand Down
3 changes: 1 addition & 2 deletions utils/python/CIME/system_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def _create_newcase_phase(self, test):
if case_opt.startswith('P'):
pesize = case_opt[1:]
create_newcase_cmd += " --pecount %s"%pesize

if self._walltime is not None:
create_newcase_cmd += " --walltime %s" % self._walltime
elif test in self._test_xml and "wallclock" in self._test_xml[test]:
Expand All @@ -410,7 +410,6 @@ def _xml_phase(self, test):
files = Files()
drv_config_file = files.get_value("CONFIG_DRV_FILE")
drv_comp = Component(drv_config_file)
component_classes = drv_comp.get_valid_model_components()
envtest.add_elements_by_group(drv_comp, {}, "env_test.xml")
envtest.set_value("TESTCASE", test_case)
envtest.set_value("TEST_TESTID", self._test_id)
Expand Down

0 comments on commit 4ef656d

Please sign in to comment.