Switches to using source directions computed as part of the image sou… #711
GitHub Actions / Black
failed
Dec 31, 2024 in 0s
1 error
Black found 1 error
Annotations
github-actions / Black
/home/runner/work/pyroomacoustics/pyroomacoustics/pyroomacoustics/room.py#L2235-L2246
# if we are here, this means even the direct path is not visible
# we set the visibility of the direct path as 0.
self.visibility.append(np.zeros((self.mic_array.M, 1), dtype=np.int32))
# We also need a fake array of directions as this is expected later in
# the code.
- source.directions = np.zeros((self.mic_array.M, self.dim, 1), dtype=np.float32)
+ source.directions = np.zeros(
+ (self.mic_array.M, self.dim, 1), dtype=np.float32
+ )
# Update the state
self.simulator_state["ism_done"] = True
def ray_tracing(self):
Loading