Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPlayer3 committed Jan 10, 2025
1 parent c09b09e commit e78ad8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/hyp3lib/makeAsfBrowse.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ def makeAsfBrowse(geotiff: str, base_name: str, use_nn=False, width: int = 2048)
tiff = None # How to close with gdal

if tiff_width < width:
logging.warning(
f'Requested image dimension of {width} exceeds GeoTIFF width {tiff_width}.' f' Using GeoTIFF width'
)
logging.warning(f'Requested image dimension of {width} exceeds GeoTIFF width {tiff_width}. Using GeoTIFF width')
browse_width = tiff_width
else:
browse_width = width
Expand All @@ -55,7 +53,7 @@ def main():
'-n',
'--nearest-neighbor',
action='store_true',
help="use GDAL's GRIORA_NearestNeighbour interpolation instead" ' of GRIORA_Cubic to resample the GeoTIFF',
help="use GDAL's GRIORA_NearestNeighbour interpolation instead of GRIORA_Cubic to resample the GeoTIFF",
)
parser.add_argument('-w', '--width', default=2048, help='browse image width')
args = parser.parse_args()
Expand Down
6 changes: 3 additions & 3 deletions src/hyp3lib/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ def gamma_version():
gamma_ver = f.readlines()[-1].strip()
except IOError:
logging.warning(
f"No GAMMA_VERSION environment variable or ASF_Gamma_version.txt "
f"file found in GAMMA_HOME:\n {os.getenv('GAMMA_HOME')}\n"
f"Attempting to parse GAMMA version from its install directory"
f'No GAMMA_VERSION environment variable or ASF_Gamma_version.txt '
f'file found in GAMMA_HOME:\n {os.getenv("GAMMA_HOME")}\n'
f'Attempting to parse GAMMA version from its install directory'
)
gamma_ver = os.path.basename(gamma_home).split('-')[-1]
try:
Expand Down

0 comments on commit e78ad8c

Please sign in to comment.