From e4f5ad128c8d9c0002ad485ad91cfbb6f7cd585b Mon Sep 17 00:00:00 2001 From: Scott Staniewicz Date: Fri, 11 Oct 2024 21:28:12 -0400 Subject: [PATCH] add spurt to install --- .github/workflows/test-build-push.yml | 1 + src/dolphin/unwrap/_unwrap_3d.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-push.yml b/.github/workflows/test-build-push.yml index cd1804bb..383c69d0 100644 --- a/.github/workflows/test-build-push.yml +++ b/.github/workflows/test-build-push.yml @@ -50,6 +50,7 @@ jobs: "snaphu>=0.4.0" \ "opera-utils>=0.4.1" \ git+https://github.com/isce-framework/tophu@main \ + pip install git+https://github.com/isce-framework/spurt@main \ git+https://github.com/isce-framework/whirlwind@40defb38d2d6deca2819934788ebbc57e418e32d pip install --no-deps . - name: Install test dependencies diff --git a/src/dolphin/unwrap/_unwrap_3d.py b/src/dolphin/unwrap/_unwrap_3d.py index 5e6c316b..eeccae43 100644 --- a/src/dolphin/unwrap/_unwrap_3d.py +++ b/src/dolphin/unwrap/_unwrap_3d.py @@ -5,7 +5,7 @@ import numpy as np import rasterio as rio -from opera_utils import get_dates +from opera_utils import get_dates, sort_files_by_date from rasterio.windows import Window from scipy import ndimage, signal @@ -87,7 +87,7 @@ def unwrap_spurt( elif len(ifg_filenames) == len(g_time.links): logger.info("Using pre-formed nearest 3 interferograms") stack = IfgStackReader( - ifg_filenames=ifg_filenames, + ifg_filenames=sort_files_by_date(ifg_filenames)[0], quality_file=temporal_coherence_file, threshold=options.temporal_coherence_threshold, )