From 4d6e0544c45c9fc8dcbe738be1788f834fa5eb24 Mon Sep 17 00:00:00 2001 From: eshntmshra Date: Fri, 13 Feb 2026 14:39:54 -0600 Subject: [PATCH] fix: updated OPERA_DATASET_ROOT to OPERA_DATASET_NAME in prep_mintpy.py- With the old deprecated import OPERA_DATASET_ROOT, prep_mintpy.py was displaying import error.- Importing OPERA_DATASET_NAME fixes the error. --- scripts/prep_mintpy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/prep_mintpy.py b/scripts/prep_mintpy.py index 0ba41b5..dc70bfd 100755 --- a/scripts/prep_mintpy.py +++ b/scripts/prep_mintpy.py @@ -21,7 +21,7 @@ from dolphin.utils import full_suffix from mintpy.utils import arg_utils, ptime, readfile, writefile from mintpy.utils.utils0 import calc_azimuth_from_east_north_obs -from opera_utils import OPERA_DATASET_ROOT, get_dates +from opera_utils import OPERA_DATASET_NAME, get_dates #################################################################################### EXAMPLE = """example: @@ -161,7 +161,7 @@ def prepare_metadata(meta_file, int_file, nlks_x=1, nlks_y=1): if burst_ds not in meta_compass: burst_ds = f"{processing_ds}/input_burst_metadata" else: - root = OPERA_DATASET_ROOT + root = OPERA_DATASET_NAME processing_ds = f"{root}/metadata/processing_information" burst_ds = f"{processing_ds}/input_burst_metadata"