Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.9', '3.11', '3.13', '3.14']
python-version: ['3.10', '3.12', '3.14']
include:
- {os: macos-15-intel, python-version: '3.9'}
- {os: macos-latest, python-version: '3.13'}
- {os: macos-15-intel, python-version: '3.10'}
- {os: macos-latest, python-version: '3.14'}
- {os: windows-latest, python-version: '3.9'}
- {os: windows-latest, python-version: '3.11'}
- {os: windows-latest, python-version: '3.13'}
- {os: windows-latest, python-version: '3.14'}

steps:
- uses: actions/checkout@v6
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ pip install decaylanguage

You can use a virtual environment through pipenv or with `--user` if you know
what those are. [Python
3.9+](http://docs.python-guide.org/en/latest/starting/installation) supported
(see version 0.14 for Python 3.6 support, 0.18 for Python 3.7 and 3.8 support).
3.10+](http://docs.python-guide.org/en/latest/starting/installation) supported
(see version 0.14 for Python 3.6 support, 0.18 for Python 3.7 and 3.8 support,
0.20 for Python 3.8 support).

<details><summary>Dependencies: (click to expand)</summary><p>

Expand Down
4 changes: 2 additions & 2 deletions notebooks/AmpGen2GooFit D2K3p.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -287,7 +287,7 @@
}
],
"source": [
"for spintype, c in zip(SpinType, colors):\n",
"for spintype, c in zip(SpinType, colors, strict=False):\n",
" ps = [\n",
" c | format(str(p), \"11\")\n",
" for p in GooFitChain.all_particles\n",
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ build-backend = "hatchling.build"
name = "decaylanguage"
description = "A language to describe, manipulate and convert particle decays"
readme = "README.md"
requires-python = ">=3.9"
requires-python = ">=3.10"
authors = [
{ name = "Eduardo Rodrigues", email = "eduardo.rodrigues@cern.ch" },
{ name = "Henry Schreiner", email = "henryfs@princeton.edu" },
Expand All @@ -33,7 +33,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down
6 changes: 3 additions & 3 deletions src/decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
import os
import re
import warnings
from collections.abc import Iterable
from collections.abc import Callable, Iterable
from io import StringIO
from itertools import chain, zip_longest
from pathlib import Path
from typing import Any, Callable
from typing import Any

from hepunits import GeV
from lark import Lark, Token, Transformer, Tree, Visitor
Expand Down Expand Up @@ -995,7 +995,7 @@ def _align_items(

aligned.append(row)

return [sep.join(row) for row in zip(*aligned)]
return [sep.join(row) for row in zip(*aligned, strict=True)]

def build_decay_chains(
self,
Expand Down