Skip to content

Commit

Permalink
fix: pipeline id key error
Browse files Browse the repository at this point in the history
Signed-off-by: Avik Basu <[email protected]>
  • Loading branch information
ab93 committed Jan 23, 2024
1 parent dc35c80 commit add642c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numalogic/udfs/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_df(
-------
dataframe and timestamps
"""
_conf = stream_conf.ml_pipelines[data_payload["pipeline_id"]]
_conf = stream_conf.ml_pipelines[data_payload.get("pipeline_id", "default")]
features = _conf.metrics
df = (
pd.DataFrame(data_payload["data"], columns=["timestamp", *features])
Expand Down

0 comments on commit add642c

Please sign in to comment.