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

DM-13686: Saving a particular FrameSet as FITS-WCS causes a segfault #40

Merged
merged 3 commits into from Mar 1, 2018

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented Mar 1, 2018

The fix is in starlink_ast; this branch adds a unit test

a segfault when writing a particular FrameSet as FITS-WCS
Copy link

@parejkoj parejkoj left a comment

Choose a reason for hiding this comment

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

Two comments, otherwise looks fine.

@@ -6,7 +6,7 @@
import astshim as ast
from astshim.test import MappingTestCase

DataDir = os.path.join(os.path.dirname(__file__))
DataDir = os.path.join(os.path.dirname(__file__), "data")
Copy link

Choose a reason for hiding this comment

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

Is this really the standard approach? I thought one would want to put this in setUp or setUpClass?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough. I'll change all three tests that use DataDir to set self.dataDir in setUp`

"""Test that a particular FrameSet will not segfault when
we attempt to write it to a FitsChan as FITS-WCS
"""
def readObjectFromShow(path):
Copy link

Choose a reason for hiding this comment

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

Would this be a useful utility function to lift into astshim itself?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly, but I'm reluctant to expand the API without a clear need. I'd have to think more about the name, for one thing.

@r-owen r-owen merged commit 70f5f0a into master Mar 1, 2018
@ktlim ktlim deleted the tickets/DM-13686 branch August 25, 2018 04:31
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.

None yet

2 participants