diff --git a/src/vector/backends/numpy.py b/src/vector/backends/numpy.py index 4a7acf8e..98a6f6ca 100644 --- a/src/vector/backends/numpy.py +++ b/src/vector/backends/numpy.py @@ -1778,8 +1778,23 @@ def longitudinal(self) -> LongitudinalNumpy: @property def temporal(self) -> TemporalNumpy: - """Returns the azimuthal type class for the given ``VectorNumpy4D`` object.""" - # TODO: Add an example here - see https://github.com/scikit-hep/vector/issues/194 + """ + Returns the temporal type class for the given ``VectorNumpy4D`` object. + + Example: + >>> import vector + >>> vec = vector.array( + ... [ + ... (1.1, 2.1, 3.1, 4.1), + ... (1.2, 2.2, 3.2, 4.2), + ... (1.3, 2.3, 3.3, 4.3), + ... (1.4, 2.4, 3.4, 4.4) + ... ], dtype=[("x", float), ("y", float), ("z", float), ("t", float)] + ... ) + >>> vec.temporal + TemporalNumpyT([(4.1,), (4.2,), (4.3,), (4.4,)], + dtype=[('t', '