Closed
Description
To produce this error, please run the following:
import numpy as np
import matplotlib.pyplot as plt
import sfs
xs = 0, 0, 0
omega = 2 * np.pi * 800
grid = sfs.util.xyz_grid([-1.75, 1.75], [-1.75, 1.75], 0, spacing=0.02)
p = sfs.mono.source.point(omega, xs, [], grid)
This results in
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sfs/mono/source.py", line 67, in point
r = np.linalg.norm(grid - x0)
File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 2116, in norm
x = x.astype(float)
ValueError: setting an array element with a sequence.
The code above comes from the Python examples in the SFS documentation, which was running fine 2 month ago.