Skip to content

[python] Bug w/ np.array Quaternion parsing #26

Open
@lucas-bremond

Description

@lucas-bremond
q_B_ECI = Quaternion(np.array((0.0, 0.0, 0.0, 1.0)), Quaternion.Format.XYZS)

returns a [0.0, 0.0, 0.0, 0.0] quaternion.

Seems to be due to a faulty np.array -> Vector4d conversion.

Workaround is to use:

q_B_ECI = Quaternion.XYZS(0.0, 0.0, 0.0, 1.0)

instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions