Skip to main content

Provide an intuitive way to make ndarray indexing variable.

Project description

Summary

Provide an intuitive way to make ndarray indexing variable like this:

from npindex import npidx

green_idx = npidx[:, :, 1]
green_of_im1 = im1[green_idx]
green_of_im2 = im2[green_idx]

This is all npindex does.

Install

Linux, Windows, macOS:

pip install npindex

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npindex-0.1.0.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

npindex-0.1.0-py3-none-any.whl (1.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page