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

Add frame attribute for SkyDiffuseMap #2106

merged 2 commits into from Apr 2, 2019


Copy link

@lmohrmann lmohrmann commented Apr 1, 2019

It seems the frame attribute is missing for SkyDiffuseMap, which leads to a crash when MapDataset tries to access it. This PR adds the frame attribute and sets it to None, as for the SkyDiffuseConstant model.

@lmohrmann lmohrmann requested a review from adonath Apr 1, 2019
@adonath adonath self-assigned this Apr 1, 2019
@adonath adonath added the bug label Apr 1, 2019
@adonath adonath added this to the 0.12 milestone Apr 1, 2019
Copy link

@adonath adonath left a comment

Thanks @lmohrmann! This is clearly a bug...

Here is how the frame attribute is defined for the SkyDiffuseCube:

Could you implement the same definition for SkyDiffuseMap? And maybe add a small regression test? E.g. check the returned frame with an additional assert here:

Copy link
Contributor Author

@lmohrmann lmohrmann commented Apr 2, 2019

Like so?

adonath approved these changes Apr 2, 2019
@adonath adonath merged commit c3c86e4 into gammapy:master Apr 2, 2019
8 of 9 checks passed
Copy link

@adonath adonath commented Apr 2, 2019

Perfect, thanks @lmohrmann!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants