Skip to content

Commit 9b3656f

Browse files
committed
FIX: Return an empty lxml.Element as metadata for S1 RTC ASF products instead of None to ensure consistency
1 parent 45888a2 commit 9b3656f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- FIX: Handle GCPs in VHR data
2525
- FIX: Fix raw CRS exported as string rather than CRS object for Maxar data [#255](https://github.com/sertit/eoreader/issues/255)
2626
- FIX: Use only the number of range looks to derive the resolution and pixel_size of CSG data [#256](https://github.com/sertit/eoreader/issues/256)
27+
- FIX: Retunr an empty `lxml.Element` as metadata for S1 RTC ASF products instead of `None` to ensure consistency
2728
- OPTIM: Use raw band path over default band path to speed up the computation of image information (extent, footprint, CRS, transform) of SAR ortho products
2829
- OPTIM: Allow predictor = 3 with LZW compression when saving SAR intermediate data as SNAP handles it properly now. [#173](https://github.com/sertit/eoreader/issues/173)
2930
- CI: Filter some warnings in pytest

eoreader/products/sar/s1_rtc_asf_product.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _read_mtd(self) -> (etree._Element, dict):
271271
(etree._Element, dict): Metadata XML root and its namespaces
272272
"""
273273
# No MTD!
274-
return None, {}
274+
return etree.Element("root"), {}
275275

276276
def get_quicklook_path(self) -> str:
277277
"""

0 commit comments

Comments
 (0)