Skip to content

Instantly share code, notes, and snippets.

# See https://www.anaconda.com/understanding-and-improving-condas-performance/ for more info.
# help debug channel issues
show_channel_urls: true
# pip will always be installed with python
add_pip_as_python_dependency: true
# strict priority and conda-forge at the top will ensure
# that all of your packages will be from conda-forge unless they only exist on defaults
@asmeurer
asmeurer / ndindex.md
Last active March 6, 2020 19:45
Idea for a ndindex manipulation library

I would like to have a library that makes it easier to manipulate indices to ndarrays. This primarily means slices and tuples of slices, but could also apply to fancy indexing.

Here are some of the pain points of working with the Python slice objects directly

  • slice is not hashable, so you have to convert it to a tuple to use it as a dictionary key.