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] committed Jul 14, 2024
1 parent 7406065 commit 5a51064
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mumax3c/scripts/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def driver_script(driver, system, compute=None, ovf_format="bin4", **kwargs):
)
elif isinstance(zh_li_term.u, dict):
if isinstance(list(zh_li_term.u.values())[0], numbers.Real):
u_values = {key: (value, 0.0, 0.0) for key, value in zh_li_term.u.items()}
u_values = {
key: (value, 0.0, 0.0) for key, value in zh_li_term.u.items()
}
else:
u_values = zh_li_term.u
u = df.Field(
Expand Down

0 comments on commit 5a51064

Please sign in to comment.