-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat(snapshots): add snapshot fixtures, remove pandas fixture #151
Conversation
@mwtoews I was mainly wondering what you thought of the optional import decision here. But I think it's probably best to keep using |
@wpbonelli no strong opinions so far, I'm just finding time to look further at the methods. One further idea is to also support compressed array ".npz" using numpy.savez_compressed. |
Thanks @mwtoews for the suggestion, def my_test(multi_array_snapshot):
...
arrays = {
"head": ...
"budget": ...
}
assert arrays == multi_array_snapshot which is consistent with |
Looks like with npz files we get inconsistent binary encodings. Strange that it's only npz files and not npy files. |
I will merge as-is so we can use this for PRT tests, but would be ideal to support snapshots of multiple arrays eventually. |
use_pandas
fixture, originally meant for use in flopy tests for pandas support but never used and probably not needed, as flopyuse_pandas
flags will be removed eventually