Skip to content

Commit

Permalink
DEEPCOPY 1
Browse files Browse the repository at this point in the history
KNDAGRBJ;LMHKTMEHTL;HLRWH  NH3H
  • Loading branch information
isaacmg committed Nov 15, 2022
1 parent 4447c87 commit 35c8dc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion flood_forecast/preprocessing/pytorch_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from flood_forecast.preprocessing.buil_dataset import get_data
from datetime import datetime
from flood_forecast.preprocessing.temporal_feats import feature_fix
from copy import deepcopy


class CSVDataLoader(Dataset):
Expand Down Expand Up @@ -168,7 +169,7 @@ def __init__(self, series_id_col: str, main_params: dict, return_method: str, re
:param return_all: Whether to return all items, defaults to True
:type return_all: bool, optional
"""
main_params1 = main_params.copy()
main_params1 = deepcopy(main_params)
if "scaled_cols" not in main_params1:
main_params1["scaled_cols"] = main_params1["relevant_cols"]
main_params1["relevant_cols"].append(series_id_col)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tb-nightly
seaborn
future
h5py
wandb==0.13.4
wandb==0.13.5
google-cloud
google-cloud-storage
plotly~=5.11.0
Expand Down

0 comments on commit 35c8dc1

Please sign in to comment.