Skip to content

Commit

Permalink
Fix flake8 complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Sep 30, 2024
1 parent d0013c2 commit 1e159b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def create_options_rst(filename, title, options_factory, *, exclude=None):
"OptionsFactory constructors in the hypnotoad source code. To change the "
"formatting, edit the ``create_options_rst()`` function in ``conf.py``.\n\n"
)
f.write(f"{title}\n{'='*len(title)}\n\n")
f.write(f"{title}\n{'=' * len(title)}\n\n")
tt = options_factory.get_help_table(as_Texttable=True)
tt.set_cols_width([62, 80, 20])
f.write(".. table::\n :widths: 20 75 5\n\n")
Expand Down
4 changes: 2 additions & 2 deletions hypnotoad/core/equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -4476,12 +4476,12 @@ def getSmoothMonotonicGridFunc(
"""
if grad_lower is not None and (upper - lower) * grad_lower < 0:
raise ValueError(
f"(upper-lower)={(upper-lower)} and grad_lower={grad_lower} have "
f"(upper-lower)={(upper - lower)} and grad_lower={grad_lower} have "
f"different signs: should both be increasing or both be decreasing."
)
if grad_upper is not None and (upper - lower) * grad_upper < 0:
raise ValueError(
f"(upper-lower)={(upper-lower)} and grad_upper={grad_upper} have "
f"(upper-lower)={(upper - lower)} and grad_upper={grad_upper} have "
f"different signs: should both be increasing or both be decreasing."
)

Expand Down

0 comments on commit 1e159b4

Please sign in to comment.