BlueBrain / BlueCelluLab

Biologically detailed neural network simulations and analysis API
https://bluecellulab.readthedocs.io/en/latest/
Other
8 stars 12 forks source link

Use CaptureOutput to forward hoc's stdout to logger.debug #148

Closed anilbey closed 4 months ago

anilbey commented 4 months ago

This should solve #4 . Could you check @arnaudon, @eleftherioszisis ? You should be able to see the hoc specific outputs when logger mode is set to debug.

E.g.

DEBUG:bluecellulab.importer:Loaded Cell.hoc. stdout from the hoc: []
DEBUG:bluecellulab.importer:Loaded TDistFunc.hoc. stdout from the hoc: []
DEBUG:bluecellulab.importer:Loaded TStim.hoc. stdout from the hoc: []
arnaudon commented 4 months ago

Very good, this does the trick! Thanks a lot, my eyes appreciate it very much ;P