Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and jenshnielsen committed Mar 5, 2024
1 parent 9a1f3d2 commit f952fbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/broadbean/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ def __init__(
# Are the names valid names?
for name in namelist:
if not isinstance(name, str):
raise ValueError(
f"All segment names must be strings. Received {name}."
)
raise ValueError(f"All segment names must be strings. Received {name}.")
if name != "" and name[-1].isdigit():
raise ValueError(
"Segment names are not allowed to end"
Expand Down Expand Up @@ -647,7 +645,7 @@ def insertSegment(self, pos, func, args=(), dur=None, name=None, durs=None):
)
if func == "ensureaverage_fixed_level" and has_ensureavg:
raise ValueError(
"Can not have more than one \"ensureaverage\" segment in a blueprint."
'Can not have more than one "ensureaverage" segment in a blueprint.'
)

if durs is not None:
Expand Down
2 changes: 1 addition & 1 deletion src/broadbean/ripasso.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def applyInverseRCFilter(signal, SR, kind, f_cut, order, DCgain=1):

if kind not in ["HP", "LP"]:
raise ValueError(
"Wrong filter type. Please specify filter type as either \"HP\" or \"LP\"."
'Wrong filter type. Please specify filter type as either "HP" or "LP".'
)

if not DCgain > 0:
Expand Down

0 comments on commit f952fbd

Please sign in to comment.