Skip to content

Remove src/numpy.pxd #19418

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

Merged
merged 4 commits into from
Jan 27, 2018
Merged

Remove src/numpy.pxd #19418

merged 4 commits into from
Jan 27, 2018

Conversation

jbrockmendel
Copy link
Member

The existence of the src/numpy.pxd file causes ambiguity as to where cimports are coming from. src/numpy.pxd? cython's numpy/init.pxd? What about the np.get_include() uses in setup.py?

This PR gets rid of the unnecessary file by picking out the one definition that is actually needed.

@codecov
Copy link

codecov bot commented Jan 27, 2018

Codecov Report

Merging #19418 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19418   +/-   ##
=======================================
  Coverage   91.65%   91.65%           
=======================================
  Files         150      150           
  Lines       48724    48724           
=======================================
  Hits        44658    44658           
  Misses       4066     4066
Flag Coverage Δ
#multiple 90.02% <ø> (ø) ⬆️
#single 41.74% <ø> (ø) ⬆️

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 5f6c80b...90e7516. Read the comment docs.

cnp.import_array()

cdef extern from "numpy/arrayobject.h":
# These can be cimported directly from numpy in cython>=0.27.3
Copy link
Contributor

Choose a reason for hiding this comment

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

should prob put array dtype introspection in a single place and expose viais_timedelta64_array (new) somewhere maybe util.pxd

@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Clean labels Jan 27, 2018
@jreback jreback added this to the 0.23.0 milestone Jan 27, 2018
@jreback jreback merged commit 860c99c into pandas-dev:master Jan 27, 2018
@jreback
Copy link
Contributor

jreback commented Jan 27, 2018

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants