diff --git a/harmony_service/adapter.py b/harmony_service/adapter.py index 3dce207..11dc362 100644 --- a/harmony_service/adapter.py +++ b/harmony_service/adapter.py @@ -56,8 +56,7 @@ def validate_message(self): if has_scale_extents(self.message) or has_scale_sizes(self.message): if not has_crs(self.message): raise HyBIGInvalidMessageError( - 'Harmony message must include a crs ' - 'with scaleExtent or scaleSizes.' + 'Harmony message must include a crs with scaleExtent or scaleSizes.' ) if not has_valid_scale_extents(self.message): diff --git a/hybig/browse.py b/hybig/browse.py index 2246666..6d2b5a3 100644 --- a/hybig/browse.py +++ b/hybig/browse.py @@ -456,7 +456,7 @@ def get_tiled_filename(input_file: Path, locator: dict | None = None) -> Path: """ if locator is not None: return input_file.with_suffix( - f".r{int(locator['row']):02d}c{int(locator['col']):02d}{input_file.suffix}" + f'.r{int(locator["row"]):02d}c{int(locator["col"]):02d}{input_file.suffix}' ) return input_file