Skip to content

Commit

Permalink
feat: add depth limits to catalog attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidni committed Aug 14, 2024
1 parent 373145f commit 4d617d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions seismostats/catalogs/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def __init__(
delta_m: float | None = None,
b_value: float | None = None,
bounding_polygon: Polygon | str | None = None,
depth_min: float | None = None,
depth_max: float | None = None,
**kwargs
):
if data is None and 'columns' not in kwargs:
Expand All @@ -115,6 +117,8 @@ def __init__(
endtime, pd.Timestamp) else pd.to_datetime(endtime)

self.bounding_polygon = bounding_polygon
self.depth_min = depth_min
self.depth_max = depth_max

@classmethod
def from_quakeml(cls, quakeml: str,
Expand Down

0 comments on commit 4d617d6

Please sign in to comment.