k-wave-python
k-wave-python copied to clipboard
[BUG] Can't modify t_array
Describe the bug
It is not possible to set t_array using the setter, as the condition which checks whether it is the string auto doesn't work if an array is provided.
To Reproduce Things like
temp = np.delete(self.kgrid.t_array, -1, axis=1)
kgrid.t_array = temp
throw errors:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Expected behavior
Expect the kgrid.t_array to change