Converting normalized vector to euler angles

Hi guys!

I’m trying to convert this piece of Python code to CHOPs (to achieve better performance):

tdu.Quaternion(tdu.Vector(0, 1, 0), my_normalized_vector).eulerAngles(order='xyz')

According to docs, Angle CHOP should do this (two vectors input, degrees output), but I’m getting different results here with rz always being -90 or 90:

angle_chop

What am I missing?