Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call set_control_data(init=0) twice #18

Open
chiplet opened this issue Nov 10, 2021 · 0 comments
Open

Cannot call set_control_data(init=0) twice #18

chiplet opened this issue Nov 10, 2021 · 0 comments

Comments

@chiplet
Copy link
Contributor

chiplet commented Nov 10, 2021

This line throws a KeyError on the second call since DictData has already been initialized (is no longer None) and we don't give a name argument on the `set_control_data(init=0) call.

self.DictData[time][self.connector_datamap(name=name)-1] = val

Instead of terminating the whole program with a cryptic index error this should be fixed to silently ignore the duplicate function call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant