Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@pyRAPL.measure in demo code returns error: AttributeError: module 'pyRAPL' has no attribute 'measure' #14

Open
stephbuon opened this issue Feb 18, 2022 · 1 comment

Comments

@stephbuon
Copy link

Hi,

When I try your demo code (from PyPI and this repo):

import pyRAPL

pyRAPL.setup() 

@pyRAPL.measure
def foo():
		# Instructions to be evaluated.

    foo()

I get an attribute error: AttributeError: module 'pyRAPL' has no attribute 'measure'.

Can I please request guidance?

Thank you!
Steph

@adhooge
Copy link

adhooge commented Mar 29, 2022

Hi!

I hope you solved your problem since you asked but I'll answer anyway to others who might have the same problem.
It appears the README on the repo is not up to date (or just incorrect). The actual decorator to use is @pyRAPL.measureit, as described in the docs: https://pyrapl.readthedocs.io/en/latest/quickstart.html

It solved the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants