Test Report

Summary

71
69 passed 2 skipped

Warnings

WARNING
/opt/conda/envs/ci_env/lib/python3.11/site-packages/cartopy/crs.py:814
The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version
WARNING
/opt/conda/envs/ci_env/lib/python3.11/site-packages/py_tools_ds/geo/projection.py:169
Could not find a suitable EPSG code for the input WKT string.
WARNING
/opt/conda/envs/ci_env/lib/python3.11/site-packages/cartopy/crs.py:814
The 'geom_factory' function is deprecated in Shapely 2.0, and will be removed in a future version

Tests

tests/test_geoarray.py 572 0:00:07.557857

PASSED Test_GeoArray::test___getitem___0_inMem 0:00:00.010450

Setup

Call

Teardown

PASSED Test_GeoArray::test___getitem___1_notInMem 0:00:00.006926

Setup

Call

Teardown

PASSED Test_GeoArray::test___getitem__consistency 0:00:00.060917

Setup

Call

Captured stdout call
Writing GeoArray of size (2, 2, 2) to /tmp/tmppv039u_l/test.bsq.

Teardown

PASSED Test_GeoArray::test___getitem__consistency_2d_array 0:00:00.004493

Setup

Call

Captured stdout call
Writing GeoArray of size (2, 2) to /tmp/tmpmfutwqce/test.bsq.

Teardown

PASSED Test_GeoArray::test___getitem__consistency_3d_array_1_column 0:00:00.004553

Setup

Call

Captured stdout call
Writing GeoArray of size (2, 1, 2) to /tmp/tmpxg48velw/test.bsq.
Captured stderr call
ERROR 1: Attempt to create ENVI .hdr labelled dataset with an illegal data type (Int64).

Teardown

PASSED Test_GeoArray::test_bandnames_0_inMem 0:00:00.000963

