From 98ec50bd0dfd13247b345539220a2da9a119c906 Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Mon, 4 Nov 2024 18:57:26 +0800 Subject: [PATCH 1/2] README: use dynamic version badge --- docs/README.md | 2 +- src/miaplpy/prep_slc_isce.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README.md b/docs/README.md index c6c55a1..64dd9c4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ [![Language](https://img.shields.io/badge/python-3.6%2B-blue.svg)](https://www.python.org/) [![License](https://img.shields.io/badge/license-GPLv3-yellow.svg)](https://github.com/insarlab/MiaplPy/blob/main/LICENSE) -[![Version](https://img.shields.io/badge/version-v0.2.0-yellowgreen.svg)](https://github.com/insarlab/MiaplPy/releases) +[![Version](https://img.shields.io/github/v/release/insarlab/MiaplPy?color=yellowgreen&label=version)](https://github.com/insarlab/MiaplPy/releases) ## MiaplPy ## diff --git a/src/miaplpy/prep_slc_isce.py b/src/miaplpy/prep_slc_isce.py index dcfbfb0..6035beb 100755 --- a/src/miaplpy/prep_slc_isce.py +++ b/src/miaplpy/prep_slc_isce.py @@ -107,7 +107,7 @@ def extract_isce_metadata(meta_file, geom_dir=None, rsc_file=None, update_mode=T rsc_file : str, output file name of ROIPAC format rsc file Returns: metadata : dict """ - + if not rsc_file: rsc_file = os.path.join(os.path.dirname(meta_file), 'data.rsc') @@ -379,7 +379,7 @@ def main(iargs=None): baseline_dict = isce_utils.read_baseline_timeseries(inps.baselineDir, processor=inps.processor) - ''' + ''' # read baseline info baseline_dict = {} if inps.baselineDir: From ee17fef52bb63d3206f8c5cccd6de07f6fe7430f Mon Sep 17 00:00:00 2001 From: Zhang Yunjun Date: Thu, 12 Dec 2024 19:35:40 +0800 Subject: [PATCH 2/2] `tcoh_view`: fix `arg_utils` import --- src/miaplpy/tcoh_view.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/miaplpy/tcoh_view.py b/src/miaplpy/tcoh_view.py index 825cf72..d4e4544 100755 --- a/src/miaplpy/tcoh_view.py +++ b/src/miaplpy/tcoh_view.py @@ -12,7 +12,7 @@ from mintpy.cli import timeseries2velocity as ts2vel import mintpy.cli.tsview as tsview from miaplpy.objects.invert_pixel import ks_lut_cy, get_shp_row_col_c, custom_cmap, gam_pta -from mintpy.utils import arg_group, ptime, time_func, readfile, plot as pp +from mintpy.utils import arg_utils, ptime, time_func, readfile, plot as pp from miaplpy.objects.slcStack import slcStack import miaplpy.lib.utils as iut @@ -64,7 +64,7 @@ def create_parser(): '[!-- Preliminary feature alert! --!]\n' '[!-- This feature is NOT throughly checked. Read the code before use. Interpret at your own risk! --!]') - parser = arg_group.add_timefunc_argument(parser) + parser = arg_utils.add_timefunc_argument(parser) # pixel of interest pixel = parser.add_argument_group('Pixel Input') @@ -77,16 +77,16 @@ def create_parser(): pixel.add_argument('--ew', '--edgewidth', dest='edge_width', type=float, default=1.0, help='Edge width for the error bar (default: %(default)s)') # other groups - parser = arg_group.add_data_disp_argument(parser) - parser = arg_group.add_dem_argument(parser) - parser = arg_group.add_figure_argument(parser) - parser = arg_group.add_gps_argument(parser) - parser = arg_group.add_mask_argument(parser) - parser = arg_group.add_map_argument(parser) - parser = arg_group.add_memory_argument(parser) - parser = arg_group.add_reference_argument(parser) - parser = arg_group.add_save_argument(parser) - parser = arg_group.add_subset_argument(parser) + parser = arg_utils.add_data_disp_argument(parser) + parser = arg_utils.add_dem_argument(parser) + parser = arg_utils.add_figure_argument(parser) + parser = arg_utils.add_gps_argument(parser) + parser = arg_utils.add_mask_argument(parser) + parser = arg_utils.add_map_argument(parser) + parser = arg_utils.add_memory_argument(parser) + parser = arg_utils.add_reference_argument(parser) + parser = arg_utils.add_save_argument(parser) + parser = arg_utils.add_subset_argument(parser) return parser