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 SpectrumDataset.create() #2345

Merged

Conversation

registerrier
Copy link
Contributor

This is a first PR to introduce creation of empty datasets for data reduction processing.

The counts and background are empty. the aeff is 0 but edisp is diagonal.
livetime is set to 0 as well.

adonath
adonath previously approved these changes Sep 6, 2019
Copy link
Member

@adonath adonath left a comment

Choose a reason for hiding this comment

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

Thanks @registerrier! I've left one comment to maybe also add an empty GTI table to the dataset, otherwise it looks good to me!

gammapy/spectrum/dataset.py Show resolved Hide resolved
@adonath adonath changed the title Add spectrumdataset create Add SpectrumDataset.create() Sep 6, 2019
adonath
adonath previously approved these changes Sep 6, 2019
Copy link
Member

@adonath adonath left a comment

Choose a reason for hiding this comment

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

Thanks a lot @registerrier! I've left two more minor inline comments. Once those are addressed I would suggest to merge...

gammapy/spectrum/dataset.py Show resolved Hide resolved
gammapy/spectrum/dataset.py Outdated Show resolved Hide resolved
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.

2 participants