Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
doutriaux1 committed Jul 18, 2019
1 parent 92ca4b2 commit 13d37ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion pcmdi_metrics/driver/outputmetrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,3 @@ def write_on_exit(self):
indent=4,
separators=(',', ': '),
mode="r+")
#self.out_file.write(self.metrics_dictionary, type='txt')
11 changes: 1 addition & 10 deletions pcmdi_metrics/pcmdi/mean_climate_metrics_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,9 @@ def run_diags(self):
'Variable %s not in obs_dict' % self.var)
continue


for region in self.regions_dict[self.var]:
logging.getLogger("pcmdi_metrics").info("REGION: {}".format(region))
self.region = self.create_region(region)
# Need to add the region to the output dict now b/c
# otherwise if done later, sometimes it's not added due to
# premature break in the for loops for reference and test.
# Runs obs vs obs, obs vs model, or model vs model
#self.output_metric = OutputMetrics(self.parameter, self.var_name_long,
# self.obs_dict, sftlf=self.sftlf)
#self.output_metric.add_region(self.region)
self.run_reference_and_test_comparison()

def load_obs_dict(self):
Expand Down Expand Up @@ -180,7 +172,7 @@ def run_reference_and_test_comparison(self):
for test in test_data_set:
logging.getLogger("pcmdi_metrics").info("TEST DATA IS: {}".format(test))
self.output_metric = OutputMetrics(self.parameter, self.var_name_long,
self.obs_dict, sftlf=self.sftlf)
self.obs_dict, sftlf=self.sftlf)
self.output_metric.add_region(self.region)
try:
tst = self.determine_obs_or_model(test_data_set_is_obs,
Expand All @@ -194,7 +186,6 @@ def run_reference_and_test_comparison(self):
logging.getLogger("pcmdi_metrics").info("Unexpected error:".format(err))
break


try:
self.output_metric.calculate_and_output_metrics(ref, tst)
except RuntimeError:
Expand Down

0 comments on commit 13d37ae

Please sign in to comment.