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 Aug 9, 2024
1 parent 09d6d17 commit ee8fbc3
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions getting-started/dw-pair-conversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"td = oc.TimeDriver()\n",
"td.drive(system, t=0.2e-9, n=200, verbose=2)\n",
"\n",
"system.m.orientation.z.sel('z').mpl.scalar()"
"system.m.orientation.z.sel(\"z\").mpl.scalar()"
]
},
{
Expand Down Expand Up @@ -217,7 +217,7 @@
},
"outputs": [],
"source": [
"import micromagneticdata as mdata "
"import micromagneticdata as mdata"
]
},
{
Expand All @@ -239,7 +239,7 @@
},
"outputs": [],
"source": [
"data = mdata.Data('dw_pair_conversion')"
"data = mdata.Data(\"dw_pair_conversion\")"
]
},
{
Expand Down Expand Up @@ -419,7 +419,7 @@
}
],
"source": [
"data[0].m0.orientation.sel('z').z.mpl.scalar()"
"data[0].m0.orientation.sel(\"z\").z.mpl.scalar()"
]
},
{
Expand Down Expand Up @@ -477,7 +477,7 @@
}
],
"source": [
"data[0][0].orientation.sel('z').z.mpl.scalar()"
"data[0][0].orientation.sel(\"z\").z.mpl.scalar()"
]
},
{
Expand Down Expand Up @@ -570,7 +570,7 @@
}
],
"source": [
"time_drive[-1].orientation.sel('z').z.mpl.scalar()"
"time_drive[-1].orientation.sel(\"z\").z.mpl.scalar()"
]
},
{
Expand Down Expand Up @@ -1664,7 +1664,7 @@
}
],
"source": [
"time_drive.table.mpl(y=['E'])"
"time_drive.table.mpl(y=[\"E\"])"
]
},
{
Expand All @@ -1686,7 +1686,7 @@
}
],
"source": [
"time_drive.table.mpl(y=['mx', 'my', 'mz'])"
"time_drive.table.mpl(y=[\"mx\", \"my\", \"mz\"])"
]
},
{
Expand Down Expand Up @@ -1720,9 +1720,9 @@
],
"source": [
"final_magnetisation = time_drive[-1]\n",
"top_charge_last_step = df.tools.topological_charge_density(final_magnetisation.sel('z'))\n",
"top_charge_last_step = df.tools.topological_charge_density(final_magnetisation.sel(\"z\"))\n",
"\n",
"top_charge_last_step.mpl.scalar(cmap='Blues')"
"top_charge_last_step.mpl.scalar(cmap=\"Blues\")"
]
},
{
Expand All @@ -1743,7 +1743,8 @@
"outputs": [],
"source": [
"def top_charge_plane(m):\n",
" return df.tools.topological_charge_density(m.sel('z'))\n",
" return df.tools.topological_charge_density(m.sel(\"z\"))\n",
"\n",
"\n",
"top_charge = time_drive.register_callback(top_charge_plane)"
]
Expand Down Expand Up @@ -1856,7 +1857,7 @@
"c_min = top_charge_last_step.array.min()\n",
"c_max = top_charge_last_step.array.max()\n",
"\n",
"top_charge.hv.scalar(kdims=['x', 'y'], clim=(c_min, c_max))"
"top_charge.hv.scalar(kdims=[\"x\", \"y\"], clim=(c_min, c_max))"
]
},
{
Expand Down

0 comments on commit ee8fbc3

Please sign in to comment.