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

StorageNumpy instantiation limitations #317

Open
yolandab opened this issue Mar 26, 2020 · 0 comments
Open

StorageNumpy instantiation limitations #317

yolandab opened this issue Mar 26, 2020 · 0 comments

Comments

@yolandab
Copy link
Collaborator

yolandab commented Mar 26, 2020

Current instatiation of a new StorageNumpy supports the following cases:

StorageNumpy(init_array, name) --> Instantiates a persistent StorageNumpy initialized with the values of init_array
StorageNumpy(init_array) --> Instantiates a volatile StorageNuympy initialized with the values of init_array
StorageNumpy() --> Instantiates an empy volatile StorageNumpy

Otherwise, an exception is thrown during the initialization.
For example, executing:
mynp=StorageNumpy(None, "myname")

throws:
IndexError: list index out of range

We should fix this and give an error message to the user saying this instantiation is not supported or implement the same behaviour as for the empty volatile StorageNumpy

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

No branches or pull requests

1 participant