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 seems to have sth to do with the conversion to cartesian coordinates.
For some reason we don't jump into the setter method.
Not sure if we can fix it easily.
What I Did
import pyfar as pf
import numpy as np
c = pf.Coordinates.from_spherical_elevation([np.pi, np.pi/2], 0, 1)
c.azimuth[0] = 0
c.azimuth
array([3.14159265, 1.57079633])
import pyfar as pf
import numpy as np
c = pf.Coordinates([2, 3], 1, 1)
c.cartesian[0, 0] = 0
c.cartesian
array([[2., 1., 1.],
[3., 1., 1.]])
for x,y,z it works
import pyfar as pf
import numpy as np
c = pf.Coordinates([1, 2, 3], 0, 0)
c.x[0] = 0
c.x
array([0., 2., 3.])
This just works because we return the direct reference to _x here, which also might be very dangous.
The text was updated successfully, but these errors were encountered:
Description
It seems to have sth to do with the conversion to cartesian coordinates.
For some reason we don't jump into the setter method.
Not sure if we can fix it easily.
What I Did
array([3.14159265, 1.57079633])
array([[2., 1., 1.],
[3., 1., 1.]])
for x,y,z it works
array([0., 2., 3.])
This just works because we return the direct reference to _x here, which also might be very dangous.
The text was updated successfully, but these errors were encountered: