GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ENH: Add Cython enumeration for NPY_FR_GENERIC by WillAyd · Pull Request #24923 · numpy/numpy

Conversation

@WillAyd

@WillAyd WillAyd commented Oct 13, 2023

Copy link
Copy Markdown
Contributor

We use this downstream in pandas. I think it is an oversight to have been left out of the Cython file

numpy/numpy/core/include/numpy/ndarraytypes.h

Line 258 in 67539a4

NPY_FR_GENERIC = 14 /* unbound units, can convert to anything */

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@WillAyd
Add Cython enumeration for NPY_FR_GENERIC
ec1a17d
@charris charris changed the title Add Cython enumeration for NPY_FR_GENERIC ENH: Add Cython enumeration for NPY_FR_GENERIC Oct 13, 2023
@charris charris added 01 - Enhancement 09 - Backport-Candidate PRs tagged should be backported labels Oct 13, 2023
@charris charris added this to the 1.26.2 release milestone Oct 13, 2023
@da-woods

da-woods commented Oct 13, 2023

Copy link
Copy Markdown
Contributor

Probably worth adding to https://github.com/numpy/numpy/blob/main/numpy/__init__.cython-30.pxd too (which will be used instead by Cython 3)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@WillAyd
Add to cython3 file
5ca6805
@seberg

seberg commented Oct 17, 2023

Copy link
Copy Markdown
Member

Safe to add and no need to hide it from Cython, thanks @WillAyd.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seberg
seberg merged commit b3f91ff into numpy:main Oct 17, 2023
@WillAyd
WillAyd deleted the add-npy-fr-generic branch October 17, 2023 18:11
@WillAyd WillAyd mentioned this pull request Oct 17, 2023
Replace is_temporal checks with Cython version pandas-dev/pandas#55506
Merged
charris pushed a commit to charris/numpy that referenced this pull request Oct 18, 2023
@WillAyd @charris
ENH: Add Cython enumeration for NPY_FR_GENERIC (numpy#24923)
d3876a8
Add Cython enumeration for NPY_FR_GENERIC
@charris charris mentioned this pull request Oct 18, 2023
ENH: Add Cython enumeration for NPY_FR_GENERIC #24955
Merged
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Oct 18, 2023
@seberg seberg mentioned this pull request Oct 27, 2023
BUG: NPY_FR_GENERIC not included in NPY_DATETIMEUNIT #25013
Closed
charris pushed a commit to charris/numpy that referenced this pull request Nov 11, 2023
@WillAyd @charris
ENH: Add Cython enumeration for NPY_FR_GENERIC (numpy#24923)
f0117c9
Add Cython enumeration for NPY_FR_GENERIC
@TimotheusBachinger TimotheusBachinger mentioned this pull request Nov 25, 2024
fix build #27836
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

01 - Enhancement

Projects

None yet

Milestone

1.26.2 release

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@WillAyd @da-woods @seberg @charris
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.