Skip to content

Commit 268f418

Browse files
[pre-commit.ci] pre-commit autoupdate (#235)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nicolas Tessore <[email protected]>
1 parent 6d3b51c commit 268f418

File tree

3 files changed

+207
-67
lines changed

3 files changed

+207
-67
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.5.7
3+
rev: v0.9.6
44
hooks:
55
- id: ruff
66
args: [--fix]
77
- id: ruff-format
88
- repo: https://github.com/Lucas-C/pre-commit-hooks
9-
rev: v1.5.4
9+
rev: v1.5.5
1010
hooks:
1111
- id: forbid-tabs
1212
- repo: https://github.com/pappasam/toml-sort
13-
rev: v0.23.1
13+
rev: v0.24.2
1414
hooks:
1515
- id: toml-sort-fix
1616
- repo: https://github.com/pre-commit/mirrors-prettier
17-
rev: v3.0.3
17+
rev: v4.0.0-alpha.8
1818
hooks:
1919
- id: prettier
2020
- repo: https://github.com/pre-commit/pre-commit-hooks
21-
rev: v4.4.0
21+
rev: v5.0.0
2222
hooks:
2323
- id: check-case-conflict
2424
- id: check-docstring-first

examples/discrete.ipynb

+53-11
Original file line numberDiff line numberDiff line change
@@ -419,15 +419,21 @@
419419
" for j in range(1, i):\n",
420420
" ax[j - 1, i - 1].axis(\"off\")\n",
421421
" for j in range(i, 7):\n",
422-
" ax[j - 1, i - 1].plot(ell[1:], cls[\"POS\", \"POS\", i, j][1:], c=\"C0\", lw=1.5, zorder=3.0, alpha=0.5)\n",
422+
" ax[j - 1, i - 1].plot(\n",
423+
" ell[1:], cls[\"POS\", \"POS\", i, j][1:], c=\"C0\", lw=1.5, zorder=3.0, alpha=0.5\n",
424+
" )\n",
423425
" ax[j - 1, i - 1].axhline(0.0, c=\"k\", lw=0.8, zorder=-1)\n",
424426
" ax[j - 1, i - 1].tick_params(axis=\"both\", which=\"both\", direction=\"in\")\n",
425427
"\n",
426428
"ax[0, 0].set_xscale(\"log\")\n",
427429
"ax[0, 0].set_xlim(1 / 3, lmax * 3)\n",
428430
"ax[0, 0].xaxis.get_major_locator().set_params(numticks=99)\n",
429-
"ax[0, 0].xaxis.get_minor_locator().set_params(numticks=99, subs=np.arange(0.1, 1.0, 0.1))\n",
430-
"ax[0, 0].set_yscale(\"symlog\", linthresh=1e-7, linscale=0.45, subs=np.arange(0.1, 1.0, 0.1))\n",
431+
"ax[0, 0].xaxis.get_minor_locator().set_params(\n",
432+
" numticks=99, subs=np.arange(0.1, 1.0, 0.1)\n",
433+
")\n",
434+
"ax[0, 0].set_yscale(\n",
435+
" \"symlog\", linthresh=1e-7, linscale=0.45, subs=np.arange(0.1, 1.0, 0.1)\n",
436+
")\n",
431437
"ax[0, 0].set_ylim(-2e-7, 2e-6)\n",
432438
"\n",
433439
"fig.subplots_adjust(left=0.0, bottom=0.0, right=1.0, top=1.0, wspace=0.0, hspace=0.0)\n",
@@ -470,16 +476,34 @@
470476
" for j in range(1, i):\n",
471477
" ax[j - 1, i - 1].axis(\"off\")\n",
472478
" for j in range(i, 7):\n",
473-
" ax[j - 1, i - 1].plot(ell[2:], cls[\"SHE\", \"SHE\", i, j][0, 2:], c=\"C0\", lw=1.5, zorder=3.0, alpha=0.5)\n",
474-
" ax[j - 1, i - 1].plot(ell[2:], cls[\"SHE\", \"SHE\", i, j][1, 2:], c=\"C1\", lw=1.5, zorder=1.0, alpha=0.5)\n",
479+
" ax[j - 1, i - 1].plot(\n",
480+
" ell[2:],\n",
481+
" cls[\"SHE\", \"SHE\", i, j][0, 2:],\n",
482+
" c=\"C0\",\n",
483+
" lw=1.5,\n",
484+
" zorder=3.0,\n",
485+
" alpha=0.5,\n",
486+
" )\n",
487+
" ax[j - 1, i - 1].plot(\n",
488+
" ell[2:],\n",
489+
" cls[\"SHE\", \"SHE\", i, j][1, 2:],\n",
490+
" c=\"C1\",\n",
491+
" lw=1.5,\n",
492+
" zorder=1.0,\n",
493+
" alpha=0.5,\n",
494+
" )\n",
475495
" ax[j - 1, i - 1].axhline(0.0, c=\"k\", lw=0.8, zorder=-1)\n",
476496
" ax[j - 1, i - 1].tick_params(axis=\"both\", which=\"both\", direction=\"in\")\n",
477497
"\n",
478498
"ax[0, 0].set_xscale(\"log\")\n",
479499
"ax[0, 0].set_xlim(1 / 3, lmax * 3)\n",
480500
"ax[0, 0].xaxis.get_major_locator().set_params(numticks=99)\n",
481-
"ax[0, 0].xaxis.get_minor_locator().set_params(numticks=99, subs=np.arange(0.1, 1.0, 0.1))\n",
482-
"ax[0, 0].set_yscale(\"symlog\", linthresh=1e-10, linscale=0.45, subs=np.arange(0.1, 1.0, 0.1))\n",
501+
"ax[0, 0].xaxis.get_minor_locator().set_params(\n",
502+
" numticks=99, subs=np.arange(0.1, 1.0, 0.1)\n",
503+
")\n",
504+
"ax[0, 0].set_yscale(\n",
505+
" \"symlog\", linthresh=1e-10, linscale=0.45, subs=np.arange(0.1, 1.0, 0.1)\n",
506+
")\n",
483507
"ax[0, 0].set_ylim(-3e-10, 5e-9)\n",
484508
"\n",
485509
"fig.subplots_adjust(left=0.0, bottom=0.0, right=1.0, top=1.0, wspace=0.0, hspace=0.0)\n",
@@ -516,16 +540,34 @@
516540
"\n",
517541
"for i in range(1, 7):\n",
518542
" for j in range(1, 7):\n",
519-
" ax[j - 1, i - 1].plot(ell[2:], cls[\"POS\", \"SHE\", i, j][0, 2:], c=\"C0\", lw=1.5, zorder=3.0, alpha=0.5)\n",
520-
" ax[j - 1, i - 1].plot(ell[2:], cls[\"POS\", \"SHE\", i, j][1, 2:], c=\"C1\", lw=1.5, zorder=1.0, alpha=0.5)\n",
543+
" ax[j - 1, i - 1].plot(\n",
544+
" ell[2:],\n",
545+
" cls[\"POS\", \"SHE\", i, j][0, 2:],\n",
546+
" c=\"C0\",\n",
547+
" lw=1.5,\n",
548+
" zorder=3.0,\n",
549+
" alpha=0.5,\n",
550+
" )\n",
551+
" ax[j - 1, i - 1].plot(\n",
552+
" ell[2:],\n",
553+
" cls[\"POS\", \"SHE\", i, j][1, 2:],\n",
554+
" c=\"C1\",\n",
555+
" lw=1.5,\n",
556+
" zorder=1.0,\n",
557+
" alpha=0.5,\n",
558+
" )\n",
521559
" ax[j - 1, i - 1].axhline(0.0, c=\"k\", lw=0.8, zorder=-1)\n",
522560
" ax[j - 1, i - 1].tick_params(axis=\"both\", which=\"both\", direction=\"in\")\n",
523561
"\n",
524562
"ax[0, 0].set_xscale(\"log\")\n",
525563
"ax[0, 0].set_xlim(1 / 3, lmax * 3)\n",
526564
"ax[0, 0].xaxis.get_major_locator().set_params(numticks=99)\n",
527-
"ax[0, 0].xaxis.get_minor_locator().set_params(numticks=99, subs=np.arange(0.1, 1.0, 0.1))\n",
528-
"ax[0, 0].set_yscale(\"symlog\", linthresh=1e-9, linscale=0.45, subs=np.arange(0.1, 1.0, 0.1))\n",
565+
"ax[0, 0].xaxis.get_minor_locator().set_params(\n",
566+
" numticks=99, subs=np.arange(0.1, 1.0, 0.1)\n",
567+
")\n",
568+
"ax[0, 0].set_yscale(\n",
569+
" \"symlog\", linthresh=1e-9, linscale=0.45, subs=np.arange(0.1, 1.0, 0.1)\n",
570+
")\n",
529571
"ax[0, 0].set_ylim(-8e-8, 4e-8)\n",
530572
"\n",
531573
"fig.subplots_adjust(left=0.0, bottom=0.0, right=1.0, top=1.0, wspace=0.0, hspace=0.0)\n",

0 commit comments

Comments
 (0)