Helmholtz-AI-Energy / perun

Perun is a Python package that measures the energy consumption of you applications.
https://perun.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
51 stars 2 forks source link

Perun decorator not return func result #146

Closed diligent-man closed 3 weeks ago

diligent-man commented 3 weeks ago

In decorator.py (line 60): func_result = perun.monitor_application(app)

It should be changed into: func_result = func(*args, **kwargs) in order to return the result of monitored function

Best regards.

JuanPedroGHM commented 2 weeks ago

Thanks for finding that out! Should be fixed now.