Welcome to step 7 in your training as a scientific Python code ninja: test automation.
Tests are extremely useful, as long as you run them. Unfortunately, a common
pattern in many projects is this:
Tests are written and run by the person who wrote them.
Others, and even the test-writer at a f...
Welcome to step 6 in your training as a scientific Python code ninja: issue tracking.
Look at you! You've got your nice code with some docstrings and tests, and you're
humming along analyzing data, simulating widgets, and whatnot. In the middle of it
all, you realize that your regressi...
This is step 5 in your journey toward rock-solid scientific Python code: write tests.
I hear you. Writing tests is not an inherently fun process. However, the alternative is debugging, staring at code and thinking real hard about what could be wrong, and more debugging. I'll...
This is step 4 in your journey toward rock-solid scientific Python code.
Steps 1-3 were language-agnostic, but now I'm going to assume you're using
Python. The Python language has a built-in feature for documenting functions,
classes, and modules; it is the docstring. A docstring for a...