Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Aug 31, 2024
1 parent 6c5bbb1 commit 15b6d09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mlpp_lib/normalizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class DataTransformer:
def __init__(
self,
method_vars_dict: Optional[dict[str, list[str]]] = None,
default: Optional[str] = "Standardizer",
fillvalue: float = -5,
default: str = "Standardizer",
fillvalue: Optional[float] = -5,
):

self.method_vars_dict = method_vars_dict
Expand Down
2 changes: 1 addition & 1 deletion tests/test_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_train_fromfile(tmp_path, cfg):

splitter_options = ValidDataSplitterOptions(time="lists", station="lists")
datasplitter = DataSplitter(splitter_options.time_split, splitter_options.station_split)
datanormalizer = DataTransformer(cfg["normalizer"])
datanormalizer = DataTransformer(**["normalizer"])
batch_dims = ["forecast_reference_time", "t", "station"]
datamodule = DataModule(
features=cfg["features"],
Expand Down

0 comments on commit 15b6d09

Please sign in to comment.