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

Fix final defensive programming challenge so it initializes from data #312

Merged
merged 1 commit into from
Sep 22, 2016
Merged

Fix final defensive programming challenge so it initializes from data #312

merged 1 commit into from
Sep 22, 2016

Conversation

DamienIrving
Copy link
Contributor

At the end of the defensive programming lesson it says that an important rule of programming is to always initialize from data. In the solution to the final challenge of that lesson the highest and lowest value are initialized using numpy.inf. I've changed this so they are initialized from the data instead.

@tbekolay tbekolay merged commit 45ba846 into swcarpentry:gh-pages Sep 22, 2016
@tbekolay
Copy link
Contributor

Thanks for this! It's definitely good to practice what we preach :)

rgaiacs pushed a commit to rgaiacs/swc-python-novice-inflammation that referenced this pull request May 6, 2017
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

Successfully merging this pull request may close these issues.

2 participants