From bdf6c3f15b9026da68d18ce2c33bf5e7d3452386 Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Fri, 22 Mar 2024 11:34:35 -0600 Subject: [PATCH] Make pretty --- bmi_geotiff/bmi.py | 1 - bmi_geotiff/io.py | 2 +- examples/example-pan.py | 1 + examples/example-rgb.py | 1 + tests/test_io.py | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bmi_geotiff/bmi.py b/bmi_geotiff/bmi.py index 30ad573..245fcba 100644 --- a/bmi_geotiff/bmi.py +++ b/bmi_geotiff/bmi.py @@ -18,7 +18,6 @@ class BmiGeoTiff(Bmi): - """BMI-mediated access to data and metadata in a GeoTIFF file.""" _name = "bmi-geotiff" diff --git a/bmi_geotiff/io.py b/bmi_geotiff/io.py index a643342..8c030c8 100644 --- a/bmi_geotiff/io.py +++ b/bmi_geotiff/io.py @@ -1,10 +1,10 @@ """Access GeoTIFF files.""" + import rioxarray from rasterio.crs import CRS class GeoTiff: - """Access data and metadata in a GeoTIFF file.""" def __init__(self, filename=None): diff --git a/examples/example-pan.py b/examples/example-pan.py index 81ced7e..6537668 100644 --- a/examples/example-pan.py +++ b/examples/example-pan.py @@ -2,6 +2,7 @@ The data used are band 1 of Landsat 7 ETM scene LE71030642021102ASA00. """ + import matplotlib.pyplot as plt from bmi_geotiff import GeoTiff diff --git a/examples/example-rgb.py b/examples/example-rgb.py index 8638ca6..8637be0 100644 --- a/examples/example-rgb.py +++ b/examples/example-rgb.py @@ -3,6 +3,7 @@ The example is adapted from http://xarray.pydata.org/en/stable/examples/visualization_gallery.html#imshow()-and-rasterio-map-projections, and it uses the sample GeoTIFF image "RGB.byte.tif" from the rasterio project. """ + import cartopy.crs as ccrs import matplotlib.pyplot as plt diff --git a/tests/test_io.py b/tests/test_io.py index 5f27b03..8bd81c1 100644 --- a/tests/test_io.py +++ b/tests/test_io.py @@ -1,4 +1,5 @@ """Test the bmi_geotiff.io module""" + from pathlib import Path import pytest