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

Refactor model serialisation code #2822

Merged
merged 3 commits into from
Mar 12, 2020
Merged

Conversation

QRemy
Copy link
Contributor

@QRemy QRemy commented Mar 11, 2020

Move (and simplify) the remaining serialization code from datasets.io and modeling.models.io into the datasets and models classes.

Move and simplify the serialization remaining code from datasets.io and modeling.models.io into the datasets and models classes.
@QRemy QRemy requested a review from adonath March 11, 2020 17:15
@QRemy QRemy added the cleanup label Mar 11, 2020
@QRemy QRemy added this to the 0.17 milestone Mar 11, 2020
@codecov
Copy link

codecov bot commented Mar 11, 2020

Codecov Report

Merging #2822 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2822      +/-   ##
==========================================
- Coverage   91.98%   91.97%   -0.02%     
==========================================
  Files         147      145       -2     
  Lines       16559    16536      -23     
==========================================
- Hits        15232    15209      -23     
  Misses       1327     1327
Impacted Files Coverage Δ
gammapy/modeling/models/core.py 90.96% <100%> (+2.68%) ⬆️
gammapy/datasets/core.py 88.38% <100%> (+1.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b4b548c...9e900f9. Read the comment docs.

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 @QRemy, so far I have no comments. We can maybe clean up the parameter linking a bit in a follow-up PR next week..

@adonath adonath merged commit ccfe847 into gammapy:master Mar 12, 2020
@adonath adonath changed the title Redistribute serialization code to classes Refactor model serialisation code Mar 31, 2020
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