From d6c5788ed28d0f96b866b9dcf2cc073a666598b7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 28 Mar 2022 20:38:41 +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/Statistics.ipynb | 2 +- notebooks/Supplementary-Figure-1.ipynb | 2 +- 3 files changed, 3 insertions(+), 3 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/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",