# particula.data.registry

*module*

Register trusted measurement algorithms and custom readers.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L1-L1)

## particula.data.registry.OperationRegistry

*class*

```python
class OperationRegistry
```

Select versioned process strategies and trusted user readers by name.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L32-L158)

### particula.data.registry.OperationRegistry._batch_readers

*attribute* · *instance attribute*

```python
_batch_readers: dict[str, Callable[..., BatchReader]] = {'delimited': MeasurementReader}
```

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L39-L41)

### particula.data.registry.OperationRegistry._processes

*attribute* · *instance attribute*

```python
_processes: dict[tuple[str, str], MeasurementProcess] = {}
```

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L37-L37)

### particula.data.registry.OperationRegistry._readers

*attribute* · *instance attribute*

```python
_readers: dict[str, Callable] = {}
```

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L38-L38)

### particula.data.registry.OperationRegistry.__init__

*method*

```python
def __init__() -> None
```

Register the particle concentration and causal voltage mean.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L35-L80)

### particula.data.registry.OperationRegistry.available_operations

*method*

```python
def available_operations(product: Measurement) -> dict[str, dict]
```

List compatible and required roles for each operation.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L103-L120)

### particula.data.registry.OperationRegistry.batch_reader

*method*

```python
def batch_reader(name: str) -> Callable[..., BatchReader]
```

Return the batch strategy for use with import_to_parquet.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L141-L145)

### particula.data.registry.OperationRegistry.describe

*method*

```python
def describe() -> list[dict]
```

Describe registered operations, units and parameter schemas.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L99-L101)

### particula.data.registry.OperationRegistry.reader

*method*

```python
def reader(name: str) -> Callable
```

Resolve a built-in or caller-installed reader strategy.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L147-L158)

### particula.data.registry.OperationRegistry.register

*method*

```python
def register(process: MeasurementProcess) -> None
```

Register one implementation for a qualified ID and version.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L82-L87)

### particula.data.registry.OperationRegistry.register_batch_reader

*method*

```python
def register_batch_reader(name: str, factory: Callable[..., BatchReader]) -> None
```

Register a batch strategy for both memory and disk imports.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L130-L139)

### particula.data.registry.OperationRegistry.register_reader

*method*

```python
def register_reader(name: str, reader: Callable) -> None
```

Register a callable accepting source, profile and reader limits.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L122-L128)

### particula.data.registry.OperationRegistry.resolve

*method*

```python
def resolve(operation: str, version: str) -> MeasurementProcess
```

Resolve a versioned operation or report the registered choices.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L89-L97)

## particula.data.registry._concentration

*function*

```python
def _concentration(rate: pl.Expr, sample_flow: pl.Expr) -> pl.Expr
```

Divide counts/s by sampled cm³/s to obtain particles/cm³.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L15-L17)

## particula.data.registry._moving_average

*function*

```python
def _moving_average(signal: pl.Expr, *, window: int, max_gap_seconds: float) -> pl.Expr
```

Compute complete trailing sample means, resetting after a clock gap.

[View source](https://github.com/uncscode/particula/blob/main/particula/data/registry.py#L20-L29)
