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

Fix/empty attribute #13

Merged
merged 2 commits into from
Jul 11, 2017
Merged

Fix/empty attribute #13

merged 2 commits into from
Jul 11, 2017

Conversation

kayibal
Copy link

@kayibal kayibal commented Jul 11, 2017

No description provided.

__init__ method did not initialize empty attribute correctly leading to errors when using the dask datastructure. This commit fixes this and adds corresponding tests.
if data.nnz == 0 doesn't mean the array is empty it could be an array of purely zeros. replaced this check with a check for zero dimension which clearly indicates an empty frame.
@codecov
Copy link

codecov bot commented Jul 11, 2017

Codecov Report

Merging #13 into master will decrease coverage by 0.87%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #13      +/-   ##
=========================================
- Coverage   82.58%   81.7%   -0.88%     
=========================================
  Files           6       6              
  Lines         620     623       +3     
=========================================
- Hits          512     509       -3     
- Misses        108     114       +6
Impacted Files Coverage Δ
sparsity/sparse_frame.py 84.75% <100%> (-1.3%) ⬇️
sparsity/dask/core.py 88.54% <100%> (-0.6%) ⬇️

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 1c10bed...8112b90. Read the comment docs.

@kayibal kayibal merged commit 9d09f2f into master Jul 11, 2017
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

1 participant