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 8, 2024
1 parent 2bf82d4 commit d64f8f6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion notebooks/Figure-5.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"outputs": [],
"source": [
"def format_si(num, precision=0, suffixes=[\"\", \"K\", \"M\", \"G\", \"T\", \"P\"], show_suffix=False):\n",
" m = sum([abs(num / 1000.0 ** x) >= 1 for x in range(1, len(suffixes))])\n",
" m = sum([abs(num / 1000.0**x) >= 1 for x in range(1, len(suffixes))])\n",
" if show_suffix:\n",
" return f\"{num/1000.0**m:.{precision}f}{suffixes[m]}\"\n",
" else:\n",
Expand Down
1 change: 0 additions & 1 deletion notebooks/Figure-6.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,6 @@
"\n",
"\n",
"for key in xys.keys():\n",
"\n",
" ax[1].annotate(\n",
" text=key,\n",
" xy=xys[key],\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Statistics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"outputs": [],
"source": [
"def format_si(num, precision=1, suffixes=[\"\", \"K\", \"M\", \"G\", \"T\", \"P\"], hide_suffix=False):\n",
" m = sum([abs(num / 1000.0 ** x) >= 1 for x in range(1, len(suffixes))])\n",
" m = sum([abs(num / 1000.0**x) >= 1 for x in range(1, len(suffixes))])\n",
" if hide_suffix:\n",
" return f\"{num/1000.0**m:.{precision}f}\"\n",
" else:\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/Supplementary-Figure-1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"outputs": [],
"source": [
"def format_si(num, precision=0, suffixes=[\"\", \"K\", \"M\", \"G\", \"T\", \"P\"], show_suffix=False):\n",
" m = sum([abs(num / 1000.0 ** x) >= 1 for x in range(1, len(suffixes))])\n",
" m = sum([abs(num / 1000.0**x) >= 1 for x in range(1, len(suffixes))])\n",
" if show_suffix:\n",
" return f\"{num/1000.0**m:.{precision}f}{suffixes[m]}\"\n",
" else:\n",
Expand Down

0 comments on commit d64f8f6

Please sign in to comment.