graphnet-team / graphnet

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

`NodesAsPulses` steal logger headline #723

Closed RasmusOrsoe closed 1 month ago

RasmusOrsoe commented 1 month ago

Describe the bug On import, the NodesAsPulses steals the first logging entry, regardless of its used or not.

To Reproduce Steps to reproduce the behavior: Run any training script under /examples

Expected behavior The log entry should point to the correct module

Full traceback Please include the full error message to allow for debugging

graphnet [MainProcess] INFO     2024-05-20 15:53:42 - NodesAsPulses.__init__ - Writing log to logs/graphnet_20240520-155342.log

Additional context @AMHermansen has pointed this out in the past - it is caused by GraphDefinition having a NodesAsPulses set directly as default value.