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

Make geom_exposure optional in MapDatasetOnOff.from_geoms #4593

Merged
merged 4 commits into from Jun 23, 2023

Conversation

AtreyeeS
Copy link
Member

This addresses #4490

Signed-off-by: Atreyee Sinha <asinha@ucm.es>
@AtreyeeS AtreyeeS added the bug label Jun 16, 2023
@AtreyeeS AtreyeeS added this to In progress in gammapy.datasets via automation Jun 16, 2023
@AtreyeeS AtreyeeS added this to the 1.2 milestone Jun 16, 2023
@codecov
Copy link

codecov bot commented Jun 16, 2023

Codecov Report

Merging #4593 (8ce693b) into main (cc3d847) will not change coverage.
The diff coverage is n/a.

❗ Current head 8ce693b differs from pull request most recent head 70fd481. Consider uploading reports for the commit 70fd481 to get more accurate results

@@           Coverage Diff           @@
##             main    #4593   +/-   ##
=======================================
  Coverage   95.05%   95.05%           
=======================================
  Files         221      221           
  Lines       31517    31517           
=======================================
  Hits        29959    29959           
  Misses       1558     1558           
Impacted Files Coverage Δ
gammapy/datasets/map.py 93.94% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@registerrier registerrier added backport-v1.0.x on-merge: backport to v1.0.x backport-v1.1.x on-merge: backport to v1.1.x labels Jun 16, 2023
registerrier
registerrier previously approved these changes Jun 20, 2023
Copy link
Contributor

@registerrier registerrier left a comment

Choose a reason for hiding this comment

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

Thanks @AtreyeeS . This looks good. See small inline comments.

gammapy/datasets/tests/test_map.py Outdated Show resolved Hide resolved
gammapy/datasets/tests/test_map.py Outdated Show resolved Hide resolved
gammapy/datasets/tests/test_map.py Outdated Show resolved Hide resolved
Co-authored-by: Régis Terrier <regis.terrier@m4x.org>
AtreyeeS and others added 2 commits June 20, 2023 17:34
Co-authored-by: Régis Terrier <regis.terrier@m4x.org>
Co-authored-by: Régis Terrier <regis.terrier@m4x.org>
Copy link
Contributor

@registerrier registerrier left a comment

Choose a reason for hiding this comment

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

Thanks @AtreyeeS . No further comment from my side.

@registerrier
Copy link
Contributor

CI fail is unrelated. Merging.

@registerrier registerrier merged commit 9f510bd into gammapy:main Jun 23, 2023
8 of 13 checks passed
gammapy.datasets automation moved this from In progress to Done Jun 23, 2023
@lumberbot-app
Copy link

lumberbot-app bot commented Jun 23, 2023

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
git checkout v1.0.x
git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
git cherry-pick -x -m1 9f510bda5802e8df571479a9b33df94337d456ba
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
git commit -am 'Backport PR #4593: Make geom_exposure optional in MapDatasetOnOff.from_geoms'
  1. Push to a named branch:
git push YOURFORK v1.0.x:auto-backport-of-pr-4593-on-v1.0.x
  1. Create a PR against branch v1.0.x, I would have named this PR:

"Backport PR #4593 on branch v1.0.x (Make geom_exposure optional in MapDatasetOnOff.from_geoms)"

And apply the correct labels and milestones.

Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon!

Remember to remove the Still Needs Manual Backport label once the PR gets merged.

If these instructions are inaccurate, feel free to suggest an improvement.

meeseeksmachine pushed a commit to meeseeksmachine/gammapy that referenced this pull request Jun 23, 2023
registerrier added a commit that referenced this pull request Jun 23, 2023
…3-on-v1.1.x

Backport PR #4593 on branch v1.1.x (Make geom_exposure optional in MapDatasetOnOff.from_geoms)
registerrier added a commit to registerrier/gammapy that referenced this pull request Jun 23, 2023
Make geom_exposure optional in MapDatasetOnOff.from_geoms

(cherry picked from commit 9f510bd)
registerrier added a commit that referenced this pull request Jun 23, 2023
…n-v1.0.x

Backport PR #4593 on branch v1.0.x (Make geom_exposure optional in MapDatasetOnOff.from_geoms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v1.0.x on-merge: backport to v1.0.x backport-v1.1.x on-merge: backport to v1.1.x bug
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants