try/except necessary?
Comment from Max:
https://gitlab.in2p3.fr/gammalearn/gammalearn/-/blob/master/gammalearn/criterions.py#L45
Writing:
try: assert alt1.data.nelement() > 0 except AssertError: log.exception() raise
Is a very weird way of doing: `` if alt.data.nelement() == 0: raise ValueError()
Do you do this because the assertion can be switched off by passing the optimization option for python?