Skip to content

Commit

Permalink
Allow Image Source Method with random displacement in 2D (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrosseel authored May 25, 2023
1 parent 0ccf8ae commit 7c8c0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroomacoustics/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -2113,7 +2113,7 @@ def image_source_model(self):
max_disp = self.max_rand_disp

# add a random displacement to each cartesian coordinate
disp = np.random.uniform(-max_disp, max_disp, size=(3, n_images))
disp = np.random.uniform(-max_disp, max_disp, size=(self.dim, n_images))
source.images += disp

self.visibility.append(self.room_engine.visible_mics.copy())
Expand Down

0 comments on commit 7c8c0e3

Please sign in to comment.