Skip to content

Commit

Permalink
Pin mkdocs-jupyter to 0.25.0, small timeseries fix for cli (#486)
Browse files Browse the repository at this point in the history
* Pin `mkdocs-jupyter` to 0.25.0

danielfrg/mkdocs-jupyter#212 seems to affect the latest so math doesnt render

* remove unneeded required in timeseries if providing manual reference

* only create cor/conncomp reader if doing `L2`

* try earlier
  • Loading branch information
scottstanie authored Nov 8, 2024
1 parent 8d7b43b commit 2a372af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
markdown
mkdocs
mkdocs-gen-files
mkdocs-jupyter
mkdocs-jupyter==0.25.0
mkdocs-literate-nav
mkdocs-material
mkdocs-section-index
Expand Down
1 change: 0 additions & 1 deletion src/dolphin/_cli_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/dolphin/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
)
Expand Down

0 comments on commit 2a372af

Please sign in to comment.