Practical Linear Algebra with NumPy
tommyodland.com
A neat collections of tips by Tommy Odland to avoid common linear algebra mistakes when using NumPy. Should be a useful read or refresher for all but the most expert of NumPy users.
tommyodland.com
A neat collections of tips by Tommy Odland to avoid common linear algebra mistakes when using NumPy. Should be a useful read or refresher for all but the most expert of NumPy users.
Python libraries usually alert users in advance, when they use arguments that will be removed in future versions. Using a simple placeholder as a temporary default value for deprecated arguments is often the simplest and most expressive way to implement this.
The stacklevel argument is important to determine which line of code is shown as the origin of a warning and how easy it is to understand its cause. If warnings are meant for your users, then they are part of your public API, and it is a good idea to check their origin in your test suite. Here’s how.
When a GitHub label is deleted, it is removed from every issue and pull request that it was associated with. Unfortunately, it is not as easy to revert this action if the label was accidentally deleted. I recently had to figure out an automated way to restore the label for 100+ issues, as I certainly didn’t want to do so by hand. So here is a quick “how-to” in case you ever encounter a similar problem.