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

Add PyArrayDescr::new() #266

Merged
merged 2 commits into from
Jan 24, 2022
Merged

Conversation

aldanor
Copy link
Contributor

@aldanor aldanor commented Jan 23, 2022

This provides the same functionality as invoking np.dtype() from within Python (except that passing None wouldn't yield float64 by default - but if we really want that for some reason, it can be changed).

@codecov
Copy link

codecov bot commented Jan 23, 2022

Codecov Report

Merging #266 (436ec9a) into main (7cc945c) will increase coverage by 0.27%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #266      +/-   ##
==========================================
+ Coverage   81.38%   81.66%   +0.27%     
==========================================
  Files          14       14              
  Lines        1531     1554      +23     
==========================================
+ Hits         1246     1269      +23     
  Misses        285      285              
Impacted Files Coverage Δ
src/dtype.rs 94.87% <100.00%> (+0.40%) ⬆️

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 7cc945c...436ec9a. Read the comment docs.

src/dtype.rs Outdated Show resolved Hide resolved
src/dtype.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@aldanor aldanor force-pushed the feature/pydescr-new branch 2 times, most recently from 7c3ed39 to 1e45082 Compare January 24, 2022 11:57
@aldanor
Copy link
Contributor Author

aldanor commented Jan 24, 2022

Rebased on main, fixed signature, simplified null check, updated the changelog.

@adamreichold adamreichold merged commit 3f35b6f into PyO3:main Jan 24, 2022
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.

2 participants