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

Rename io modules to io_ and fix some version conflicts #78

Merged
merged 2 commits into from
Jun 4, 2019

Conversation

kayibal
Copy link

@kayibal kayibal commented Jun 4, 2019

Some bugfixes for version 0.20

Numpy 1.16.* is not compatible with sparsity 0.20.* thus we need to fix
the setup.py. When using Scipy<1.0.0 empty column access does not work,
thus the dependency had to be adjusted here as well.
This also renames the io_ modules to avoid issues with pythons
internal module.
Due to a security issue (CVE-2019-6446) numpy changed the default value
 of allow_pickle in np.load to True, this led to error when reading
 sparse frames from npz archives. This commit fixes it by allowing
 pickled objects, thus reading sparse frames from unkown sources is
 still a security risk.
@codecov
Copy link

codecov bot commented Jun 4, 2019

Codecov Report

Merging #78 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #78   +/-   ##
======================================
  Coverage    89.5%   89.5%           
======================================
  Files           7       7           
  Lines        1200    1200           
======================================
  Hits         1074    1074           
  Misses        126     126
Impacted Files Coverage Δ
sparsity/sparse_frame.py 91.41% <100%> (ø) ⬆️
sparsity/dask/io_.py 92.3% <100%> (ø)
sparsity/dask/core.py 84.84% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b27df42...93702ee. Read the comment docs.

Copy link

@michcio1234 michcio1234 left a comment

Choose a reason for hiding this comment

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

Looks good. You added a test for empty column access, but I don't see any changes in SparseFrame that would fix it - did you push everything?

@kayibal
Copy link
Author

kayibal commented Jun 4, 2019

Yes it was due to scipy version being < 1.0.0, so I adjusted it see setup.py

@michcio1234
Copy link

Ah, if scipy fixes it, then all good.

@kayibal kayibal merged commit 23f091b into master Jun 4, 2019
@kayibal kayibal deleted the bugfixes-v0.20 branch June 4, 2019 13:45
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

Successfully merging this pull request may close these issues.

None yet

2 participants