Skip to main content

Loris

Travis

With loris you can read and write different file formats from neuromorphic cameras such as .aedat4, .dat, .es or .csv. Loris is also an amazing animal

Supported formats

version read write
.aedat4 4 ☑ ☐
.dat 1/2 ☑ ☐
.es 2.x ☑ ☑
.csv - ☑ ☐

Install

pip install loris

How to loris

Read a file, for example a .dat file and loop over all events
import loris
my_file = loris.read_file("/path/to/my-file.dat")
events = my_file['events']

for event in events:
    print("ts:", event.t, "x:", event.x, "y:", event.y, "p:", event.p)
Write events from an array to an .es file
ordering = "xytp"  # corresponds to the order in your array
loris.write_events_to_file(event_array, "/path/to/my-file.es", ordering)
Write structured events (with dtypes) to an .es file
loris.write_events_to_file(structured_event_array, "/path/to/my-file.es")

Windows test (for developers)

To make sure the library works on Windows (if you use macOS or Linux), follow these steps:

  1. Download Vagrant (https://www.vagrantup.com/)
  2. cd windows
  3. vagrant up (this will download a virtual machine and build the package)
  4. vargrant ssh (optional, to inspect the Windows VM)
  5. vagrant destroy -f (cleanup)

loris

Metadata

Release files for loris 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loris 0.5.3
File Size Uploaded Provenance
loris-0.5.3.tar.gz 8.9 MB Without provenance Details

Release files / loris-0.5.3.tar.gz

Download URL loris-0.5.3.tar.gz
Size 8.9 MB
Tags Source
SHA-256 checksum
How to use checksums
2c77d110182e6bb78a7eeffc0d7dfbc3d56883bb26717cb05ac46cabc3091669
BLAKE2b-256 checksum
How to use checksums
77b19161807338c220a11a9780c1c0c6afd021061dc263f86f7417971342d17d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/3.7.11

Security for loris 0.5.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page