Eventio

Latest version: v1.14.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 11

1.4.0

* Change to the `PhotoElectrons[1208]` object: store photoelectrons and amplitudes in 1d-arrays together with an array of pixel ids instead of lists of lists. This brings a considerable performance improvement, both for reading this data from simtel files and for dealing with the data.

See https://numpy.org/doc/stable/reference/generated/numpy.ufunc.at.html for how to do operations on these pairs of indices / values arrays, e.g. to compute the mean arrival time in each pixel, you could use:

python
def mean_at(n, array, indices):
mean = np.zeros(len(n))
np.add.at(mean, indices, array)

avoid divide by zero warning
mask = n > 0
mean[mask] /= n[mask]
mean[~mask] = np.nan
return mean

mean_time = mean_at(pe['photoelectrons'], pe['time'], pe['pixel_id'])


* The `photon_counts` field of the `PhotoElectrons[1208]` object was renamed to `photons`

Thanks watsonjj for implementing this in https://github.com/cta-observatory/pyeventio/pull/207

1.3.0

* Support sim_telarray files that include the full corsika photon information 206

1.2.0

* Add `mean_time` to `PhotoElectrons` output, this is the mean arrival times of the photons in each pixel
* Add support for versions 0 and 1 of the `MCPhotoelectronSum` container

1.1.1

* Remove internal byte_stream object from the output of `CameraMonitoring.parse`
* Add calibration type to event output of `SimTelFile`
* Packaging and testing improvements

1.1.0

* Add support for the new version 3 of LaserCalibration objects (sim_telarray type 2023)

1.0.2

* Add cli tool to print the simtel config history:

$ eventio_print_simtel_history file.simtel.gz

Page 5 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.