Skip to content

Commit

Permalink
feat: allow for empty settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Jun 15, 2022
1 parent f6bdb6e commit 1c8b0d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion popmon/pipeline/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def stability_metrics(
def df_stability_metrics(
df,
time_axis,
settings: Settings,
settings: Settings = None,
features=None,
binning="auto",
bin_specs=None,
Expand Down Expand Up @@ -151,6 +151,9 @@ def df_stability_metrics(
:param kwargs: residual keyword arguments, passed on to stability_report()
:return: dict with results of metrics pipeline
"""
if settings is None:
settings = Settings()

# basic checks on presence of time_axis
if not (isinstance(time_axis, str) and len(time_axis) > 0) and not (
isinstance(time_axis, bool) and time_axis
Expand Down

0 comments on commit 1c8b0d4

Please sign in to comment.