Performs logical operations on event-style data.
Project description
Description
EventLogic is a lightweight library for performing logical operations on event-style or timestamp data. Logical operations on event-style data are commonplace in many fields. This library seeks to provide a generalized framework and methods for dealing with this data.
Installation
EventLogic can be installed with pip.
pip install --upgreade pip
pip install eventlogic
Examples
#There are 9 flavors of event interactions:
Case: Event: On Off Times:
1 a: |------| b: |------|
2 a: |------| b: |------|
3 a: |------| b: |------|
4 a: |------| b: |------|
5 a: |------| b: |------|
6 a: |------| b: |------|
7 a: |------| b: |------|
8 a: |------| b: |---|
9 a: |------| b: |----------|
#If we look at case 1:
a = Event(3,4)
b = Event(1,2)
a > b
a < b
a | b
#If we look at case 9:
a = Event(3,4)
b = Event(2,5)
a in b
a not in b
c = a & b
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file eventlogic-0.1.1.tar.gz.
File metadata
- Download URL: eventlogic-0.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
528b78eeebbe51a592e7f626d563a43b26e94f6e2d6fa9b3eec872ce6e2cfff8
|
|
| MD5 |
2aba83f00022d51290377033757d7977
|
|
| BLAKE2b-256 |
b27bbad6629c085890d80922ed6c5d829f08ab44de10f5f19b60dc4737bf2b43
|