lina-usc / pylossless

🧠 EEG Processing pipeline that annotates continuous data
https://pylossless.readthedocs.io/en/latest/
MIT License
18 stars 8 forks source link

Lossless Logging Support #100

Closed Andesha closed 1 year ago

Andesha commented 1 year ago

As mentioned in #79 logging support is gonna be a big deal.

For now I just threw together some really simple (and exhaustive) code to mark down timings for each stage.

What this will allow me to do is profile #98 properly.

In the future we can rip out a decent amount of this and replace with it something more Pythonic using static variables or something.

scott-huberty commented 1 year ago

Thanks! This will be a great feature to have. I'll give this a look this week.

scott-huberty commented 1 year ago

Thanks for doing this @Andesha - I think we can use a decorator function here to remove the need to track the t0's t1's in _run. Mind if I take a wack at it?

Andesha commented 1 year ago

go for it!