Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp authored Oct 27, 2024
1 parent bfb104b commit 06fcee4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vector/backends/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ def azimuthal(self) -> AzimuthalNumpy:
Example:
>>> import vector
>>> vec_4d = vector.array(
>>> vec = vector.array(
... [
... (1.1, 2.1, 3.1, 4.1),
... (1.2, 2.2, 3.2, 4.2),
Expand All @@ -1750,7 +1750,7 @@ def azimuthal(self) -> AzimuthalNumpy:
... (1.5, 2.5, 3.5, 4.5)
... ], dtype=[("x", float), ("y", float), ("z", float), ("t", float)]
... )
>>> vec_4d.azimuthal
>>> vec.azimuthal
AzimuthalNumpyXY([(1.1, 2.1), (1.2, 2.2), (1.3, 2.3), (1.4, 2.4),
(1.5, 2.5)], dtype=[('x', '<f8'), ('y', '<f8')])
"""
Expand All @@ -1763,7 +1763,7 @@ def longitudinal(self) -> LongitudinalNumpy:
Example:
>>> import vector
>>> vec_4d = vector.array(
>>> vec = vector.array(
... [
... (1.1, 2.1, 3.1, 4.1),
... (1.2, 2.2, 3.2, 4.2),
Expand All @@ -1772,7 +1772,7 @@ def longitudinal(self) -> LongitudinalNumpy:
... (1.5, 2.5, 3.5, 4.5)
... ], dtype=[("x", float), ("y", float), ("z", float), ("t", float)]
... )
>>> vec_4d.longitudinal
>>> vec.longitudinal
LongitudinalNumpyZ([(3.1,), (3.2,), (3.3,), (3.4,), (3.5,)],
dtype=[('z', '<f8')])
"""
Expand Down

0 comments on commit 06fcee4

Please sign in to comment.