semvec/pypi-packages huggingface dataset:
ucndata 4.2.4
Python class for reading UCN runs converted to ROOT with midas2root
Requires Python: >=3.5
Keywords: Analysis, PyRoot, TRIUMF, TUCAN, UCN

# ucndata


<a href="https://pypi.org/project/ucndata/" alt="PyPI Version"><img src="https://img.shields.io/pypi/v/ucndata?label=PyPI%20Version"/></a>
![GitHub commits since latest release](https://img.shields.io/github/commits-since/ucn-triumf/ucndata/latest)
<a href="https://github.com/ucn-triumf/ucndata/commits/master" alt="Commits"><img src="https://img.shields.io/github/last-commit/ucn-triumf/ucndata"/></a>

<img src="https://img.shields.io/pypi/format/ucndata?label=PyPI%20Format"/> <img src="https://img.shields.io/github/languages/code-size/ucn-triumf/ucndata"/> <img src="https://img.shields.io/pypi/l/ucndata"/>

This repository defines the `ucndata` package and a few scripts which utilize this package to analyze UCN ROOT files.

The `ucndata` package contained within has been installed system-wide on `daq04`. You will therefore be able to import it from any directory.

## ucndata quick links

* [Installation](tutorials/installation.md)
* [Getting Started](tutorials/gettingstarted.md)
* [Tutorial](tutorials/index.md)
* [Full API reference](docs/README.md)

## Quick API Reference

These are the main workhorses of the ucndata project:

* [ucnbase](docs/ucnbase.md) - base class for the following:
* [ucnrun](docs/ucnrun.md) - workhorse object representing a single run
* [ucncycle](docs/ucncycle.md) - workhorse object representing a single cycle within a run
* [ucnperiod](docs/ucnperiod.md) - workhorse object representing a single period within a cycle

But these can also be useful:

* [the chopper module](docs/chopper.md) - redefinition for working with chopper data
* [applylist](docs/applylist.md) - for working with sets of runs or cycles or periods. Does element-wise attribute access and operators
* [datetime](docs/datetime.md) - convert timestamps to datetime objects and back