Skip to content

Commit a297686

Browse files
authored
Merge pull request #186 from LeanderSchlegel/LeanderSchlegel-patch-3
Notes for 01/08/2025 meeting
2 parents 9c069e4 + 2dcaa53 commit a297686

File tree

1 file changed

+103
-2
lines changed

1 file changed

+103
-2
lines changed

dev-meetings/2025/2025-08-01/README.md

Lines changed: 103 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,109 @@
11
# Gammapy Developer Meeting
2-
* Friday, August 01, 2025, at 2 pm (CET)
3-
* Gammapy Developer Meeting on Zoom (direct link on Slack)
2+
* Friday, August 01, 2025, at 2 pm (CET) 14:05 - 15:17
3+
* Gammapy Developer Meeting on Zoom (direct link on Slack)
4+
5+
Attendees: Régis Terrier (RT), Hanna (H), Quentin Remy (QR), Daniel Morcuende (DM), Kirsty Feijen (KF), Atreyee Sinha (AS), Katharina Egg (KE), Axel Donath (AD), Leander Schlegel (LS)
46
# Agenda
57

8+
- RT: Yesterday we had extra meeting. Look at list of open PRs for v 2.0.
9+
10+
#5954: "Separate internal EventList data model from gadf format"
11+
-------
12+
- RT: I Can quickly give the status. Now there is internal model for table. Conversion to and from GADF done in IO class (EventListReader/Writer). One issue from validation error that made test fail, now added something for this: On read the reader opens table and it is checked that minimal columns are present, not a full validation but that minimal four columns are there. If not, error is raised. Otherwise, proceed building the objects and build table, add additional optional columns.
13+
- QR: Can we still read the SWGO data?
14+
- RT: I think it works, because the test was running on my machine. If you try to access poorly formatted events, it would raise a ValueError, though.
15+
- I will look at the test again, then it should be done, please review afterwards.
16+
17+
#5859 "Remove deprecated code in FixedPointingInfo"
18+
------
19+
- RT: Removes deprecated code in FixedPointingInfo. Deprecation warning has been there for a long while, now this is resolved. Changes remove quite a bit of code. Location has now explicitly to be passed to the irf projection functions (in gammapy.makers.utils). This change was added by QR.
20+
- QR: I have a fail that is not visible on CI. Maybe someone can try if they see the same. RT: I will check. Modulo this issue, should be ready soon.
21+
22+
#5898 "Add stacking functionality to LightCurveEstimator"
23+
---------
24+
- KF: Currently we have a test failing, when name of dataset is changed. Not sure yet what causes this, AS had a look, but was not sure either.
25+
- AD: note that WCS reference coordinate is None.
26+
- QR: Might be a precision error?
27+
- AS: Yes, might we need to add tolerance? I could do a PR with which we see which line is failing.
28+
- RT: Maybe dataset name is not the same and could lead to a problem?
29+
- AS: Yes that is the only point I found. Why it works for non-stacking case is confusing me.
30+
- AD: Depends on which axis you stack. For data axis it gives new names, along the energy axis it fails. First thing I would do is improve error message here to see where it is thrown. Info currently not enough. If axis are not aligned, the code should tell us why this is.
31+
- AS: possible issue with `reoptimize` option.
32+
- RT: Maybe say in docu that it is not advised to use this new option with regular MapDataset?
33+
- RT: This stacking issue has to be solved, take a decision next week, AS gives update on Monday.
34+
35+
#6029 "Standardized implementation prior_stat_sum"
36+
--------
37+
- QT: Old uniform prior penalized. Will modify the notebook, but should already not contain term "prior" in that case (???).
38+
We do not show weight system.
39+
- RT: We will have to work on solution in general for penalties instead of priors. Not being bound to API like it is.
40+
- AD: Agree, introducing new penalty API requires a bit more work. Is it possible to have custom priors? Then we could fully move the whole definition in the documentation/notebook (Example how to do it custom) then not part of gammapy-API. I think it would be the safest thing to do. QR agrees.
41+
- AD: If it works technically, preferable solution, because then we do not introduce new API.
42+
- RT: Idea would be to start with custom prior, then use it for penalized? ???
43+
- AD: You could even call it "non normalized prior".
44+
Tutorial on implementing a custom prior discussed by RT, AS, AD, QR.
45+
- RT: Do we deprecate attribute of prior?
46+
- AS: Entire unfiorm prior deprecated?
47+
- QR: Additional usecase ???
48+
- AD: If we do 3D fit we have alot of pixels, and sum the liklihood of those pixesl. Question is, if we maybe have to take mean. This reweighting per pixel, how many measurements, etc... generic way is global way to scale likelihood back to the prior. I think we need it. For the Poisson-Likelihood I ended up using the mean, gave a more stable parametrization with respect to the prior. Requires generic/adhoc handling if unexperienced with the data. What is the value to expect from a Cash-Likelihood for a given dataset, for example. For millions of pixel, prior on single parameter does not do much. In practice handle needed. Also, results can differ for different weights.
49+
Prior taken to certain power should (under certain properties) still be normalized, still in the Map regime.
50+
- RT: OK, We keep the weight for now and will see how the framework evolves for the penalties. QR you introduced the random variable, if we want to have sampling we need something similar ??? QR agrees, I can add a line.
51+
52+
#6038 "Vectorized error evaluation of flux uncertainties based on samples"
53+
-----
54+
- QR: Now it is fully working. Every thing is vectorized, when the model can not, there is a fallback, then loop over samples is done. I removed change it naima ???. I tried to parallize it, there was no gain, kept it like this, simple loop. Possibility to give sample directly as attribute ??? For now, samples given as list of arrays in specific order of parameters.
55+
- RT: No specific tests, probably test for vectorized spectrum that you could use, so that it is tested independently. Question reg. typical number of samples: Since it is parallelized more than 3000 x N_parameters.
56+
- QR: 3500 x N_Parameter. For powerlaw 10000, for more complex model it will be more. The larger param-space, the more points you need to sample it correctly. RT agrees.
57+
- RT: Adding independent class for this type of calculation may be good. Maybe cleaner refactoring, but not urgent. Maybe you could make some tests for vectorized version, otherwise looks fine, reviews needed. QR agrees to add tests.
58+
59+
RT: Then we are through with higher prioritity.
60+
61+
#6002 "Update of plot functions for the colour bar"
62+
----
63+
- AS: Colorbar is in middle of plot, we need this solved before release. It was fine before #5992
64+
- DM: Maybe it was tight_layout applied, that is what this PR removes.
65+
- AD: Yes, we should this not call internally in gammapy, only users outside. In tutorial fine, but not in production code. For peek functions one can tune the `figsize` when the layout is changed.
66+
- AD, KF, RT, AS agree: we should revert #5992.
67+
- RT, AD discuss: Complex to do certain plots. We should aim at 80 percent for nice plots, 100 percent is much of work. If nicer plot needed for your tutorial, code could be added there.
68+
69+
### Discussion on merging strategy regarding revert changes
70+
71+
- Reverting can be a difficult task for many commit, because the right one has to be found. Reverting the whole PR should be possible by reverting the merge commit?
72+
- Discussion over general concept/strategy for method (squash and merge) to limit number of commits per PR
73+
- KF: Then one main branch just final product
74+
- DM: History cleaner. KF, RT, AD agree.
75+
- AD: Checked that direct revert not possible, requires fixing conflicts.
76+
77+
#6031 "Exposing AnalysisConfig better"
78+
-----
79+
- KF (shares screen): Current documentation quite messy and confusing to look at. Thereby, I implemented in PR change of settings, to make it nicer (suppress parts). Question how to proceed: Two options are to either in each of these parameters specify input, or adjust docstring of those classes?
80+
- RT: AnalysisConfig based on pydantic?
81+
- KF: Yes, this is why I had to add this specific setting.
82+
RT, KF, AS discuss.
83+
- AS: Explaining manually kind of equivalent to exposing all.
84+
- KF: If we do not expose, all the configs not needed.
85+
- RT: New analysis high-level interface not ready now, but will be at some point. Question is, shall we do correct exosition now, if we have to deprecate soon?
86+
- AS: Is class much used?
87+
- RT: Probably not as only exposed in two points in tutorials. Is there way to get rid of all pydantic specific functions? Strong objection to exposing the ??? Otherwise proceed.
88+
89+
#6043 "Fix docstrings"
90+
------
91+
KF explains, is a small change.
92+
93+
94+
#6027 "Fix the setup of the workflow running tutorials with jupytext"
95+
--------
96+
DM explains that the workflow it misses some installation steps before running the actual command. RT: Comes from old issue from Max, KF agrees.
97+
98+
99+
RT: Through with open PRs, Changelog and Citation.cff remain and open Issues. Much less than before.
100+
- AS: Yes, we postponed the ones open for more than 2 years, as they can not be high priority. RT agrees.
101+
- RT: For the remaining ones, we postpone the ones with feature requests. No bugs so far, no documentation, we could postpone everything.
102+
We postpone them and check on remaining PRs next week. Ideally branching next week, I can join for that at some point, but will be mostly away. QR, AS?
103+
- RT, QR, AS agree to do it together.
104+
- RT: Branching, finalizing citation and changelog remain. If branching next week, rest maybe before 15 of August, then final checks. ???
105+
We are close to be done with 2.0, thank you for the hard work! :)
106+
6107
### Open PRs for v2.0
7108

8109
https://github.com/gammapy/gammapy/pulls?q=is%3Aopen+is%3Apr+milestone%3A2.0

0 commit comments

Comments
 (0)