General GERlich group uTILities
These tools are organised by use case at the module level; that is, tools that are used in a similar context will tend to be defined in the same module, with the module name reflecting that shared usage context. If you see that something's not well placed, please open an issue and/or a pull request.
- collection_extras -- tools for working with generic containers / collections
- environments -- tools for working with
conda
andpip
environments - geometry -- tools for working with entities in space
- gpu -- tools for running computations on GPUs, especially with TensorFlow
- pathtools -- tools for working with filesystem paths generally
- pixel_value_statistics -- tools for computing statistics of pixel values
- types -- data types for working with genome biology, especially imaging
- zarr_tools -- functions and types for working with ZARR-stored data
This project is configured to use Nix for a shell/environment with dependencies, and Nox to make common development commands/workflows easier. Start always with nix-shell
. If it takes a long time to build, try...
- Stop the shell build:
Ctrl-c
- Remove the Poetry lockfile:
rm poetry.lock
- Clear Poetry's PyPI cache (assuming you have an active Nix shell):
poetry cache clear PyPI --all
- Say "yes" if/when prompted for confirmation of desire to clear the cache
- Exit Nix shell:
Ctrl-d
- Restart Nix shell:
shell.nix
From the Nix shell, run nox --list
to see a list of available commands, notably to run tests against different versions of Python, to reformat code to be style-compliant, and to run the linter.
NB: To pass arguments through nox
to pytest
, separate the argument strings with --
, e.g.:
nox -s tests-3.11 -- -vv
to run the tests with additional verbosity (e.g., pytest -vv
)