Skip to content

Commit b71d174

Browse files
committed
docs: added method docstring to CatalogRepository.filter_catalog
1 parent e8cacff commit b71d174

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

floatcsep/infrastructure/repositories.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,22 @@ def filter_catalog(
238238
max_depth=None,
239239
region=None,
240240
) -> CSEPCatalog:
241+
"""
242+
Wrapper for pyCSEP catalog filters, to constrain a catalog to a given time and magnitude
243+
range, as well to a spatial region.
244+
245+
Args:
246+
start_date (datetime.datetime): Initial datetime
247+
end_date (datetime.datetime): Final datetime
248+
min_mag (float): Minimum magnitude to filter
249+
max_mag (float): Maximum magnitude to filter
250+
min_depth (float): Minimum depth to filter (positive downwards from surface)
251+
max_depth (float): Maximum depth to filter (positive downwards from surface)
252+
region (csep.core.regions.CartesianGrid2D): Spatial domain to filter
241253
254+
Returns:
255+
Filtered catalog
256+
"""
242257
filters = []
243258
if start_date:
244259
filters.append(

0 commit comments

Comments
 (0)