Skip to content

Fix handling of 1d table elements with single entry in fits#10768

Merged
saimn merged 8 commits intoastropy:masterfrom
maxnoe:fix_oned_col
Oct 1, 2020
Merged

Fix handling of 1d table elements with single entry in fits#10768
saimn merged 8 commits intoastropy:masterfrom
maxnoe:fix_oned_col

Conversation

@maxnoe
Copy link
Copy Markdown
Member

@maxnoe maxnoe commented Sep 24, 2020

Description

Add test for and fix writing and reading of fits columns that contain single values in 1d columns
This pull request is to address #10765

Fixes #10765

@astropy-bot astropy-bot bot added the io.fits label Sep 24, 2020
@pllim pllim added the Bug label Sep 24, 2020
@maxnoe maxnoe marked this pull request as ready for review September 24, 2020 17:30
@maxnoe
Copy link
Copy Markdown
Member Author

maxnoe commented Sep 24, 2020

regex101 links for the new and the old regex:

new: https://regex101.com/r/jlQzyT/4
old: https://regex101.com/r/YseaAK/2

@maxnoe
Copy link
Copy Markdown
Member Author

maxnoe commented Sep 27, 2020

@dhomeier The build seems to fail due to an unrelated problem to my changes. Any idea what happened there?

@dhomeier
Copy link
Copy Markdown
Contributor

@dhomeier The build seems to fail due to an unrelated problem to my changes. Any idea what happened there?

This appears to be caused by a simultaneous pytest update on both CI platforms, just reported in #10773.

Otherwise looks good to me; with only changelog changes could probably even have gone in with a [ci skip]!

@maxnoe
Copy link
Copy Markdown
Member Author

maxnoe commented Sep 27, 2020

Otherwise looks good to me; with only changelog changes could probably even have gone in with a [ci skip]!

Yes, sorry forgot about that

@maxnoe
Copy link
Copy Markdown
Member Author

maxnoe commented Sep 27, 2020

Thanks for getting this into the next point release

Copy link
Copy Markdown
Contributor

@saimn saimn left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @maxnoe, and for the regex101 links ;)
Just a few minor comments, otherwise looks good !

@maxnoe
Copy link
Copy Markdown
Member Author

maxnoe commented Sep 28, 2020

@saimn I think I addressed all your comments, please have a look again

@maxnoe
Copy link
Copy Markdown
Member Author

maxnoe commented Sep 30, 2020

@dhomeier The tests are passing again

@saimn
Copy link
Copy Markdown
Contributor

saimn commented Oct 1, 2020

Looks good now, thanks @maxnoe !

@saimn saimn merged commit b803ea5 into astropy:master Oct 1, 2020
@maxnoe maxnoe deleted the fix_oned_col branch October 1, 2020 16:25
astrofrog pushed a commit that referenced this pull request Oct 6, 2020
Fix handling of 1d table elements with single entry in fits
astrofrog pushed a commit that referenced this pull request Oct 6, 2020
Fix handling of 1d table elements with single entry in fits
eteq pushed a commit to eteq/astropy that referenced this pull request Oct 12, 2020
Fix handling of 1d table elements with single entry in fits
eteq pushed a commit that referenced this pull request Oct 13, 2020
Fix handling of 1d table elements with single entry in fits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Table reading/writing to/from fits does not support writing 1d arrays with a single element

4 participants