From 2373a2b647f08f843c5fbd536b09a189b9420184 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:39:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- notebooks/Figure-5.ipynb | 2 +- notebooks/Figure-6.ipynb | 1 - notebooks/Statistics.ipynb | 2 +- notebooks/Supplementary-Figure-1.ipynb | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/notebooks/Figure-5.ipynb b/notebooks/Figure-5.ipynb index fd06de5..2c7dfd0 100644 --- a/notebooks/Figure-5.ipynb +++ b/notebooks/Figure-5.ipynb @@ -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", diff --git a/notebooks/Figure-6.ipynb b/notebooks/Figure-6.ipynb index ed696e6..dc6533e 100644 --- a/notebooks/Figure-6.ipynb +++ b/notebooks/Figure-6.ipynb @@ -359,7 +359,6 @@ "\n", "\n", "for key in xys.keys():\n", - "\n", " ax[1].annotate(\n", " text=key,\n", " xy=xys[key],\n", diff --git a/notebooks/Statistics.ipynb b/notebooks/Statistics.ipynb index b6fad79..24f74ef 100644 --- a/notebooks/Statistics.ipynb +++ b/notebooks/Statistics.ipynb @@ -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", diff --git a/notebooks/Supplementary-Figure-1.ipynb b/notebooks/Supplementary-Figure-1.ipynb index 9e77ff5..884574e 100644 --- a/notebooks/Supplementary-Figure-1.ipynb +++ b/notebooks/Supplementary-Figure-1.ipynb @@ -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",