Skip to content

Commit

Permalink
update documentation and make static method
Browse files Browse the repository at this point in the history
  • Loading branch information
engineerjoe440 committed Aug 3, 2023
1 parent 68b9509 commit f551188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electricpy/_phasor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class Phasor(complex):
"""
Phasor Class - An extension of the Python complex type for scientific work.
An extension of the Python `complex` type for work in polar coordinates.
This class can be used in place of, or alongside the standard `complex` type
in Python to represent complex numbers as phasors (magnitude and angle) for
Expand Down Expand Up @@ -85,6 +85,7 @@ def __round__(self, ndigits=0):
round(self.ang, ndigits=ndigits)
)

@staticmethod
def from_arraylike(arraylike):
"""
Phasor Constructor for Casting from Array Like Object.
Expand Down

0 comments on commit f551188

Please sign in to comment.