Skip to main content

FireFinder+ event detection

Project description

firefinder

A small, standalone FireFinder+ implementation with the same core logic used in the lambda processor, plus lightweight preprocessing helpers.

Install

Local editable install while developing:

pip install -e .

Usage

import pandas as pd
from firefinder import prepare_timeseries, fire_detector_v2, events_from_boolean

df = pd.read_csv("metrics.csv")
df = prepare_timeseries(df, correction="false")
df = fire_detector_v2(df)

events = events_from_boolean(df)
print(events.head())

Testing

pip install -e .[test]
python -m pytest

Required columns

  • timestamp
  • value
  • sensor_type_id (required if correction="true")
  • mission_id (required if correction="true" for ambient correction)

Notes

  • prepare_timeseries mirrors the cleaning behavior from the original lambda processor.
  • correction="true" uses ambient sensor_type_id=9 and stove sensor_type_id=1 when computing ambient-corrected values.
  • You can pass a custom sensors mapping into prepare_timeseries to support additional stove sensor IDs.

Project details


Download files

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

Source Distribution

firefinder-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

firefinder-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file firefinder-0.1.0.tar.gz.

File metadata

  • Download URL: firefinder-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for firefinder-0.1.0.tar.gz
Algorithm Hash digest
SHA256 65de02d9946d3f0e4f3b7847f65947594b4aad4e96e8479ca59dd464eb98c361
MD5 7e4342009968415c49c07292482f2bef
BLAKE2b-256 069e32fdd6d1bd6779e0cec780f273e3056a177b14c885583bec170ac8698d47

See more details on using hashes here.

File details

Details for the file firefinder-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: firefinder-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for firefinder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a266eb4cf8b8883ce163650a42bb6913bbd854bc16228a643031f64c45dd11f
MD5 6d89997e13f6df4c013b6f71817c22e0
BLAKE2b-256 2771ebf0fe3faa95e8f36a5994cee76501b53213e9674aa6a8ea75c7627c8b3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page