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

Notebook 1 week 2 too hard check? #117

Open
paskino opened this issue Mar 16, 2023 · 0 comments
Open

Notebook 1 week 2 too hard check? #117

paskino opened this issue Mar 16, 2023 · 0 comments

Comments

@paskino
Copy link
Contributor

paskino commented Mar 16, 2023

We use the following hard statement:

if myFISTATV.g.alpha == 0.02 and myFISTATV.iteration > 199:
   print("Good job, carry on!")
else:
    raise ValueError("Try again: run 200 iterations with alpha of 0.02")

which could be substituted with

import numpy as np
if np.testing.assert_almost_equal(myFISTATV.g.alpha, 0.02, decimal=2) and myFISTATV.iteration > 199:
    print("Good job, carry on!")
else:
    raise ValueError("Try again: run 200 iterations with alpha of 0.02")
@paskino paskino changed the title Notebook 1 week 2 hard check? Notebook 1 week 2 too hard check? Mar 16, 2023
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

1 participant