Closed cg-laser closed 3 years ago
I ran test manually and they pass.
I wonder if this is potentially dangerous. Because then the order is silently changed and would e.g. not correspond to the order we have in the hdf5 files.
The change I made would in principle also effect if simulations were already produced and if the channel order is rerequsted by the detector. But this is not what one would do normally. The iter_channels
method is used and then the channel_id
is used to extract certain parameters.
fix association of channel ids with channel index.
To mitigate potentially out of order channels in the detector description, the detector now returns a sorted list.