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 Jan 14, 2025
1 parent eefaefa commit b58f145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mumax3c/scripts/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def driver_script(driver, system, compute=None, ovf_format="bin4", **kwargs):
if not gamma0:
mx3 += "doprecess = false\n"
else:
mx3 += f"gammaLL = {gamma0/mm.consts.mu0}\n"
mx3 += f"gammaLL = {gamma0 / mm.consts.mu0}\n"
mx3 += "doprecess = true\n"

if system.dynamics.get(type=mm.ZhangLi):
Expand Down Expand Up @@ -105,7 +105,7 @@ def driver_script(driver, system, compute=None, ovf_format="bin4", **kwargs):
t, n = kwargs["t"], kwargs["n"]

mx3 += f"for snap_counter:=0; snap_counter<{n}; snap_counter++{{\n"
mx3 += f" run({t/n})\n"
mx3 += f" run({t / n})\n"
mx3 += " save(m_full)\n"
mx3 += " tablesave()\n"
mx3 += "}"
Expand Down

0 comments on commit b58f145

Please sign in to comment.