You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is written in the docstring of the method .rotate of the class Probe that the axis is to be specified as a string:
axis : "xy" | "yz" | "xz" | None, default: None
Axis of rotation.
It must be None for 2D probes
It must be given for 3D probes
Howver, that leads to an error:
File "/home/tanguy.damart/virt_env/mozaik/lib/python3.8/site-packages/probeinterface/probe.py", line 1422, in _rotation_matrix_3d
axis = axis / np.linalg.norm(axis)
File "<__array_function__ internals>", line 180, in norm
File "/home/tanguy.damart/virt_env/mozaik/lib/python3.8/site-packages/numpy/linalg/linalg.py", line 2511, in norm
x = x.astype(float)
ValueError: could not convert string to float: 'xy'
Which hapens because the function _rotation_matrix_3d expects a list or array instead of a string:
Yeah indeed this is a bug. We should convert the string to the proper rotation axis (e.g., xy -> [0, 0, 1]). Alternatively we can ask the user to pass directly a 3D axis as input. What do you think?
It is written in the docstring of the method .rotate of the class Probe that the axis is to be specified as a string:
Howver, that leads to an error:
Which hapens because the function _rotation_matrix_3d expects a list or array instead of a string:
probeinterface/src/probeinterface/probe.py
Line 1409 in 86e5fa4
The text was updated successfully, but these errors were encountered: