Skip to main content

Module to work with data in an Experiment Directory Layout (EDL) structure

Project description

EDL - Experiment Directory Layout

QA PyPI - Version

This repository contains specifications for the "Experiment Directory Layout" (EDL) storage layout as used by the Syntalos data acquisition tool.

It also contains a Python module, edlio, to easily load and save data in an EDL structure for simplified raw experiment data management.

Check out the online documentation to learn more about this project!

Usage

You can install edlio using pip:

pip install edlio

You can then use it in your projects to load data, for example for a project that comntains some camera capture data in a videos group:

import sys
import edlio
import cv2 as cv


# load our data collection
dcoll = edlio.load('/path/to/edl/dataset/directory')

# display some information about this dataset
print('Loaded data collection {}, created on {}, recording length: {}'.format(
    dcoll.collection_idname,
    dcoll.time_created,
    dcoll.attributes.get('recording_length_msec', 'unknown')))

# get reference to the "videos" group
egroup = dcoll.group_by_name('videos')
if not egroup:
    print('This dataset did not contain a "videos" group!')
    sys.exit(1)

# get the "generic-camera" dataset
dset = egroup.dataset_by_name('generic-camera')
if not dset:
    print('Dataset "generic-camera" was not found in {}.'.format(dcoll.collection_idname))
    sys.exit(1)

# display all frames from this dataset and their timestamps (if any were found)
for frame in dset.read_data():
    print('Frame time: {}'.format(frame.time))
    cv.imshow(dset.name, frame.mat)

    if cv.waitKey(25) & 0xFF == ord('q'):
        break

You can find more examples in the documentation. We also provide full API documentation.

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

edlio-0.3.3.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

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

edlio-0.3.3-py3-none-any.whl (32.2 kB view details)

Uploaded Python 3

File details

Details for the file edlio-0.3.3.tar.gz.

File metadata

  • Download URL: edlio-0.3.3.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for edlio-0.3.3.tar.gz
Algorithm Hash digest
SHA256 fb842e00078b4d15ec53c798868f5544b011296356c421ae9dc5ece9a600c4c2
MD5 51b6abc8f14edded3bbefae0d66d8c18
BLAKE2b-256 f84d375ab7bf0a7073356bcbce715f7d9237008f2c408eef6952a8fbb2dd9ea5

See more details on using hashes here.

File details

Details for the file edlio-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: edlio-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 32.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for edlio-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d7ad5ecd13300a51a08aeb577f07be92d6247b80e5630b8ff6c840244a4635
MD5 95e98591b1f545baada763d006ac114c
BLAKE2b-256 3934a60d3908ec719431c46274e09ef4d93591d792031ca07a7a2cb20ea1a4f3

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