diff --git a/src/registration_library/base/colormapper.py b/src/registration_library/base/colormapper.py index 86322dc..0fb7356 100644 --- a/src/registration_library/base/colormapper.py +++ b/src/registration_library/base/colormapper.py @@ -9,7 +9,7 @@ def hex_to_rgb(hexa): - return tuple(int(hexa[i: i + 2], 16) for i in (0, 2, 4)) + return tuple(int(hexa[i : i + 2], 16) for i in (0, 2, 4)) def rgb_to_hex(r, g, b): @@ -389,9 +389,7 @@ def to_sld( sld += f' \n' for entry in self.entries: - sld += ( - f' bool: try: source_ds = rio_open(source) log.debug( - f"Checking: {source}\n crs: {source_ds.crs}\n " - f"gcps: {source_ds.crs}\n transform: {source_ds.crs}" + f"Checking: {source}\n crs: {source_ds.crs}\n " f"gcps: {source_ds.crs}\n transform: {source_ds.crs}" ) if source_ds is not None: @@ -190,9 +189,7 @@ def translate( ) log.info(f">> gdal_translate {translate_options} {source} {translate_output}") - translate_ds = gdal.Translate( - translate_output, source_ds, options=translate_options.replace("-alpha", "") - ) + translate_ds = gdal.Translate(translate_output, source_ds, options=translate_options.replace("-alpha", "")) if color_table: if isfile(color_table) and access(color_table, R_OK):