Skip to content

Commit

Permalink
Remove import for goldstein and filtering from top level `__init_…
Browse files Browse the repository at this point in the history
…_.py` (#530)

the interpolate one gets numba, unwrap, leads to much longer import times for CLIs

Also fix the `get_dates` within time series for cases with longer filenames
  • Loading branch information
scottstanie authored Jan 17, 2025
1 parent e3799b5 commit 6743d03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/dolphin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@
from ._log import *
from ._show_versions import *
from ._types import *
from .goldstein import goldstein
from .interpolation import interpolate
2 changes: 1 addition & 1 deletion src/dolphin/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ def invert_unw_network(
"""
if ifg_date_pairs is None:
ifg_date_pairs = [get_dates(f) for f in unw_file_list]
ifg_date_pairs = [get_dates(f)[:2] for f in unw_file_list]

try:
# Ensure it's a list of pairs
Expand Down
4 changes: 3 additions & 1 deletion src/dolphin/unwrap/_unwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import numpy as np
from tqdm.auto import tqdm

from dolphin import goldstein, interpolate, io
from dolphin import io
from dolphin._types import Filename
from dolphin.goldstein import goldstein
from dolphin.interpolation import interpolate
from dolphin.utils import DummyProcessPoolExecutor, full_suffix
from dolphin.workflows import UnwrapMethod, UnwrapOptions

Expand Down

0 comments on commit 6743d03

Please sign in to comment.