warnings vs errors: know the difference
breakpoints: interactive debugging in VS Code
print everything out: check intermediate values
reading error messages carefully
read the docstring or documentation of functions/classes/packages used
describe what you are doing
provide the full error message
if possible, provide a self-contained example that reproduces the error
if you find a bug in opensoundscape, open an issue
the issue should describe what code in opso is causing the issue
provide the example that reproduces the issue
if you think you know a solution, provide it in the issue
issues can also be feature requests; discussions or questions can go in forums or in slack
write comments to yourself/others
use descriptive variable names and don't use keywords
avoid repeated code (use loops and functions instead)
read docstrings!!!!
perform a code snippet with a known dataset, and make sure it works like you expect it to
save a copy of your script alongside the outputs, in case you modify the original script
also save the enviornment exported to a yml file with conda env export -f my_env.yml
write detailed comments