docstr: Tests whether RoomSimulator.apply gives the same result as Roomsimulator.room.simulate() in the 1D case.
  
  This mainly tests that we took into consideration and compensated about the delays introduced when pyroomacoustics
  computes the room impulse response.
  
  See:[Create the Room Impulse Response](https://pyroomacoustics.readthedocs.io/en/pypi-release/pyroomacoustics.room.html?highlight=simulate#)
docstr_tok: ["Tests","whether","RoomSimulator.apply","gives","the","same","result","as","Roomsimulator.room.simulate","(",")","in","the","1D","case",".","This","mainly","tests","that","we","took","into","consideration","and","compensated","about","the","delays","introduced","when","pyroomacoustics","computes","the","room","impulse","response",".","See",":","[","Create","the","Room","Impulse","Response","]","(","https",":","\/\/pyroomacoustics.readthedocs.io\/en\/pypi-release\/pyroomacoustics.room.html","?","highlight=simulate","#",")"]
code: def test_simulate_apply_parity(self):
      """
      Tests whether RoomSimulator.apply gives the same result as Roomsimulator.room.simulate() in the 1D case.
  
      This mainly tests that we took into consideration and compensated about the delays introduced when pyroomacoustics
      computes the room impulse response.
  
      See:[Create the Room Impulse Response](https://pyroomacoustics.readthedocs.io/en/pypi-release/pyroomacoustics.room.html?highlight=simulate#)
      """
  
      random.seed(1)
      sample_rate = 16000
      samples = get_sinc_impulse(sample_rate, 10)
  
      augment = RoomSimulator()
      augmented_samples_apply = augment(
          samples=samples, sample_rate=sample_rate
      )
      augment.room.simulate()
      augmented_samples_simulate = (
          augment.room.mic_array.signals.astype(np.float32).flatten()
      )
  
      assert np.all(
          augmented_samples_apply == augmented_samples_simulate
      )
  
file_path: audiomentations/tests/test_room_simulator.py
imports: import random
  import numpy
  import pytest
  from audiomentations import RoomSimulator
label_desc: Use image node_id 1 for calling the TestRoomSimulatorTransform obj's underlying member method code with example usage: obj.test_simulate_apply_parity() without return types