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

Implement the sample method in gammapy.cube.MapDataset and add tests. #2341

Closed
wants to merge 2 commits into from

Conversation

fabiopintore
Copy link
Contributor

Following the first PR in https://github.com/fabiopintore/gammapy/blob/event_sampling_pig/docs/development/pigs/pig-009.rst, I have added the methods sample_position_energy and sample_events into the WcsNd class in gammapy.maps.
These methods are used to sample events from a given source model.
Tests have also been added.

@adonath
Copy link
Member

adonath commented Sep 6, 2019

Changes are also included in #2343, closing this PR now.

@adonath adonath closed this Sep 6, 2019
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