Repository navigation
RFC: Replace np.char.decode with np.strings.decode - #19227
Merged
Merged
Conversation
pllim
requested review from
neutrinoceros,
saimn and
taldcroft
as code owners
January 27, 2026 17:19
Contributor
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
1 task
saimn
approved these changes
Jan 27, 2026
meeseeksmachine
pushed a commit
to meeseeksmachine/astropy
that referenced
this pull request
Jan 27, 2026
haozeng-naoc
pushed a commit
to haozeng-naoc/astropy
that referenced
this pull request
Jan 28, 2026
Following up on PR astropy#19227 which replaced np.char.decode with np.strings.decode, this commit completes the migration from the deprecated np.char module to np.strings for NumPy 2.0+ compatibility. Changes: - Replace np.char.encode with np.strings.encode in: - astropy/io/fits/util.py - astropy/io/fits/hdu/table.py - astropy/table/table.py - astropy/table/column.py - Replace np.char.str_len with np.strings.str_len in: - astropy/table/column.py - Replace np.char.ljust, np.char.replace, np.char.strip with np.strings equivalents in: - astropy/io/fits/fitsrec.py - Remove usage of deprecated np.char.array by using direct view() with string dtype in: - astropy/io/fits/fitsrec.py - Update related comments to reference np.strings instead of np.char https://claude.ai/code/session_01FDZNwQPvM73vY8S4V445MK
1 task
Member
Author
|
Thanks for cleaning up the labels and milestone! Thanks, all! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This pull request is to address #19218 (comment) . Should backport to make future backports easier.