-
Notifications
You must be signed in to change notification settings - Fork 270
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
Improve ArrayDisplay and SubarrayDescription #723
Conversation
- removed outdated overlay functions - replaced with set_uv() and set_r_phi()
…apipe into refactor/array_display
…nto refactor/array_display
- array_layout.py -> array_display.py - removed array_animation
draws the array and overlays hillas params... still a bit broken though
Could this be related to #721 ? |
also support frames other than GroundFrame, which is the default.
still looks wrong though.
…nto refactor/array_display
- don't really need this, though, since you can just set the zorder and plot anything on top of the ArrayDisplay.
…nto refactor/array_display
I had a nice laugh when I read:
But to be fair, these are to completely different things. A telescope position is something absolute on Earth, not in the Sky. While Telescope Pointings and positions in the camera / fov are SkyCoords, telescope positions are just |
Yeah, I had the same thought, but it's just that AstroPy decided to call their coordinate class |
Codecov Report
@@ Coverage Diff @@
## master #723 +/- ##
==========================================
+ Coverage 68.15% 68.96% +0.81%
==========================================
Files 196 196
Lines 10548 10522 -26
==========================================
+ Hits 7189 7257 +68
+ Misses 3359 3265 -94
Continue to review full report at Codecov.
|
* master: Correct dl1.py for using inst.num_channels for the integration correction (cta-observatory#730) Muon reco changes (cta-observatory#736) Changes to TargetIOEventSource (cta-observatory#732) Improve ArrayDisplay and SubarrayDescription (cta-observatory#723) # Conflicts: # ctapipe/io/containers.py
* master: install protozfits v0.44.5 and require it for nectarcam (cta-observatory#734) Correct dl1.py for using inst.num_channels for the integration correction (cta-observatory#730) Muon reco changes (cta-observatory#736) Changes to TargetIOEventSource (cta-observatory#732) Improve ArrayDisplay and SubarrayDescription (cta-observatory#723) # Conflicts: # ctapipe/io/containers.py # ctapipe/io/tests/test_nectarcameventsource.py
The
visualization.ArrayDisplay
code was quite out of date, and mostly not useful the way it was implemented. However, having such a display is critical for debugging reconstruction code. This PR simplifies it, makes it use theSubarrayDescription
correctly, and adds some useful functionality. It so far will break theplotting.ArrayPlotter
, but that seems to be an unnecessary class and will be replaced with basic ArrayDisplay functionality.ArrayDisplay Changes:
values
a-tribute, similar toCameraDisplay.image
.matplotlib.quiver
object). This is controlled by theset_vector_uv()
,set_vector_rho_phi()
orset_vector_hillas()
functions, all of which provide different ways to set the vector angle and lengthexamples/array_display.py
that shows an animated displayexamples/plot_array_hillas.py
that plots the array, the core position, and the hillas ellipses for each eventSubarrayDescription changes:
SkyCoord
in theGroundFrame
.pos_x, .pos_y, .pos_z
aattributes, and now recommend using.tel_coords
telescope_types
,camera_types
, andoptics_types
atributes, that give back lists of those quantities, helpful for selecting telescopes.get_tel_ids_for_type()
helper, that returns a list of tel_ids for a given telescope type.Some things that need improvement:
Frames
. E.g. should be able to give ArrayDisplay a Frame, and have it convert the SubarrayDescription telescope positions automatically, so that the result is e.g. in theTiltedFrame
ArrayPlotter
, and remove/deprecateArrayPlotter
Some problems possible unrelated to this PR, but that should be looked into:
A LaPalmaRefSim MC:
A standard Prod3b MC: