k-wave-python icon indicating copy to clipboard operation
k-wave-python copied to clipboard

[BUG] Can't modify t_array

Open djps opened this issue 8 months ago • 0 comments

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

djps avatar May 09 '25 10:05 djps