-
Notifications
You must be signed in to change notification settings - Fork 36
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 access project data through signac interface #274
Comments
I can reproduce this on my machine. I tried copying the |
I think I solved the problem. I think the underlying problem is that The Job class keeps a single signac/signac/contrib/project.py Lines 341 to 371 in 8ec1bc7
@klywang, would you be willing to take these next steps?
|
@klywang Can you open a PR with your current progress on this? |
Resolved by #278. |
Description
Accessing arrays from
project.data
usingsignac
returns aValueError
. The same arrays may be accessed usingh5py
so I believe the data was written correctly. This error does not occur when accessing arrays usingjob.data
or when accessing scalars and strings fromproject.data
.To reproduce
In a project directory:
$ signac shell >>> import numpy as np >>> import h5py >>> pr.data['a'] = np.zeros([10]) >>> with pr.data: ... pr.data.a[:] ...
This will return a
ValueError
.Accessing the same arrays with
h5py
returns the correct values:Error output
System configuration
Please complete the following information:
Or copy & paste the output of:
python -c 'import platform; print(platform.platform()); import sys; print(sys.version); import signac; print(signac.__version__)'
The text was updated successfully, but these errors were encountered: