Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bsavitzky authored Jan 24, 2024
1 parent 80fabb1 commit cb76e24
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py4DSTEM/braggvectors/braggvector_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ def plot(
Parameters
----------
index : tuple[int,int] | list[int]
index for which Bragg vectors to plot
scan position for which Bragg vectors to plot
cal : str, optional
Choice to plot calibrated or raw Bragg vectors must be 'raw' or 'cal', by default 'cal'
returnfig : bool, optional
Expand All @@ -839,7 +839,8 @@ def plot(
tuple (figure, axes)
matplotlib figure, axes returned if `returnfig` is True
"""
assert cal.lower() in (
cal = cal.lower()
assert cal in (
"cal",
"raw",
), f"'cal' must be in ('cal', 'raw') {cal = } passed"
Expand Down

0 comments on commit cb76e24

Please sign in to comment.