Skip to content

Commit

Permalink
Update error message for [data_set] crop_to config
Browse files Browse the repository at this point in the history
Co-authored-by: Drew Oldag <[email protected]>
  • Loading branch information
mtauraso and drewoldag authored Dec 11, 2024
1 parent 29de9e6 commit 8bc1386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fibad/data_sets/hsc_data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,8 @@ def _check_file_dimensions(self) -> tuple[int, int]:
if min(cutout_height, cutout_width) < 1:
msg = "Automatic determination found an absurd dimension of "
msg += f"({cutout_width}px, {cutout_height}px)\n"
msg += "Please either correct the data source or set a static cutout side with the \n"
msg += "crop_to configuration in the dataset section of the fibad config.\n"
msg += "Please either correct the data source or set a static cutout size with the \n"
msg += "crop_to configuration in the [data_set] section of your fibad config.\n"
raise RuntimeError(msg)

Check warning on line 736 in src/fibad/data_sets/hsc_data_set.py

View check run for this annotation

Codecov / codecov/patch

src/fibad/data_sets/hsc_data_set.py#L732-L736

Added lines #L732 - L736 were not covered by tests

return cutout_width, cutout_height
Expand Down

0 comments on commit 8bc1386

Please sign in to comment.