Skip to content

Commit

Permalink
Merge pull request #188 from guillemc23/patch-2
Browse files Browse the repository at this point in the history
FIX: Relative paths for GPT graphs
  • Loading branch information
remi-braun authored Nov 27, 2024
2 parents 0451c0b + e97f5ee commit 2358e7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
## 0.21.8 (2024-mm-dd)
- FIX: Fix stack save_as_int to use updated int values
- ENH: Add a new type (`BandsType`) for list of BandType
- FIX: Fixed PAZ Product Regex to properly indentify PAZ ST products as `PAZProduct` @guillemc23
- FIX: Fixed PAZ Product Regex to properly indentify PAZ ST products as `PAZProduct` - by @guillemc23
- FIX: Fixed preprocessing graph paths in order to support relative paths in more complex environments or contexts - by @guillemc23
- FIX: Remove useless `_norm_diff` function `indices.py`
- DOC: Update `conf.py` (remove useless hunks and set Sphinx 7 as base)
- DOC: Added the [PAZ product guide](https://earth.esa.int/eogateway/documents/20142/37627/PAZ-Image-Products-Guide.pdf) to the PAZ Product documentation instead of the TerraSAR-X one @guillemc23
- DOC: Added the [PAZ product guide](https://earth.esa.int/eogateway/documents/20142/37627/PAZ-Image-Products-Guide.pdf) to the PAZ Product documentation instead of the TerraSAR-X one - by @guillemc23

## 0.21.7 (2024-11-08)

Expand Down
4 changes: 2 additions & 2 deletions eoreader/products/sar/sar_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def _pre_process_sar(self, band: sab, pixel_size: float = None, **kwargs) -> str
f"{spt}_{sat}_preprocess_default.xml"
)
else:
pp_graph = AnyPath(os.environ[PP_GRAPH])
pp_graph = AnyPath(os.environ[PP_GRAPH]).resolve()
if not pp_graph.is_file() or not pp_graph.suffix == ".xml":
FileNotFoundError(f"{pp_graph} cannot be found.")

Expand Down Expand Up @@ -847,7 +847,7 @@ def _despeckle_sar(self, band: sab, **kwargs) -> str:
if DSPK_GRAPH not in os.environ:
dspk_graph = utils.get_data_dir().joinpath("sar_despeckle_default.xml")
else:
dspk_graph = AnyPath(os.environ[DSPK_GRAPH])
dspk_graph = AnyPath(os.environ[DSPK_GRAPH]).resolve()
if not dspk_graph.is_file() or not dspk_graph.suffix == ".xml":
FileNotFoundError(f"{dspk_graph} cannot be found.")

Expand Down

0 comments on commit 2358e7b

Please sign in to comment.