Skip to main content

Python package to download, unpack and process impulse response datasets.

Project description

PyPI PyPI DOI

irdl: Impulse Response Downloader

Python package to download, unpack and process impulse response datasets in a unified way.

Highlights

  • Returns data in a standardised format either
    • a dictionary of pyfar-objects (default)
    • a dictionary of NumPy arrays
    • a path to an HDF5-file for partial data access not having to load the entire data into memory
  • Leverages pooch to download impulse response datasets and verifies their integrity with a checksum.
  • Only downloads, extracts and processes what is actually needed.
  • Adds pooch-support for dSpace repositories, such as TU Berlin depositonce.
  • Data storage location can be set by IRDL_CACHE_DIR environmental variable (defaults to user cache directory).

Links

Usage (Python API)

The package can be included in a Python script as simple as:

from irdl import FabianDataset

data = FabianDataset.get(kind='measured', hato=10)
print(data)
{'impulse_response': time domain energy Signal:
(11950, 2) channels with 256 samples @ 44100.0 Hz sampling rate and none FFT normalization
,
 'receiver_coordinates': 2D Coordinates object with 2 points of cshape (2, 1)

Does not contain sampling weights,
 'source_coordinates': 1D Coordinates object with 11950 points of cshape (11950,)

Does not contain sampling weights}

Usage (CLI)

Once installed, the package provides a convenient command line script which can be invoked with irdl.

$ irdl --help
                                                                                                                        
 Usage: irdl [OPTIONS] COMMAND [ARGS]...                                                                                
                                                                                                                        
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                              │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.       │
│ --help                        Show this message and exit.                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ miracle   Download and extract the MIRACLE database from DepositOnce.                                                │
│ sriracha  Download and extract the SRIRACHA database from DepositOnce.                                               │
│ fabian    Download and extract the FABIAN HRTF Database from DepositOnce.                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

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

irdl-1.0.0b2.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

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

irdl-1.0.0b2-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file irdl-1.0.0b2.tar.gz.

File metadata

  • Download URL: irdl-1.0.0b2.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for irdl-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 de49d0e4fd4a2a34518bb866574901b30dd0d1b9fd5a300b3834125fd7e4e713
MD5 7a3aadf3971168966ba6b3ffef220be4
BLAKE2b-256 2ab1d6fad576e7b0a9563b1c28fd36564a7cd2fb8588efe4d3728a34a0e3a86b

See more details on using hashes here.

File details

Details for the file irdl-1.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: irdl-1.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for irdl-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 b670703f1712669ec42a70386a37152e0739429de5fe050dd3d6a972017468d4
MD5 b5e90c2d2982422121dd198d6b7c37df
BLAKE2b-256 b48f72d9c759431f73eb2bb2e1cad82e8ff0f2016c4245fe2858b8c671a11a67

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