Skip to content

Commit

Permalink
surface models dont have topo as part of lr or hr exo features so the…
Browse files Browse the repository at this point in the history
…se must be determined from the config
  • Loading branch information
bnb32 committed Sep 25, 2024
1 parent 94408c7 commit c4b8089
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sup3r/pipeline/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ def init_input_handler(self):
def _init_features(self, model):
"""Initialize feature attributes."""
self.exo_handler_kwargs = self.exo_handler_kwargs or {}
possible_exo_feats = set(model.hr_exo_features + model.lr_features)
exo_kwargs_feats = list(self.exo_handler_kwargs)
exo_features = list(possible_exo_feats.intersection(exo_kwargs_feats))
exo_features = list(self.exo_handler_kwargs)
features = [f for f in model.lr_features if f not in exo_features]
return features, exo_features

Expand Down

0 comments on commit c4b8089

Please sign in to comment.