Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-Svard committed Nov 18, 2024
1 parent eaad5c6 commit 58fc3fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions cg_lims/EPPs/udf/calculate/library_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@ def library_normalization(
concentration_udf=concentration_udf,
)
if failed_samples:
failed_samples_string = ", ".join(failed_samples)
error_message = f"The following artifacts had a lower concentration than targeted: {failed_samples_string}"
failed_samples_string: str = ", ".join(failed_samples)
error_message: str = (
f"The following artifacts had a lower concentration than targeted: {failed_samples_string}"
)
LOG.info(error_message)
raise InvalidValueError(error_message)
message: str = "Volumes were successfully calculated."
Expand Down
6 changes: 4 additions & 2 deletions cg_lims/EPPs/udf/calculate/library_normalization_revio.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ def library_normalization_revio(
concentration_udf=concentration_udf,
)
if failed_samples:
failed_samples_string = ", ".join(failed_samples)
error_message = f"The following artifacts had a lower concentration than targeted: {failed_samples_string}"
failed_samples_string: str = ", ".join(failed_samples)
error_message: str = (
f"The following artifacts had a lower concentration than targeted: {failed_samples_string}"
)
LOG.error(error_message)
raise InvalidValueError(error_message)
message: str = "Volumes were successfully calculated."
Expand Down

0 comments on commit 58fc3fc

Please sign in to comment.