Skip to content

Commit

Permalink
Fixed pandas error
Browse files Browse the repository at this point in the history
  • Loading branch information
QazyBi committed Oct 1, 2024
1 parent ef818c4 commit 5cc686d
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,6 @@
from tests.utils import get_test_folder_path


def test_reprojection_metadata(dataset):
file_path = get_test_folder_path() / "data/images/other/satellite_cropped/prepared/one/BLU.jp2"
metadata = dataset.get_reprojection_metadata(file_path, target_crs_epsg=3857)
assert metadata["crs"].to_epsg() == 3857
assert metadata["width"] == 1024
assert metadata["height"] == 1024
assert metadata["transform"][0] == pytest.approx(1)
assert metadata["transform"][3] == pytest.approx(0.0)
assert metadata["transform"][1] == pytest.approx(0.0)
assert metadata["transform"][2] == pytest.approx(0)
assert metadata["transform"][4] == pytest.approx(-1)
assert metadata["transform"][5] == pytest.approx(1024)


def test_file_metadata(dataset):
file_path = get_test_folder_path() / "data/images/other/satellite_cropped/prepared/one/BLU.jp2"
metadata = dataset.get_file_metadata(file_path)
Expand All @@ -32,3 +18,4 @@ def test_file_metadata(dataset):
assert metadata["transform"][5] == pytest.approx(0.0)
assert metadata["width"] == 1024
assert metadata["height"] == 1024

0 comments on commit 5cc686d

Please sign in to comment.