This addresses issue #662 and includes a test for adding poisson drives to test_drives.py.
The test also yields an error with {"rate_constant" = 2, "cell_specific"=True, "n_drive_cells" = "n_cells"}, but not with {"rate_constant" = 2.0, "cell_specific"=True, "n_drive_cells" = "n_cells"}. I'll open a separate bug for this?
Test output:
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
This addresses issue #662 and includes a test for adding poisson drives to test_drives.py.
The test also yields an error with {"rate_constant" = 2, "cell_specific"=True, "n_drive_cells" = "n_cells"}, but not with {"rate_constant" = 2.0, "cell_specific"=True, "n_drive_cells" = "n_cells"}. I'll open a separate bug for this?
Test output: