Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table.write to FITS should maybe not crash if a unit is not valid in FITS #2797

Merged
merged 1 commit into from Jul 29, 2014

Conversation

mdboom
Copy link
Contributor

@mdboom mdboom commented Jul 25, 2014

At the moment, Table.write simply crashes if a unit is not valid in the FITS format:

ValueError: 'ct' did not parse as fits unit: At col 0, Unit u'c' not supported by the FITS standard. Did you mean C?

Maybe this should simply be a warning?

@astrofrog astrofrog added this to the v0.4.1 milestone Jul 25, 2014
@@ -151,7 +151,7 @@ Bug Fixes

- ``astropy.convolution``

- Fixed the multiplication of ``Kernel`` with numpy floats. [#2174]
- Fixed the multiplication of ``Kernel`` with numpy floats. [#2174]
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this went along for the ride here as well :)

embray added a commit that referenced this pull request Jul 29, 2014
Table.write to FITS should maybe not crash if a unit is not valid in FITS
@embray embray merged commit ecaa91e into astropy:master Jul 29, 2014
embray added a commit that referenced this pull request Aug 6, 2014
Table.write to FITS should maybe not crash if a unit is not valid in FITS
@mdboom mdboom deleted the table/warn-unknown-fits-unit branch March 3, 2015 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants