Skip to content

Commit

Permalink
Removed duplicated lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jeipollack committed Nov 8, 2023
1 parent b84a4ee commit 8032fed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/wf_psf/utils/configs_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ def get_psf_model_weights_filepath(self):
weights_basename,
)
)[0].split(".")[0]

except IndexError:
logger.error(
"PSF weights file not found. Check that you've specified the correct weights file in the metrics config file."
Expand Down Expand Up @@ -492,9 +493,6 @@ def _metrics_run_id_name(self, wf_outdir, metrics_params):
)
)

id_name = training_conf.training.id_name
model_name = training_conf.training.model_params.model_name

except (TypeError, FileNotFoundError):
logger.info("Trained model path not provided...")
logger.info(
Expand All @@ -512,8 +510,6 @@ def _metrics_run_id_name(self, wf_outdir, metrics_params):
)
)[0]
)
id_name = training_conf.training.id_name
model_name = training_conf.training.model_params.model_name

except:
logger.exception("File not found.")
Expand Down

0 comments on commit 8032fed

Please sign in to comment.