Skip to content

Commit

Permalink
Uniformity
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp authored Feb 29, 2024
1 parent 9809cce commit 1bca97e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vector/_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -3194,8 +3194,8 @@ def to_Vector3D(

l_value = 0.0
l_type: type[Longitudinal] = LongitudinalZ
if any(coord is not None for coord in [z, pz]):
l_value = next(coord for coord in [z, pz] if coord is not None)
if any(coord is not None for coord in (z, pz)):
l_value = next(coord for coord in (z, pz) if coord is not None)
elif eta is not None:
l_value = eta
l_type = LongitudinalEta
Expand Down Expand Up @@ -3261,8 +3261,8 @@ def to_Vector4D(

l_value = 0.0
l_type: type[Longitudinal] = LongitudinalZ
if any(coord is not None for coord in [z, pz]):
l_value = next(coord for coord in [z, pz] if coord is not None)
if any(coord is not None for coord in (z, pz)):
l_value = next(coord for coord in (z, pz) if coord is not None)
elif eta is not None:
l_value = eta
l_type = LongitudinalEta
Expand Down

0 comments on commit 1bca97e

Please sign in to comment.