Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Room - Clarity function is broken | not working without bands #251

@ngautam0kaggel

Description

@ngautam0kaggel

Function call a/c to documentation:

  • acoustics.room.c50_from_file(file_name, bands=None)
  • acoustics.room.c80_from_file(file_name, bands=None)
  • acoustics.room.clarity(time, signal, fs, bands=None)

Run time error when calling these functions:

  • Sample function call:

acoustics.room.c50_from_file(files[0], bands=None)

  • Error:
    240         high = third_high(bands[0], bands[-1])
    241 
--> 242     c = np.zeros(bands.size)
    243     for band in range(bands.size):
    244         filtered_signal = bandpass(signal, low[band], high[band], fs, order=8)

AttributeError: 'NoneType' object has no attribute 'size'

Band is a mandatory parameter a/c to code but optional a/c to documents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions