Skip to content

Commit

Permalink
Only allow read_csv for updating new data
Browse files Browse the repository at this point in the history
Co-authored-by: barneydobson <[email protected]>
  • Loading branch information
liuly12 and barneydobson authored Oct 2, 2024
1 parent 53ef662 commit 770828c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wsimod/nodes/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,7 @@ def apply_overrides(self, overrides: Dict[str, Any] = {}) -> None:
from wsimod.orchestration.model import read_csv

content = overrides.pop("data_input_dict", self.data_input_dict)
if isinstance(content, str):
self.data_input_dict = read_csv(content)
elif isinstance(content, dict):
self.data_input_dict = content
self.data_input_dict = read_csv(content)
elif not content:
pass
else:
Expand Down

0 comments on commit 770828c

Please sign in to comment.