graphnet-team / graphnet

A Deep learning library for neutrino telescopes
https://graphnet-team.github.io/graphnet/
Apache License 2.0
90 stars 92 forks source link

Quick fix for proper handling of empty pulsemaps. #673

Closed Aske-Rosted closed 6 months ago

Aske-Rosted commented 6 months ago

As the title indicates this is a very short fix that ensure that the NodeAsDOMTimeSeries class properly handles the situation of an empty pulsemap (meaning it returns and empty data object.). Currently the the line on https://github.com/graphnet-team/graphnet/blob/4ffa0f1412d3a7932e6c292a5bfde429ba7423bb/src/graphnet/models/graphs/nodes/nodes.py#L284 throws an error.