Skip to content

Commit e904049

Browse files
committed
Fix stray f in error message f-strings (closes #985)
1 parent c5d0c75 commit e904049

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

malariagen_data/anoph/cnv_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def open_cnv_coverage_calls(
296296
marker = path + "/.zmetadata"
297297
if not self._fs.exists(marker):
298298
raise ValueError(
299-
f"CNV coverage calls analysis f{analysis!r} not implemented for sample set {sample_set!r}"
299+
f"CNV coverage calls analysis {analysis!r} not implemented for sample set {sample_set!r}"
300300
)
301301
store = _init_zarr_store(fs=self._fs, path=path)
302302
root = zarr.open_consolidated(store=store)

malariagen_data/anoph/hap_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _prep_phasing_analysis_param(self, *, analysis: hap_params.analysis) -> str:
6464
return analysis
6565
else:
6666
raise ValueError(
67-
f"Invalid phasing analysis, must be one of f{self.phasing_analysis_ids}."
67+
f"Invalid phasing analysis, must be one of {self.phasing_analysis_ids}."
6868
)
6969

7070
@_check_types

malariagen_data/anoph/snp_data.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,7 @@ def _prep_site_mask_param(
116116
elif site_mask in self.site_mask_ids:
117117
return site_mask
118118
else:
119-
raise ValueError(
120-
f"Invalid site mask, must be one of f{self.site_mask_ids}."
121-
)
119+
raise ValueError(f"Invalid site mask, must be one of {self.site_mask_ids}.")
122120

123121
def _prep_optional_site_mask_param(
124122
self,

0 commit comments

Comments
 (0)