-
Notifications
You must be signed in to change notification settings - Fork 78
Start updating code for ctapipe 0.25 #1361
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
Conversation
@moralejo You should update the ctapipe version tested in CI in |
thx, will do |
It seems there is also an incompatibility with gammapy |
I think this is between scipy and gammapy and should be fixed by updating gammapy to 1.2 |
Add |
What will that do? |
ctapipe has changed the shape of waveform to always be 3d, also for gain selected data. |
I still get the warnings, not sure what I did wrong... |
I don't see them anymore in the current run. They are also gone if you update to a newer version of ctapipe. We were a bit too heavy on this warning, raising it also for files we know can not have this metadata. |
In current ctapipe, the extractors should just return a 2d image if you give it all gains and no |
should be unnecessary with current ctapipe
Solved now |
I think the remaining non-passing tests will be solved with this issue pointed out by @maxnoe: |
I plan to do it today |
The only pending failing test was working for me "locally" (i.e. at the cluster) but I cannot test now - bridge computer still down. |
Did you check that there is an actual change in the output? Maybe it's just the new matplotlib version complaining about it where the old one didn't. What version of mpl do you have locally? Is it the up-to-date 3.10 as it is in the CI? |
No I couldn't check yet, it was just speculation. On the other hand, it did not fail in my local test, which is weird.
Can't connect to the IT yet... |
Hi @maxnoe
Locally the test works for me and I have mpl 3.10.1 ... |
Same here. I cannot understand, the input file is the same as it used to be, so it is not about a change in the contents. And the point of failure seems to be just creating a camera display, before values are set in. |
Does the test work locally when you set |
It still works when I set MPLBACKEND=Agg (as env variable) |
I assume you ran this test in isolation? I think the issue is that if all tests are run, there is a conflict in figure numbers and the wrong figure is used to plot. |
I removed the explicit figure numbers, we had a similar issue in |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1361 +/- ##
==========================================
- Coverage 72.67% 72.65% -0.02%
==========================================
Files 137 137
Lines 14552 14559 +7
==========================================
+ Hits 10575 10578 +3
- Misses 3977 3981 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I personally run all the tests (in cp02), all worked except test_write_dataframe() whit the error : OSError: Can't synchronously read data (can't open directory (/usr/local/hdf5/lib/plugin). Please verify its existence) |
For me, locally, it worked both running in isolation and running them all. |
Ok, but that was it, tests are passing now |
A remaining difference could be that the CI runs tests in parallel (-n 2) |
"transform_waveform": true, | ||
"waveform_dtype": "uint16", | ||
"waveform_offset": 400, | ||
"waveform_scale": 80 | ||
"waveform_scale": 60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FrancaCassol Fine with changing the scale here?
Should we change the offset to 300 so that it is equivlent to the 60/5 we use in the EVB?
We should move on with this (even update to more recent ctapipe & ctapipe_io_lst), but to be honest I do not know how much needs to be updated in lstchain...