Open djps opened 2 months ago
It appears that
https://github.com/waltsims/k-wave-python/blob/d675e2d192c96128f5755c8d17fcc5d77a691b7d/kwave/ksource.py#L62
has np.sum(val !=0)
which should be replaced by a statement with np.all() statement equivalent, as the setter overwrites things to None
when it shouldn't.
Describe the bug The logic of defining an initial pressure distribution is different from all other methods in that it can not be modified after being defined, throwing the error:
TypeError: 'NoneType' object does not support item assignment
for something likeThis would be fine for
ux
etc. There are ways to handle it, i.e.but the logic is confusing.