Testing add_poisson_drive() with {"rate_constant" = 2, "cell_specific"=True, "n_drive_cells" = "n_cells"} yields a TypeError, but not with {"rate_constant" = 2.0, "cell_specific"=True, "n_drive_cells" = "n_cells"}. This is related to #662
event_times = np.array([])
if drive_type == 'poisson':
if target_type == 'any':
rate_constant = dynamics['rate_constant']
> elif target_type in dynamics['rate_constant']:
E TypeError: argument of type 'int' is not iterable
hnn_core/drives.py:284: TypeError
Testing add_poisson_drive() with {"rate_constant" = 2, "cell_specific"=True, "n_drive_cells" = "n_cells"} yields a TypeError, but not with {"rate_constant" = 2.0, "cell_specific"=True, "n_drive_cells" = "n_cells"}. This is related to #662