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",