Skip to content

Commit

Permalink
Use optional
Browse files Browse the repository at this point in the history
  • Loading branch information
harveydevereux committed Aug 21, 2024
1 parent 70932fe commit 478ab9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions janus_core/helpers/post_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def compute_vaf(
use_velocities: bool = False,
fft: bool = False,
index: SliceLike = (0, None, 1),
filter_atoms: MaybeSequence[MaybeSequence[None | int]] = ((None),),
filter_atoms: MaybeSequence[MaybeSequence[Optional[int]]] = ((None),),
) -> NDArray[float64]:
"""
Compute the velocity autocorrelation function (VAF) of `data`.
Expand All @@ -209,7 +209,7 @@ def compute_vaf(
index : SliceLike
Images to analyze as `start`, `stop`, `step`.
Default is all images.
filter_atoms : MaybeSequence[MaybeSequence[int]]
filter_atoms : MaybeSequence[MaybeSequence[Optional[int]]]
Compute the VAF averaged over subsets of the system.
Default is all atoms.
Expand Down

0 comments on commit 478ab9d

Please sign in to comment.