Closed maxnoe closed 1 year ago
Just because I had the script already from #2347
https://github.com/cta-observatory/ctapipe/assets/5488440/ad475013-53d6-4e23-a765-84db08397f69
Maybe we should just finish removing the CameraFrame versions of all of this... Then we only support TelescopeFrame, and you can transform into CameraFrame to see the result.
Hi @maxnoe can you explain what bits are actually about the new functionality? Most of this seems to be more style refactoring so I'm not sure what bit is where it is important to look closely...
Most of this seems to be more style refactoring so I'm not sure what bit is where it is important to look closely...
Actually, none of this is style refactoring, it's all directly related to support the two frames we can have image parameters in.
In the current main, we use u.quantity_input(x=u.m, ..)
to make sure units are valid, however, image parameters can be in either CameraFrame
which uses length units on the sensor or TelescopeFrame
which uses angles on the sky (in degree).
The units checks prevented the toymodel to be used in the TelescopeFrame
, now we support both.
missing tests