Skip to main content

A tool for reading ND2 files produced by NIS Elements

Project description

zolfa-nd2reader

About

zolfa-nd2reader is a pure-Python package that reads images produced by NIS Elements 4.0+. It has only been definitively tested on NIS Elements 4.30.02 Build 1053. Support for older versions is being actively worked on. The reader is written in the pims framework, enabling easy access to multidimensional files, lazy slicing, and nice display in IPython.

This version is a fork of the project of published here.

Documentation

Documentation specific to this fork is not available yet.

The documentation of the origianl nd2reader project was available here.

Installation

The package is available on PyPi. Install it using:

pip install zolfa-nd2reader

If you don't already have the packages numpy, pims and xmltodict, they will be installed automatically running pip. Python >= 3.10 are supported.

ND2s

nd2reader follows the pims framework. To open a file and show the first frame:

from zolfa.nd2reader import ND2Reader
import matplotlib.pyplot as plt

with ND2Reader('my_directory/example.nd2') as images:
  plt.imshow(images[0])

After opening the file, all pims features are supported. Please refer to the pims documentation.

Contributing

If you'd like to help with the development of nd2reader or just have an idea for improvement, please see the contributing page for more information.

Bug Reports and Features

If this fails to work exactly as expected, please open an issue. If you get an unhandled exception, please paste the entire stack trace into the issue as well.

Acknowledgments

First fork by Ruben Verweij.

PIMS modified version by Ruben Verweij.

Original version by Jim Rybarski. Support for the development of this package was partially provided by the Finkelstein Laboratory.

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

zolfa-nd2reader-3.4.1.tar.gz (49.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zolfa_nd2reader-3.4.1-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file zolfa-nd2reader-3.4.1.tar.gz.

File metadata

  • Download URL: zolfa-nd2reader-3.4.1.tar.gz
  • Upload date:
  • Size: 49.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for zolfa-nd2reader-3.4.1.tar.gz
Algorithm Hash digest
SHA256 dd405565d44cf165a6c01efba3648f10069f821e1a688641adc91711389fb13c
MD5 144ed32bf8b4a75dbcb3321c371b93ac
BLAKE2b-256 eb30e5f715e861662ef7b2e5eb64a73bef054d1ad4acef9492fc657d853eb5fa

See more details on using hashes here.

File details

Details for the file zolfa_nd2reader-3.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for zolfa_nd2reader-3.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c2173c1deed22a472470444161b20cc5cba0a93c4ee5d74bd91767907428c061
MD5 f1756a0f3bfa2ecd3402e9abac396350
BLAKE2b-256 5091d0b30ee4a38c058aa05ce29532bebc90cc42c78db160bd6b557e0a7179d6

See more details on using hashes here.

Supported by

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