Hello,
I noticed an issue in the _set_probes function.
To get the number of contacts of the probe-s, this operation is performed :
number_of_device_channel_indices = np.max(list(device_channel_indices) + [0])
This only works if the contacts range from 0 to max_nb_of_contacts, which is not necessarly the case. I suggest to do the following:
number_of_device_channel_indice = sum(len(sublist) if isinstance(sublist, np.ndarray) else 1 for sublist in device_channel_indices)
Unfortunatly I won't have time to do a PR, but I hope this will be usefull !
Hello,
I noticed an issue in the
_set_probesfunction.To get the number of contacts of the probe-s, this operation is performed :
This only works if the contacts range from 0 to max_nb_of_contacts, which is not necessarly the case. I suggest to do the following:
Unfortunatly I won't have time to do a PR, but I hope this will be usefull !