Downsample labeled segmentations by taking the mode of 2x2 blocks using only Python and numpy. This was first used in a pipeline for generating MIP levels on AI segmentations of brain tissue. (more…)
Read more »
Let’s explore two great Python libraries — itertools and more_itertools and see how to leverage them for data processing… (more…)
Read more »
It’s important to know about data types and one that comes up fairly regularly is that of Linked Lists. Let’s write the following base code to create a Linked List. Now that we have a base class, let’s insert a couple of nodes and print it out to see what... (more…)
Read more »
In a Q&A, Python programming language creator Guido van Rossum said it was "almost taboo to talk about a Python 4 in a serious sense" following the troubled migration from Python 2.0 to Python 3.0. (more…)
Read more »
py2rs - A quick reference guide for the Pythonista in the process of becoming a Rustacean... (more…)
Read more »