Skip to content

Commit

Permalink
remove Bbox from pydantic type due to YAML serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie committed Jan 16, 2024
1 parent 3798c46 commit 207708e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/sweets/_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from pathlib import Path
from typing import Union

from dolphin._types import Bbox, PathLikeT, PathOrStr # noqa: F401

Filename = Union[str, Path]
5 changes: 2 additions & 3 deletions src/sweets/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import numpy as np
from dolphin import io, stitching, unwrap
from dolphin._dates import group_by_date
from dolphin._types import Bbox
from dolphin.interferogram import Network
from dolphin.utils import set_num_threads
from dolphin.workflows.config import YamlModel
Expand Down Expand Up @@ -42,10 +41,10 @@ class Workflow(YamlModel):
validate_default=True,
)

bbox: Optional[Bbox] = Field(
bbox: Optional[tuple[float, float, float, float]] = Field(
None,
description=(
"Area of interest: (left, bottom, right, top) longitude/latitude "
"Area of interest: [left, bottom, right, top] longitude/latitude "
"e.g. `bbox=(-150.2,65.0,-150.1,65.5)`"
),
)
Expand Down

0 comments on commit 207708e

Please sign in to comment.