Skip to content

circuitpython-ulab's arctan2 function returns an 1-element array instead of a float #6692

@thetazero

Description

@thetazero

CircuitPython version

Adafruit CircuitPython 7.2.0-alpha.2-12-ga50b0580b-dirty on 2022-02-16; PyCubedMini with samd51J20

Code/REPL

from ulab import numpy as np
np.arctan2(3,1)

Behavior

array([1.24905], dtype=float32)

Description

  • Should just return a float, not an array.
  • In numpy it returns a float as expected

Additional information

Happy to help if someone points me in the right direction.

Metadata

Metadata

Assignees

Labels

bugulabRelated to the ulab module

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions