Skip to content

move away from numpy.fix in favor of numpy.trunc#450

Closed
hellerve wants to merge 1 commit into
cosanlab:masterfrom
hellerve:master
Closed

move away from numpy.fix in favor of numpy.trunc#450
hellerve wants to merge 1 commit into
cosanlab:masterfrom
hellerve:master

Conversation

@hellerve
Copy link
Copy Markdown

@hellerve hellerve commented Nov 9, 2025

This PR replaces all occurrences of numpy.fix with numpy.trunc. This is in response to a currently discussed deprecation of numpy.fix as well as performance considerations (nice, but secondary).

This change should not change anything in a meaningful way, internally or externally.

Cheers

ejolly added a commit to ejolly/nltools that referenced this pull request Apr 22, 2026
Mirrors cosanlab#450 applied on the refactored path
(nltools/stats/timeseries.py in 0.6.0, was nltools/stats.py on master).

Co-authored-by: Veit Heller <veit@veitheller.de>
@ejolly
Copy link
Copy Markdown
Collaborator

ejolly commented Apr 22, 2026

Hi @hellerve — thanks for the patch and the deprecation context. Closing here because I'm preparing a 0.6.0 rewrite in #453 that substantially refactors stats.py, and the np.fixnp.trunc change has been rolled in on that branch with you as co-author: ejolly@13f793dd

Credit preserved in the git log. Apologies for the extra step.

@ejolly ejolly closed this Apr 22, 2026
ejolly added a commit to ejolly/nltools that referenced this pull request Apr 22, 2026
Mirrors cosanlab#450 applied on the refactored path
(nltools/stats/timeseries.py in 0.6.0, was nltools/stats.py on master).

Co-authored-by: Veit Heller <veit@veitheller.de>
@hellerve
Copy link
Copy Markdown
Author

No worries. No credit needed, but thank you :)

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