Test GeoArray.bandnames [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f634288b410>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_bandnames_1_notInMem 0:00:00.000948

Test GeoArray.bandnames [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f62719d6dd0>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_box 0:00:00.001386

Test GeoArray.box.

Setup

Call

Teardown

PASSED Test_GeoArray::test_calc_mask_nodata_0_inMem 0:00:00.002961

Setup

Call

Teardown

PASSED Test_GeoArray::test_calc_mask_nodata_1_notInMem 0:00:00.000928

Setup

Call

Teardown

PASSED Test_GeoArray::test_clip_to_footprint 0:00:00.019630

Setup

Call

Captured stderr call

Polygonize progress     |=-------------------------------------------------| 1.0% Complete  => 0:00:00
Polygonize progress     |=-------------------------------------------------| 2.0% Complete  => 0:00:00
Polygonize progress     |==------------------------------------------------| 3.0% Complete  => 0:00:00
Polygonize progress     |==------------------------------------------------| 4.0% Complete  => 0:00:00
Polygonize progress     |==------------------------------------------------| 5.0% Complete  => 0:00:00
Polygonize progress     |===-----------------------------------------------| 6.0% Complete  => 0:00:00
Polygonize progress     |====----------------------------------------------| 8.0% Complete  => 0:00:00
Polygonize progress     |=====---------------------------------------------| 9.0% Complete  => 0:00:00
Polygonize progress     |=====---------------------------------------------| 10.0% Complete  => 0:00:00
Polygonize progress     |==========----------------------------------------| 19.0% Complete  => 0:00:00
Polygonize progress     |==============------------------------------------| 28.0% Complete  => 0:00:00
Polygonize progress     |==================--------------------------------| 37.0% Complete  => 0:00:00
Polygonize progress     |=======================---------------------------| 46.0% Complete  => 0:00:00
Polygonize progress     |============================----------------------| 55.0% Complete  => 0:00:00
Polygonize progress     |================================------------------| 64.0% Complete  => 0:00:00
Polygonize progress     |====================================--------------| 73.0% Complete  => 0:00:00
Polygonize progress     |=========================================---------| 82.0% Complete  => 0:00:00
Polygonize progress     |==============================================----| 91.0% Complete  => 0:00:00
Polygonize progress     |==================================================| 100.0% Complete  => 0:00:00

Polygonize progress     |=======================================================| 109.0% Complete  => 0:00:00

Polygonize progress     |=-------------------------------------------------| 1.0% Complete  => 0:00:00
Polygonize progress     |=-------------------------------------------------| 2.0% Complete  => 0:00:00
Polygonize progress     |==------------------------------------------------| 3.0% Complete  => 0:00:00
Polygonize progress     |==------------------------------------------------| 4.0% Complete  => 0:00:00
Polygonize progress     |==------------------------------------------------| 5.0% Complete  => 0:00:00
Polygonize progress     |===-----------------------------------------------| 6.0% Complete  => 0:00:00
Polygonize progress     |====----------------------------------------------| 8.0% Complete  => 0:00:00
Polygonize progress     |=====---------------------------------------------| 9.0% Complete  => 0:00:00
Polygonize progress     |=====---------------------------------------------| 10.0% Complete  => 0:00:00
Polygonize progress     |==========----------------------------------------| 19.0% Complete  => 0:00:00
Polygonize progress     |==============------------------------------------| 28.0% Complete  => 0:00:00
Polygonize progress     |==================--------------------------------| 37.0% Complete  => 0:00:00
Polygonize progress     |=======================---------------------------| 46.0% Complete  => 0:00:00
Polygonize progress     |============================----------------------| 55.0% Complete  => 0:00:00
Polygonize progress     |================================------------------| 64.0% Complete  => 0:00:00
Polygonize progress     |====================================--------------| 73.0% Complete  => 0:00:00
Polygonize progress     |=========================================---------| 82.0% Complete  => 0:00:00
Polygonize progress     |==============================================----| 91.0% Complete  => 0:00:00
Polygonize progress     |==================================================| 100.0% Complete  => 0:00:00

Polygonize progress     |=======================================================| 109.0% Complete  => 0:00:00

Teardown

PASSED Test_GeoArray::test_dtype_0_inMem 0:00:00.000942

Test GeoArray.dtype [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626f4b5a90>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_dtype_1_notInMem 0:00:00.000942

Test GeoArray.dtype [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef79110>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_dtype_is_updated_0_inMem 0:00:00.001047

Test if the data type gets properly updated if the full array is replaced with one with another data type [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef793d0>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_dtype_is_updated_1_notInMem 0:00:00.001012

Test if the data type gets properly updated if the full array is replaced with one with another data type [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef79610>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_footprint_poly 0:00:00.002529

Test GeoArray.footprint_poly.

Setup

Call

Teardown

PASSED Test_GeoArray::test_geotransform_gsd_grid_0_inMem 0:00:00.000943

Test GeoArray.geotransform, .xgsd, .ygsd, and .xygrid_specs [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef79950>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_geotransform_gsd_grid_1_notInMem 0:00:00.000934

Test GeoArray.geotransform, .xgsd, .ygsd, and .xygrid_specs [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626f4b4510>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_get_mapPos 0:00:00.099626

Setup

Call

Teardown

PASSED Test_GeoArray::test_get_subset_2D_geoarray 0:00:00.006220

Setup

Call

Teardown

PASSED Test_GeoArray::test_get_subset_3D_geoarray 0:00:00.062726

Setup

Call

Teardown

PASSED Test_GeoArray::test_mask_baddata 0:00:00.004873

Test GeoArray.mask_baddata.

Setup

Call

Teardown

PASSED Test_GeoArray::test_mask_nodata 0:00:00.000922

Test GeoArray.mask_nodata.

Setup

Call

Teardown

PASSED Test_GeoArray::test_metadata 0:00:00.000916

Test GeoArray.metadata.

Setup

Call

Teardown

PASSED Test_GeoArray::test_nodata_given 0:00:00.000988

Test GeoArray.nodata in case nodata value is given.

Setup

Call

Teardown

PASSED Test_GeoArray::test_nodata_not_given 0:00:00.001003

Test GeoArray.nodata in case no nodata value is given (i.e., auto-detected).

Setup

Call

Teardown

PASSED Test_GeoArray::test_nodata_out_of_range 0:00:00.001226

Test if given nodata value is valid with respect to the array data type.

Setup

Call

Teardown

PASSED Test_GeoArray::test_numpy_array 0:00:00.001006

Setup

Call

Teardown

PASSED Test_GeoArray::test_projection_epsg_0_inMem 0:00:00.002480

Test GeoArray.projection and .epsg [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef79e10>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_projection_epsg_1_notInMem 0:00:00.002472

Test GeoArray.projection and .epsg [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef7a090>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__OneBandArray_multiCoords_offside 0:00:00.001927

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__multiCoords_allbands 0:00:00.001163

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__multiCoords_allbands_otherPrj 0:00:00.014429

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__multiCoords_offside_allbands 0:00:00.001804

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__multiCoords_offside_oneband 0:00:00.001696

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__singleCoord_allbands 0:00:00.001117

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__singleCoord_allbands_otherPrj 0:00:00.014301

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__singleCoord_offside_oneband 0:00:00.001111

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__singleCoord_offside_oneband_no_offside_val 0:00:00.001059

Setup

Call

Teardown

PASSED Test_GeoArray::test_read_pointData__singleCoord_oneband 0:00:00.001086

Setup

Call

Teardown

PASSED Test_GeoArray::test_save_0_inMem 0:00:00.073459

Test GeoArray.save [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef7ae50>].

Setup

Call

Captured stdout call
Writing GeoArray of size (10, 11, 2) to /builds/danschef/geoarray/tests/data/output/test_save_r29ggxf0/TestGeoArray_10x11_copy.tif.
Writing GeoArray of size (10, 11, 2) to /builds/danschef/geoarray/tests/data/output/test_save_h24m5yhs/TestGeoArray_10x11_copy.tif.

Teardown

PASSED Test_GeoArray::test_save_1_notInMem 0:00:00.087877

Test GeoArray.save [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626f4b4650>].

Setup

Call

Captured stdout call
Writing GeoArray of size (10, 11, 2) to /builds/danschef/geoarray/tests/data/output/test_save_k_ggyk5o/TestGeoArray_10x11_copy.tif.
Writing GeoArray of size (10, 11, 2) to /builds/danschef/geoarray/tests/data/output/test_save_azl04amt/TestGeoArray_10x11_copy.tif.

Teardown

SKIPPED Test_GeoArray::test_save_meta_ENVI_0_inMem 0:00:00.000590

Skipped: https://git.gfz-potsdam.de/danschef/geoarray/-/issues/39

Setup

('/builds/danschef/geoarray/tests/test_geoarray.py', 503, 'Skipped: https://git.gfz-potsdam.de/danschef/geoarray/-/issues/39')

Teardown

SKIPPED Test_GeoArray::test_save_meta_ENVI_1_notInMem 0:00:00.000481

Skipped: https://git.gfz-potsdam.de/danschef/geoarray/-/issues/39

Setup

('/builds/danschef/geoarray/tests/test_geoarray.py', 503, 'Skipped: https://git.gfz-potsdam.de/danschef/geoarray/-/issues/39')

Teardown

PASSED Test_GeoArray::test_save_meta_GTiff_0_inMem 0:00:00.162232

Setup

Call

Captured stdout call
Writing GeoArray of size (10, 11, 2) to /tmp/geoarray__68jntw44/outfile.tif.

Teardown

PASSED Test_GeoArray::test_save_meta_GTiff_1_notInMem 0:00:00.166205

Setup

Call

Captured stdout call
Writing GeoArray of size (10, 11, 2) to /tmp/geoarray__q3sr0ber/outfile.tif.

Teardown

PASSED Test_GeoArray::test_shape_0_inMem 0:00:00.001608

Test GeoArray.shape, .ndim, .rows, .columns, and .bands [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626f2510d0>]

Setup

Call

Teardown

PASSED Test_GeoArray::test_shape_1_notInMem 0:00:00.001496

Test GeoArray.shape, .ndim, .rows, .columns, and .bands [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef783d0>]

Setup

Call

Teardown

PASSED Test_GeoArray::test_shape_is_updated_0_inMem 0:00:00.001649

Test if shape attribute gets properly updated if the full array is replaced with one with another shape [with _='inMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef789d0>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_shape_is_updated_1_notInMem 0:00:00.001386

Test if shape attribute gets properly updated if the full array is replaced with one with another shape [with _='notInMem', gA=<geoarray.baseclasses.GeoArray object at 0x7f626ef78c10>].

Setup

Call

Teardown

PASSED Test_GeoArray::test_show 0:00:05.817053

Setup

Call

Teardown

PASSED Test_GeoArray::test_show_histogram 0:00:00.345020

Setup

Call

Captured stdout call
STD: 264.7613
MEAN: 5557.7817
2 % percentile: 5121.68
98 % percentile: 6182.4

Teardown

PASSED Test_GeoArray::test_show_map 0:00:00.119324

Setup

Call

Teardown

PASSED Test_GeoArray::test_show_map_noepsg 0:00:00.163119

Setup

Call

Teardown

PASSED Test_GeoArray::test_show_xprofile 0:00:00.070513

Setup

Call

Teardown

PASSED Test_GeoArray::test_show_yprofile 0:00:00.063335

Setup

Call

Teardown

PASSED Test_GeoArray::test_show_zprofile 0:00:00.127247

Setup

Call

Teardown

PASSED Test_GeoArray::test_tiles 0:00:00.001184

Setup

Call

Teardown

PASSED Test_GeoArray::test_vsi_path 0:00:00.007428

Setup

Call

Teardown

tests/test_masks.py 6 0:00:00.007013

PASSED Test_NoDataMask::test_init_from_bool 0:00:00.001173

Setup

Call

Teardown

PASSED Test_NoDataMask::test_init_from_int 0:00:00.001028

Setup

Call

Teardown

PASSED Test_NoDataMask::test_init_out_of_range 0:00:00.001374

Setup

Call

Teardown

PASSED Test_BadDataMask::test_init_from_bool 0:00:00.001070

Setup

Call

Teardown

PASSED Test_BadDataMask::test_init_from_int 0:00:00.001029

Setup

Call

Teardown

PASSED Test_BadDataMask::test_init_out_of_range 0:00:00.001339

Setup

Call

Teardown

tests/test_metadata.py 6 0:00:00.065881

PASSED Test_GDAL_Metadata::test___getitem__ 0:00:00.004421

Setup

Call

Teardown

PASSED Test_GDAL_Metadata::test_get_subset 0:00:00.002503

Setup

Call

Teardown

PASSED Test_GDAL_Metadata::test_init 0:00:00.002260

Setup

Call

Teardown

PASSED Test_GDAL_Metadata::test_read_bandnames 0:00:00.036696

Setup

Call

Captured stdout call
Writing GeoArray of size (5, 5, 4) to /tmp/tmpv0m2x3b9/read_bandnames_correctly.bsq.
Captured stderr call
ERROR 1: Attempt to create ENVI .hdr labelled dataset with an illegal data type (Int64).

Teardown

PASSED Test_GDAL_Metadata::test_save 0:00:00.016516

Setup

Call

Captured stdout call
Writing GeoArray of size (5, 5, 10) to /tmp/tmpm_xzmcdu/save_bandnames_from_file.bsq.

Teardown

PASSED Test_GDAL_Metadata::test_save_bandnames 0:00:00.003485

Setup

Call

Captured stdout call
Writing GeoArray of size (5, 5, 3) to /tmp/tmpgm9v4wqg/save_bandnames_from_numpy.bsq.
Captured stderr call
ERROR 1: Attempt to create ENVI .hdr labelled dataset with an illegal data type (Int64).

Teardown