Skip to content

Commit

Permalink
MAINT: update TR-028 to pdg v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Sep 30, 2024
1 parent 6bb3c92 commit 3580cfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/report/028.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"outputs": [],
"source": [
"%pip install -q pdg==0.0.6 tqdm==4.66.2"
"%pip install -q pdg==0.1.2 tqdm==4.66.5"
]
},
{
Expand Down Expand Up @@ -244,11 +244,13 @@
},
"outputs": [],
"source": [
"from pdg.errors import PdgAmbiguousValueError, PdgNoDataError\n",
"\n",
"for initial_state, final_state in sorted(equal_state_3body_decays):\n",
" try:\n",
" for name in (initial_state, *final_state):\n",
" PDG.get_particle_by_name(name)\n",
" except ValueError:\n",
" except (PdgAmbiguousValueError, PdgNoDataError):\n",
" pass\n",
" else:\n",
" print(f\"{initial_state:>20} → {' '.join(final_state)}\")"
Expand Down Expand Up @@ -321,7 +323,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.14"
"version": "3.12.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 3580cfb

Please sign in to comment.