Skip to content

Commit

Permalink
parameters _dict_ change to project.py
Browse files Browse the repository at this point in the history
fyi @e-lo
  • Loading branch information
DavidOry committed Aug 3, 2020
1 parent 04fb82c commit 97d76f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lasso/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ def __init__(
self.project_name = (
project_name if project_name else Project.DEFAULT_PROJECT_NAME
)
self.parameters = Parameters(**parameters)

if type(parameters) is dict:
self.parameters = Parameters(**parameters)
else:
self.parameters = Parameters(**parameters.__dict__)

if base_roadway_network != None:
self.determine_roadway_network_changes_compatability(self.base_roadway_network,self.roadway_changes, self.parameters)
Expand Down

1 comment on commit 97d76f6

@e-lo
Copy link
Collaborator

@e-lo e-lo commented on 97d76f6 Aug 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx! I'll update doc'tn and typehints as well....and make similar fixes to scenario

Please sign in to comment.