[Numpy-discussion] Usage of Datetime DType in NumPy 2.0 C-API

2025-02-24 Thread Lee Johnston via NumPy-Discussion
We have a C-extension module that works with Datetime DType objects through the C-API. The existing code works fine for NumPy 1x, but not 2x. The NumPy 2.0 migration documentation does not addres

Re: [Numpy-discussion] NEP 42 status – Store quantity in a NumPy array and convert it :)

2021-03-26 Thread Lee Johnston
Thanks Sebastian, I have your example running and will start experimenting with DType. Lee On Thu, Mar 25, 2021 at 5:32 PM Sebastian Berg wrote: > On Wed, 2021-03-17 at 17:12 -0500, Sebastian Berg wrote: > > On Wed, 2021-03-17 at 07:56 -0500, Lee Johnston wrote: > > > >

Re: [Numpy-discussion] NEP 42 status

2021-03-17 Thread Lee Johnston
e? On Tue, Mar 16, 2021 at 4:11 PM Sebastian Berg wrote: > On Tue, 2021-03-16 at 13:17 -0500, Lee Johnston wrote: > > Is the work on NEP 42 custom DTypes far enough along to experiment > > with? > > > > TL;DR: Its not quite ready, but if we work together I think we could

[Numpy-discussion] NEP 42 status

2021-03-16 Thread Lee Johnston
Is the work on NEP 42 custom DTypes far enough along to experiment with? Lee ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] NEP 42 and physical unit DType

2020-10-09 Thread Lee Johnston
NEP 42 mentions physical units as a possible use case for the new DType. Having worked on `unyt`, which is an ndarray subclass, and other unit system implementations based on the dispatch mechanism, I am quite familiar with the challenges. One challenge is integration with Matplotlib that has a uni

[Numpy-discussion] datetime64/timedelta64 support in linspace

2020-09-26 Thread Lee Johnston
I propose adding support for datetime64/timedelta64 in linspace and solicit feedback on the feature. As is, linspace raises UFuncTypeError when parameters start and stop are datetime64/timedelta64. The complementary function arange supports these types. Work was started on this feature in PR 14700

[Numpy-discussion] PR 14700

2020-09-21 Thread Lee Johnston
Hi, PR 14700 that adds datetime64 and timedelta64 support to linspace has not been worked on since December 2019. I would like this feature sooner rather than never and have implemented the support and all recommended tests in my fork. Is there interest