semvec/pypi-packages huggingface dataset:
emputils 0.1.15
A utility package for working with the EMP framework
Requires Python: >=3.6

[![pipeline status](https://gitlab.cern.ch/dmonk/emputils/badges/master/pipeline.svg)](https://gitlab.cern.ch/dmonk/emputils/commits/master)

# emputils
A utility package for working with the EMP framework

## Installation
```
pip install emputils
```

## PatternGenerator
A class for generating pattern files.
### Example
First, define a function to generate data:
```python
def generate():
    frames = []
    for i in range(200):
        frames.append("1v{:016x}.format(i)")
    return frames
```
Then generate pattern file
```python
from emputils import PatternGenerator

pg = PatternGenerator(range(40,58))
for i, link in enumerate(pg.links.columns):
    pg.buildLink(link, generate())
pg.writeToFile("pattern.txt")
```