Skip to content

Commit

Permalink
DX: support only Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 16, 2024
1 parent cd50b03 commit 3067504
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 834 deletions.
11 changes: 2 additions & 9 deletions docs/widget.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@
},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"import sys\n",
"from collections import defaultdict\n",
"from typing import Self\n",
"\n",
"import ipywidgets as w\n",
"import matplotlib.pyplot as plt\n",
Expand All @@ -69,11 +67,6 @@
"from sympy.printing.precedence import PRECEDENCE\n",
"from sympy.printing.printer import Printer\n",
"\n",
"if sys.version_info < (3, 11):\n",
" from typing_extensions import Self\n",
"else:\n",
" from typing import Self\n",
"\n",
"\n",
"def _print_Indexed_latex(self, printer, *args): # noqa: N802\n",
" base = printer._print(self.base)\n",
Expand Down Expand Up @@ -444,7 +437,7 @@
" sign = l_str[6]\n",
" indices = eval(l_str[9:])\n",
" superscript = f\"<sup>({sign})</sup>\"\n",
" subscript = f\"<sub>{','.join(f'{i:+d}' if i else str(i) for i in indices)}</sub>\"\n",
" subscript = f\"<sub>{\",\".join(f\"{i:+d}\" if i else str(i) for i in indices)}</sub>\"\n",
" label = f\"[𝑙]{superscript}{subscript}\"\n",
" row = w.HBox([w.HTML(label), sliders[f\"{l_str}_mag\"], sliders[f\"{l_str}_phi\"]])\n",
" l_sliders[sign].append(row)\n",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies = [
description = "Investigation of symbolic amplitude models for the GlueX experiment"
license = {text = "BSD 3-Clause License"}
name = "gluex-amplitude"
requires-python = ">=3.9"
requires-python = ">=3.12"
version = "0.0.0"

[project.optional-dependencies]
Expand Down
Loading

0 comments on commit 3067504

Please sign in to comment.