Skip to content

Releases: cta-observatory/pyeventio

v1.5.1.post1

05 Mar 11:07
ef40039
Compare
Choose a tag to compare

What's Changed since v1.5.1

  • Require "oldest-supported-numpy" in pyproject.toml, fixes #226 (#227) @maxnoe

Contributors

@maxnoe

v1.5.1

28 Jan 12:41
Compare
Choose a tag to compare

v1.5.1

  • Fix dtype of true cherenkov photo-electron image (float32 -> int32)
  • Allow access to simtel history from SimTelFile

v1.4.2

20 Oct 14:33
f00b9fd
Compare
Choose a tag to compare

v1.4.2

  • Fix reading of PixelDisabled objects when n_trigger_disabled != n_HV_disabled. PR: #219, issue #218

v1.4.1

10 Jun 11:04
c864d16
Compare
Choose a tag to compare

v1.4.1

  • Introduce EventIOFile.peek to look at the next eventio object in a file without advancing the iterator.
    Beware, that this might prevent from reading the previous object if the file is not back-seekable.
    To be safe, only call peek after reading/parsing the current object.
  • Fix that SimTelFile.iter_mc_events had the wrong TelescopeData. It always used the last available, which was either the one from the previous event or even older since events might not have TelescopeData at all

v1.4.0

26 May 10:53
4a2ae43
Compare
Choose a tag to compare

v1.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:

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 #207

v1.3.0

22 May 19:10
d8c1abc
Compare
Choose a tag to compare

v1.3.0

  • Support sim_telarray files that include the full corsika photon information #206

v1.2.0

20 May 12:06
8cdcf84
Compare
Choose a tag to compare

v1.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

v1.1.1

28 Apr 14:06
26cc0dc
Compare
Choose a tag to compare

v1.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

v1.1.0

24 Apr 14:15
10cabcc
Compare
Choose a tag to compare

v1.1.0

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

v1.0.2

16 Apr 08:35
d774de2
Compare
Choose a tag to compare

v1.0.2

  • Add cli tool to print the simtel config history:
$ eventio_print_simtel_history file.simtel.gz