Skip to content

Commit

Permalink
Prevent load from excel to throw error if new attribute not present
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Mar 19, 2024
1 parent 3819467 commit 5b42bdc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ramp/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,10 @@ def load(self, filename: str) -> None:
:, ~user_df.columns.isin(["user_name", "num_users", "user_preference"])
].to_dict(orient="records"):
# assign Appliance arguments
appliance_parameters = {k: row[k] for k in APPLIANCE_ARGS}
appliance_parameters = {}
for k in APPLIANCE_ARGS:
if k in row:
appliance_parameters[k] = row[k]

# assign windows arguments
for k in WINDOWS_PARAMETERS:
Expand Down

0 comments on commit 5b42bdc

Please sign in to comment.