PaNOSC-ViNYL / SimEx

Start-to-end photon experiment simulation platform
https://simex.readthedocs.io/
GNU General Public License v3.0
26 stars 25 forks source link

Bugfixes for XMDYNPhotonMatterAnalysis #248

Open godot11 opened 1 year ago

godot11 commented 1 year ago

This fixes #246, #247, and an erroneous test in Analysis.XMDYNPhotonMatterAnalysis.XMDYNPhotonMatterAnalysis.

godot11 commented 1 year ago

Please hold on with merging this one. pylab.find may not have been what I thought it was. It seems it was matplotlib.mlab.find which is simply

import numpy as np

def find(condition):
    res, = np.nonzero(np.ravel(condition))
    return res

and was removed in matplotlib versions >= 3.1.