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 »
Simple Python version management. Contribute to pyenv/pyenv development by creating an account on GitHub. (more…)
Read more »
You’ve finished building the initial Docker image for your Python application, you push it to the registry–and that takes a while, because your image is 2GB. Your image is clearly too large, and so your next step is to try to make your Docker image smalle... (more…)
Read more »
Looking for a Python job? Chances are you are going to need prove that you know how to work with Python. Here are a couple of questions that cover a wide base of skills associated with Python. (more…)
Read more »
Whenever I started learning about parsing and writing interpreters, I would get to how to handle comments. The gist of it was simple: just throw them out! You find them in the raw text output as you are generating lexing tokens, and discard them, meaning ... (more…)
Read more »