fixes issue #353 and adds a test #580
Annotations
16 errors and 18 warnings
/home/runner/work/pyroomacoustics/pyroomacoustics/pyroomacoustics/tests/test_issue_353.py#L12
offset and an array size check would fail.
Converting the delay time array to float32 before creating the rir array
solved the issue.
"""
+
import numpy as np
import pyroomacoustics as pra
def test_issue_353():
- room_dims = np.array([10., 10., 10.])
+ room_dims = np.array([10.0, 10.0, 10.0])
room = pra.ShoeBox(
- room_dims,
- fs=24000,
- materials=None,
- max_order=22,
- use_rand_ism=False
+ room_dims, fs=24000, materials=None, max_order=22, use_rand_ism=False
)
- source = np.array([[6.35551912],[4.33308523], [3.69586303]])
+ source = np.array([[6.35551912], [4.33308523], [3.69586303]])
room.add_source(source)
mic_array_in_room = np.array(
[
[1.5205189, 1.49366285, 1.73302404, 1.67847898],
[4.68430529, 4.76250254, 4.67956424, 4.60702604],
- [2.68214263, 2.7980202, 2.55341851, 2.72701718]
+ [2.68214263, 2.7980202, 2.55341851, 2.72701718],
]
)
room.add_microphone_array(mic_array_in_room)
room.compute_rir()
|
build (ubuntu-latest, 3.10)
Process completed with exit code 1.
|
build (ubuntu-latest, 3.9)
Process completed with exit code 1.
|
build (ubuntu-latest, 3.11)
Process completed with exit code 1.
|
build (ubuntu-latest, 3.12)
Process completed with exit code 1.
|
build (macos-13, 3.9)
Process completed with exit code 1.
|
build (macos-13, 3.10)
Process completed with exit code 1.
|
build (macos-13, 3.11)
Process completed with exit code 1.
|
build (macos-13, 3.12)
Process completed with exit code 1.
|
build (macos-latest, 3.10)
Process completed with exit code 1.
|
build (macos-latest, 3.11)
Process completed with exit code 1.
|
build (windows-latest, 3.10)
Process completed with exit code 1.
|
build (windows-latest, 3.9)
Process completed with exit code 1.
|
build (windows-latest, 3.11)
Process completed with exit code 1.
|
build (windows-latest, 3.12)
Process completed with exit code 1.
|
build (macos-latest, 3.12)
Process completed with exit code 1.
|
build (ubuntu-latest, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (ubuntu-latest, 3.9)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (ubuntu-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (ubuntu-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-13, 3.9)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-13, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-13, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (ubuntu-latest, 3.8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-13, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-latest, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-13, 3.8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (windows-latest, 3.10)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (windows-latest, 3.9)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (windows-latest, 3.11)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (windows-latest, 3.8)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (windows-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build (macos-latest, 3.12)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|