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

ProcessAndLog object has no attribute 'step' #8

Closed
mike-perdide opened this issue Mar 24, 2012 · 0 comments
Closed

ProcessAndLog object has no attribute 'step' #8

mike-perdide opened this issue Mar 24, 2012 · 0 comments

Comments

@mike-perdide
Copy link
Collaborator

I get the above AttributeError when running the following example (from doc/manual.rst) :

# Configure: a dot every 10 steps
logger.dot_every(10)

# Configure: progress message every 100 steps
logger.progress_every(100)

# Optional: reset the number of iterations
logger.progress_reset()

while x != 1:

    # count one step
    logger.step()

    if x % 2 == 0:  # if x is odd
        x /= 2  # halve x
    else:
        x = 3 * x + 1

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

No branches or pull requests

2 participants