Skip to main content

Package to create, load, edit, and save files following the nxxrdct application definition.

Project description

NXxrdct

The goal of the nxxrdct project is to provide a python API to create, load, edit, and save NXxrdct application definition files.

Please find at https://nxxrdct.readthedocs.io/en/latest/ the latest documentation

pip install nxxrdct

Add the optional extras when you need documentation or development tooling:

pip install nxxrdct[doc,test]

Quick Start

import numpy as np
import pint

from nxxrdct import NXxrdct

ureg = pint.get_application_registry()

nx = NXxrdct()
nx.title = "Demo XRD-CT"
nx.beam.incident_energy = 60 * ureg.keV
nx.sample.name = "sample-01"
nx.sample.rotation_angle = np.linspace(0, 180, 181) * ureg.degree
nx.instrument.detector.data = np.zeros((181, 256, 256))
nx.instrument.detector.count_time = 0.1 * ureg.second

nx.save("demo_xrdct.h5", data_path="entry")

Documentation and Support

Contributing

Contributions and feedback are welcome. Please open an issue or submit a merge request on Github. See the development guide in doc/development for details on setting up a local environment and running the test suite.

License

nxxrdct is released under the MIT License. See LICENSE for the full text.

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

nxxrdct-0.1.0a0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

nxxrdct-0.1.0a0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file nxxrdct-0.1.0a0.tar.gz.

File metadata

  • Download URL: nxxrdct-0.1.0a0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for nxxrdct-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 da5b36e49f8c999b7a0bdf7d92d36ae62b98fba19433d70f937cd366c11b99a6
MD5 e7aca8f9cc39065917d81016aecdc0a1
BLAKE2b-256 88199e98fa89f0e36cd8ecc13ada8d58132d17749f312efc4419975bea06202a

See more details on using hashes here.

File details

Details for the file nxxrdct-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: nxxrdct-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for nxxrdct-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 87bfde300dfbafee9234e8c525c10f6526db3ed914938eeb4a03ae2f27707e3c
MD5 51b31ce8eabecfbaa235991bcba7a03b
BLAKE2b-256 4cc046e81bcdae585b0dc5856e0fe636ca9c38e516b2ba2f153b2c7a2264f18b

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