Skip to content

Commit

Permalink
🐛 leave as lists
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbrandreth committed Jul 28, 2021
1 parent a315052 commit 010c4f7
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def query_data_config(
Args:
train_start_date: ISO formatted datetime of the start of the training period.
pred_start_date: ISO formatted datetime of the start of the prediciton period.
features: list of feature names, searches for exact match, ignoring order
Returns:
A database query with columns for data id, data config and preprocessing.
Expand All @@ -47,12 +46,12 @@ def query_data_config(
)
if static_features:
data_ids = data_ids.filter(
set(AirQualityDataTable.data_config["features"])
== set(static_features)
AirQualityDataTable.data_config["features"]
== static_features
)
if dynamic_features:
data_ids = data_ids.filter(
set(AirQualityDataTable.data_config["features"])
== set(dynamic_features)
AirQualityDataTable.data_config["features"]
== dynamic_features
)
return data_ids

0 comments on commit 010c4f7

Please sign in to comment.