Skip to main content

No project description provided

Project description

# Rolling Window
## A generic rolling window function for analytics

Install with:
pip install rolling_window

(To be expanded on)

Example of use (see test files for some more details):

from dataclasses import dataclass
import random

class PressureData:
time: int
pressure: float

window = RollingWindow(window_type = 'sliding', datastructure=PressureData, sort=False, persistance=False, window_options=window_options)

for ii in range(0,N):
data = PressureData(time=ii, pressure=round(random.uniform(2,20),2) )
await rolling_window.add_data(id = window_id, data=data)
data_to_process = rolling_window.send(id=window_id)


when data is available to the processed 'data_to_process' will return a numpy representation of the data in a structured array

## License

This project is licensed under the MIT License

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rolling-window, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size rolling_window-0.1.2-py3-none-any.whl (7.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rolling_window-0.1.2.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page