Skip to main content

Python client to ICAT+

Project description

PyIcat-Plus

A python client for ICAT+.

Getting started

Register raw datasets with ICAT

icat-store-raw --beamline id00 \
    --proposal id002207 \
    --path /data/visitor/path/to/dataset1 \
    --dataset test1 \
    --sample mysample

icat-store-raw --beamline id00 \
    --proposal id002207 \
    --path /data/visitor/path/to/dataset2 \
    --dataset test2 \
    --sample mysample

Register processed data with ICAT

icat-store-processed --beamline id00 \
    --proposal id002207 \
    --path /data/visitor/path/to/processed \
    --dataset testproc \
    --sample mysample \
    --raw /data/visitor/path/to/dataset1 \
    --raw /data/visitor/path/to/dataset2

Test

With threads

python -m pip install -e .[test]
pytest

With gevent

python -m pip install -e .[test]
python -m pip install gevent
python -m gevent.monkey --module pytest

NeXus

Each ICAT field has a NeXus equivalent. Create a NeXus compliant HDF5 file with all ICAT fields:

icat-nexus-definitions [--url https://...]

An example can be found here and opened with myhdf5.

Documentation

https://pyicat-plus.readthedocs.io/

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

pyicat_plus-0.2.1.tar.gz (58.3 kB view details)

Uploaded Source

File details

Details for the file pyicat_plus-0.2.1.tar.gz.

File metadata

  • Download URL: pyicat_plus-0.2.1.tar.gz
  • Upload date:
  • Size: 58.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.5

File hashes

Hashes for pyicat_plus-0.2.1.tar.gz
Algorithm Hash digest
SHA256 25d039efc53e16f3f6b11e282cf6ded7b6468e3eff3d1663e8926cb42b15daee
MD5 4a4165f127f6f2354237e112f1c7ef26
BLAKE2b-256 6830a02fb70a9fb72f57a3a31fc9ec73fa2451cd9d2da2759e4a2720a2934f0b

See more details on using hashes here.

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