Closed steven-lai closed 7 years ago
My current workaround is:
def test():
with Metrology.timer('test'):
return 'test'
@steven-lai Looks like so, would you mind making a PR for both meter and timer?
@cyberdelia PR submitted - https://github.com/cyberdelia/metrology/pull/35
@cyberdelia I saw you released 1.2.3
and I assume this change is in there, please correct me if I'm wrong.
Upon updating to 1.2.3
, I'm still seeing the same issue:
pip uninstall metrology
) and re-installing@steven-lai Try with 1.2.4?
Downloaded the wheel, unpacked, and verified the code has the changes. Thanks!
Expected output is
test
but insteadNone
is printed.I believe the relevant code in
metrology.instruments.meter.Meter
:It should say
return _orig_func(*args, **kwargs)
instead, maybe?Using
metrology 1.2.2
withPython 2.7.13