diff --git a/docs/requirements.txt b/docs/requirements.txt index 2ee51ed2..21914bad 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,7 +1,7 @@ markdown mkdocs mkdocs-gen-files -mkdocs-jupyter +mkdocs-jupyter==0.25.0 mkdocs-literate-nav mkdocs-material mkdocs-section-index diff --git a/src/dolphin/_cli_timeseries.py b/src/dolphin/_cli_timeseries.py index 480441a6..567904e2 100644 --- a/src/dolphin/_cli_timeseries.py +++ b/src/dolphin/_cli_timeseries.py @@ -62,7 +62,6 @@ def get_parser(subparser=None, subcommand_name="timeseries") -> argparse.Argumen "A file with the same size as each raster, like amplitude dispersion or " "temporal coherence to find reference point" ), - required=True, ) parser.add_argument( "--condition", diff --git a/src/dolphin/timeseries.py b/src/dolphin/timeseries.py index 03007602..7c6855a2 100644 --- a/src/dolphin/timeseries.py +++ b/src/dolphin/timeseries.py @@ -964,7 +964,7 @@ def invert_unw_network( cor_vrt_name = Path(output_dir) / "cor_network.vrt" conncomp_vrt_name = Path(output_dir) / "conncomp_network.vrt" - if conncomp_file_list is not None: + if conncomp_file_list is not None and method == "L2": conncomp_reader = io.VRTStack( file_list=conncomp_file_list, outfile=conncomp_vrt_name, @@ -973,7 +973,7 @@ def invert_unw_network( ) readers = [unw_reader, conncomp_reader] logger.info("Masking unw pixels during inversion using connected components.") - elif cor_file_list is not None: + elif cor_file_list is not None and method == "L2": cor_reader = io.VRTStack( file_list=cor_file_list, outfile=cor_vrt_name, skip_size_check=True )