Recent Releases of particle
particle - Release 0.25.4
Particleclass and submodules:- Fixed the creation of programmatic names for nuclei when the nucleus names end with a 0.
- Minor fix for the Higgs spin.
PDGIDclass method and related standalone functions:- Little improvement to the helper function _digit.
- CI and tests:
- Updates to pre-commit hooks and CI YAML files.
- Python
Published by eduardo-rodrigues 9 months ago
particle - Release 0.25.3
- CI and tests:
- Updates to pre-commit hooks and CI YAML files.
- Python
Published by eduardo-rodrigues 11 months ago
particle - Version 0.25.2
- Miscellaneous:
- Added support for Python 3.13.
- Added attestations.
- CI and tests:
- Faster CI with
uv. - Updates to pre-commit hooks and CI YAML files.
- Faster CI with
- Python
Published by eduardo-rodrigues over 1 year ago
particle - Version 0.25.1
Particleclass and submodules:- Ensure the proton and neutron are correctly handled whether using the particle representation (PDG IDs 2212 and 2112) or their representation as a nucleus.
- Data files:
- Added internal quantum numbers for several mesons.
- CI and tests:
- Codecov back working again - required tokens.
- Fix for ZipApp.
- Updates to pre-commit hooks and CI YAML files.
- Python
Published by eduardo-rodrigues over 1 year ago
particle - Version 0.25.0
- Data files:
- Added the 2024 PDG data table file, now default.
- Version 14 of package CSV data files:
- Since PDG 2024 information now the default.
- Removed superseded data files from 2021.
Particleclass and submodules:- Minor fix in conversion to particle names in HTML.
- CI and tests:
- Use the PyPI trusted publisher.
- Updates to pre-commit hooks and CI YAML files.
- Python
Published by eduardo-rodrigues over 1 year ago
particle - Version 0.24.0
Particleclass and submodules:- Removed deprecated methods.
- Data files:
- Fixed typo in the LaTeX name of Lambda(1405).
Miscellaneous:
- Added support for Python 3.12 and dropped support for Python 3.7.
- Started using AllContributors to acknowledge contributions explicitly.
CI and tests:
- Updates to pre-commit hooks and CI YAML files.
- Added support for pixi.
- Python
Published by eduardo-rodrigues almost 2 years ago
particle - Version 0.23.1
- Miscellaneous:
- Modernisation of Ruff configuration in
pyproject.toml.
- Modernisation of Ruff configuration in
- CI and tests:
- Updates to pre-commit hooks and CI YAML files.
- Python
Published by eduardo-rodrigues about 2 years ago
particle - Version 0.23.0
- Data files:
- Added the 2023 PDG data table file, now default.
- Version 13 of package CSV data files:
- Since PDG 2023 information now the default.
- Removed superseded data files from 2018-2020.
- Tests:
- Updates to pre-commit hooks.
- Python
Published by eduardo-rodrigues over 2 years ago
particle - Version 0.22.1
Particleclass and submodules:- Added support for providing spin for SUSY particles, with tests.
- Tests:
- Test added for particles that should be assigned None masses.
- Updates to pre-commit hooks.
- Python
Published by eduardo-rodrigues over 2 years ago
particle - Version 0.22.0
Particleclass and submodules:- Deprecated functions only used to find particles by AmpGen style of names.
Functionality moved to the
DecayLanguagepackage, the only place where it is needed.
- Deprecated functions only used to find particles by AmpGen style of names.
Functionality moved to the
- Data CSV files:
- Version 12 of package data files made default:
- Information on nuclei updated based on masses taken from package
periodictableversion 1.6.1. - Several Corsika7 IDs corrected.
- Otherwise same as version 11 files.
- Miscellaneous:
- Moved to
Rufffor configuration.
- Moved to
- Documentation:
- Various fixes in docstrings, notably because of particle property updates.
- README: minor updates/fixes.
- Tests:
- Doctests run separately in the CI.
- Updates to pre-commit hooks.
- Python
Published by eduardo-rodrigues almost 3 years ago
particle - Version 0.21.2
- Classes for MC particle identification codes and converters:
- Improvements and fixes in Corsika7 module.
- Full test coverage for Corsika7 module.
- Better test coverage for PDG ID related functions.
- Tests:
- Updates to pre-commit hooks.
- Python
Published by eduardo-rodrigues about 3 years ago
particle - Version 0.21.1
Particleclass and submodules:- Better test coverage.
PDGIDclass method and related standalone functions:- Minor code simplifications.
- Significant improvements to test coverage.
- Documentation:
- README: info added on how to create user-defined particles.
- Tests:
- Various improvements to the CI.
- Updates to pre-commit hooks and CI YAML files.
- Python
Published by eduardo-rodrigues about 3 years ago
particle - Version 0.21.0
- Data files:
- Added the 2022 PDG data table file, now default.
- Version 11 of package CSV data files:
- Since PDG 2022 information now the default.
- Classes for MC particle identification codes and converters:
- New
Corsika7IDclass. - New
Corsika72PDGIDBiMapbi-directional map between PDG and Corsika7 IDs.
- New
Particleclass,PDGIDlike classes and related standalone functions:- New method
Particle.from_nucleus(). - Extra documentation.
- New method
- Miscellaneous:
- Added a CITATION.cff file.
- Moved over to using hatchling.
- Added support for Python 3.11 and dropped support for Python 3.6.
- Adapted to Pandas 1.5 series (removal of deprecation warnings).
- Documentation:
- Minor README updates.
- Tests:
- Updates to pre-commit hooks and CI YAML files.
- Various improvements to the CI.
- Python
Published by henryiii over 3 years ago
particle - Version 0.20.1
Particleclass:- More tests of PDGID functions for special particles.
- Experiment-specific modules:
particle.lhcbsimplified.
- Miscellaneous:
- Minor cleanup and updates.
- Tests:
- Now included in the SDist (
MANIFEST.inupdated). - Pre-commit hooks updated.
- Now included in the SDist (
- Python
Published by eduardo-rodrigues almost 4 years ago
particle - Version 0.20.0
First Python 3 (3.6+) only version.
Particleclass:- Deprecated method
findmethod removed. Usefindallorfinditerinstead. - HTML Greek letters in particle names use hex code rather than entity name.
- Deprecated method
PDGIDclass method and related standalone functions:- Deprecated function
is_composite_quark_or_leptonremoved. Useis_excited_quark_or_leptoninstead.
- Deprecated function
- Documentation:
- README updated with info on the new experiment-specific module
particle.lhcb.
- README updated with info on the new experiment-specific module
- Miscellaneous:
- Support for Python 2 and Python 3.5 dropped.
- Full static typing implemented.
- Tests:
- Pre-commit hooks updated.
- Python
Published by eduardo-rodrigues about 4 years ago
particle - Version 0.16.3
Particleclass:- New class method
Particle.from_name.
- New class method
- New experiment-specific module:
- Module
particle.lhcbwith functions and mappings to deal with particle names in use in LHCb software. - Script
admin/dump_pdgid_to_lhcb.pyto generate the PDGID <-> LHCb name mapping (CSV file).
- Module
- Tests:
- Updated pre-commit hooks.
- Python
Published by eduardo-rodrigues about 4 years ago
particle - Version 0.16.2
Particleclass:- Faster
Particle.from_pdgid. - Better coverage of documentation for
Particlemethods, especially for newest methodfinditer. - Do not expose converters on high-level imports. Usage is hence
from particle.converters import ....
- Faster
- Tests:
- Resurrected tests on "all" platforms - Linux, macOS and Windows.
- Performance benchmark tests added for loading of particle property CSV files.
- Updated pre-commit hooks.
- Miscellaneous:
- Enforced
Blackformatting in notebooks.
- Enforced
- Python
Published by eduardo-rodrigues over 4 years ago
particle - Version 0.16.1
- Fixed a regression with the import time being unreasonably slow.
- Restore Python 3.5 support (no benefit to drop until 2.7 is dropped)
- Python
Published by henryiii over 4 years ago
particle - Version 0.16.0
Particleclass:- Added
finditer, which returns an iterator instead of a complete list likefindall. - Method
finddeprecated. It will be removed from version 0.17.0 onwards. Please use the more generalfindallmethod, or the newfinditermethod.
- Added
PDGIDclass:- New functions
is_sm_lepton,is_sm_quarkandis_excited_quark_or_leptonfor qualification of PDG IDs. is_composite_quark_or_leptondeprecated in favour of better namedis_excited_quark_or_lepton.is_leptonfixed to match the behaviour of the relatedis_quark, i.e. now excited leptons are not considered leptons (only SM and 4th generation leptons).- Improvements to documentation.
- Test suite enhanced accordingly.
- New functions
- Data files:
- Added the 2021 PDG data table .mcd file, now default.
- Version 10 of package CSV data files:
- Since PDG 2021 information now the default.
- Lifetimes of neutrinos set to infinity.
- Check added for duplicate entries in .mcd PDG data files.
- Tests:
- Tests of coverage added back, using Codecov on GHAs.
- CI enhanced, e.g. adding codespell, isort and flake8 checks tp pre-commit hooks.
- Miscellaneous:
- Support for Python 3.10 added.
- Several
FutureWarningwarnings fixed. - Code modernisation.
- Python
Published by eduardo-rodrigues over 4 years ago
particle - Version 0.15.1
Particleclass:- Bug fix in
Particle.to_dict.
- Bug fix in
- Tests:
- CI improvements.
- Azure pipelines removed since superseded by GitHub Actions.
- Miscellaneous:
- Code improvements thanks to Sourcery.
- Clean-up of unnecessary files/code.
- Python
Published by eduardo-rodrigues over 4 years ago
particle - Version 0.15.0
Particleclass:- Literals now defined for all particles in the loaded "database" CSV file, excluding nuclei.
- Defined and/or fixed the programmatic names for diquarks and SUSY particles.
- Data CSV files:
- Version 9 of package data files, with all antiparticle bars done with
\overlineinstead of\bar.
- Version 9 of package data files, with all antiparticle bars done with
- Miscellaneous:
- Added
latex_name_unicode()function to convert in particle names in LaTeX all greek letters by their unicode. - Added a
.zenodo.jsonfile to provide enhanced metadata for Zenodo. - CI updates for newer versions of Black and pre-commit.
- Added
- Python
Published by eduardo-rodrigues almost 5 years ago
particle - Version 0.14.1
- Code refactored in the CI by Sourcery.ai.
- Updates to versions of pre-commit hooks.
- Python
Published by eduardo-rodrigues almost 5 years ago
particle - Version 0.14.0
Particleclass:- Methods
Particle.to_listandParticle.to_dictenhanced.
- Methods
- Data CSV files:
- Version 8 of package data files, with fixed parities for antibaryons with undefined parity.
- Tests added to check if every particle is parsed and loaded correctly.
- Miscellaneous:
- Minor fix on static typing.
- Python
Published by eduardo-rodrigues about 5 years ago
particle - Version 0.13.1
- PDG ID:
- Minor simplifications in some PID functions.
Particleclass:- Test for
Particle.is_unflavoured_mesonadded.
- Test for
- Miscellaneous:
- Full static typing implemented.
- Python
Published by eduardo-rodrigues over 5 years ago
particle - Version 0.13.0
- Dependencies:
- hepunits >= 2.0.0.
- Tests:
- CI updates.
- Tests adapted to hepunits 2.0.0.
- Miscellaneous:
- Support for Python 3.9 added.
- Python
Published by eduardo-rodrigues over 5 years ago
particle - Version 0.12.0
Particleclass:Particle.dump_table()method removed and replaced with methodsParticle.to_dict()andParticle.to_list()(avoids strong coupling of packages).- Improve LaTeX particle names with
\primein them, to have correct HTML names for such particles. - Misleading/awkward
Particle.__int__method removed.
PDGIDclass:- New functions for qualification of PDG IDs:
is_quark.is_gauge_boson_or_higgs.is_sm_gauge_boson_or_higgs.is_generator_specific.is_technicolor.is_composite_quark_or_lepton.is_special_particle.- Several PDG ID qualification functions improved and/or enhanced, and minor bugs fixed for certain special particles.
- Data CSV files:
- Version 7 of package data files, with fixed LaTeX and HTML particle names.
- Added newly-ish defined particles for two-Higgs-doublet scenario and additional SU(2)xU(1) groups.
- Internal and user-irrelevant file
particle2008.csvfile removed.
- Tests:
- Test suite extended to deal with new PDG ID related functions.
- Documentation:
- Demo notebook slightly extended.
- More explanations in the functions qualifying PDG IDs.
- Miscellaneous:
- LaTeX-to-HTML particle name conversion function fixed to correctly
deal with names containing
\primeand/or\tilde.
- LaTeX-to-HTML particle name conversion function fixed to correctly
deal with names containing
- Python
Published by eduardo-rodrigues over 5 years ago
particle - Version 0.11.0
- Data files:
- Added the 2020 PDG data table .mcd file, now default.
- Version 6 of package CSV data files:
- Since PDG 2020 information now the default.
- Bug fix in parity of antibaryons.
- Documentation:
- README updated and expanded with info on custom data loading.
- Miscellaneous:
- ZipApp fix for releasing from web interface.
- Python
Published by eduardo-rodrigues over 5 years ago
particle - Version 0.10.0
Particleclass:- Several improvements, in particular to better deal with nuclei and diquarks.
- Speed of table loading improved.
- Particle enums extended for diquarks.
- Make particle literals available from top-level import.
- Print-outs made more consistent for missing and non-relevant particle properties.
- New tests added, some static type checking.
PDGIDclass:- PDG ID functions extended to correctly and consistently deal with nuclei.
- Functions now accept any SupportsInt, including Particle objects.
- Data CSV files:
- Version 5 of package data files:
- Diquarks added.
- Information in nuclei added! List and masses taken from
package
periodictableversion 1.5.2. - A couple of PDG ID numbers corrected (they had evolved in time).
- Converter script adapted to add to the produced data files particles not in the PDG data table, such as diquarks.
- Version 5 of package data files:
- Redesigned packaging system, GHA deployment.
- Miscellaneous:
- Files
*requirements.txtremoved from package - usepip install .[dev]instead - Warning from
collections.abcfixed, keeping compatibility with Python 2. - Deprecation warning in
attr.sfixed, requirement on minimal version ofattradded. - Version tags now follow standard
v#.#.#format. - Some Python warnings fixed, warnings enabled on testing
- Some initial work on static type hints.
- ZipApp fixes, simplifications and size reduction; ZipApp now
requires
python3to be available
- Files
- Python
Published by henryiii almost 6 years ago
particle - 0.9.0
Particleclass:- Robust handling of missing mass info.
- Data CSV files:
- Version 4 of package data files, with more particles added (mostly badly-known particles relevant for MC).
- Version header now also present in the
particleXXXX.csvfiles.
- Python
Published by eduardo-rodrigues about 6 years ago
particle - 0.8.0
- Changes in API:
GeantIDclass renamed toGeant3ID.
- Data CSV files:
- Version 3 (and 2) of package data files, which contain new entries and fixes for certain information in 2008 PDG extended data file.
- File
data/pdgid_to_geantid.csvrenamed todata/pdgid_to_geant3id.csv. - 2016 and 2017 PDG data files
mass_width_2016.mcdandmass_width_2017.mcdremoved.
- Tests:
- Tests for
converterssubmodule added. - Tests for
Geant3IDextended.
- Tests for
- Miscellaneous:
- Package files formatted with
Blackpackage.
- Package files formatted with
- Python
Published by eduardo-rodrigues about 6 years ago
particle - 0.7.1
Particleclass:- Isospin property returns a float.
- New property
is_unflavoured_meson. - More tests for P and C quantum numbers.
PDGIDclass:- Non-robust P and C properties removed.
- Data CSV files:
- Versioning introduced, see comment on first line of files.
- File
data/pdgid_to_evtgenname.csvextended with extra information. - More documentation.
- MC particle identification code converters:
- Core
BiMapclass simplified.
- Core
- Python
Published by eduardo-rodrigues over 6 years ago
particle - 0.7.0
- Enhancements to
Particleclass:- Dummy/unknown particle width and lifetime errors stored as
None. - More particle name and
PDGIDliterals for b-baryons. - Fix for the
D(s2)*(2573)LaTeX name. InvalidParticlemade available at top-level import.
- Dummy/unknown particle width and lifetime errors stored as
- Changes in API:
Particle.from_dec...()renamed toParticle.from_evtgen_name(...).
- MC particle identification code converters:
- Introduced directional maps
PDG2EvtGenNameMapandEvtGen2PDGNameMapbetween PDG and EvtGen names. - Conversions master file
data/conversions.csvadded. - Content of converters CSV files are now ordered.
- Introduced directional maps
- Documentation:
- README updated with new package functionality.
- Support for Python 3.4 removed and support for Python 3.8 added.
- Python
Published by eduardo-rodrigues over 6 years ago
particle - 0.6.0
- Introduction of classes for MC particle identification codes:
PythiaIDclass.GeantIDclass.
- Introduction of MC particle identification code converters:
- Generic
BiMapbi-bidirectional map class. Pythia2PDGIDBiMapbi-directional map between PDG and Pythia IDs.Geant2PDGIDBiMapbi-directional map between PDG and Geant IDs.EvtGenName2PDGIDBiMapbi-directional map between PDG IDs and EvtGen names.
- Generic
- New data files:
- File
data/pdgid_to_pythiaid.csvfor PDGID-PythiaID conversions. - File
data/pdgid_to_geantid.csvfor PDGID-GeantID conversions. - File
data/pdgid_to_evtgenname.csvfor PDG ID - EvtGen name conversions.
- File
- Python
Published by eduardo-rodrigues over 6 years ago
particle - 0.5.0
- Added the 2019 PDG data table, now default.
- Some poorly established particles not in the current PDG data files were previously erroneously made available. They have now been removed.
- Changes in API:
Particle.table()renamed toParticle.all().
- Enhancements to
Particleclass:- Numerous LaTeX particle names updated.
- Correctly deal with experimental width upper limits.
- Better display of lifetimes and widths.
- More tests.
- Demo notebook added, with a launcher for Binder in the README.
- Extra tests for particle searches.
- Python
Published by eduardo-rodrigues over 6 years ago
particle - 0.4.3
- Searches given a .dec decay file particle name:
- Speed-up of searches.
- Corner cases dealt with.
- Extended test suite for the
Particle.from_dec(...)method.
- Added Particle.isselfconjugate property.
- Bug fix in the PDG extended file from 2008 (in excited K, D and B meson names).
- Python
Published by henryiii almost 7 years ago
particle - 0.4.1
- Enhancements to
Particleclass:- Particles in .dec decay files dealt with, see
Particle.from_dec(...)method. - Loading tables made nicer, with more documentation.
- Particle charge is an entry of CSV files again, so that user particles are better dealt with.
- Particles in .dec decay files dealt with, see
- Bug fix for corner cases of using the package for non-valid particles.
- Work on documentation.
- PyPI badge created from https://img.shields.io.
- Python
Published by eduardo-rodrigues almost 7 years ago
particle - 0.4.0
- Changes in API:
- Rename
Particle.from_search/from_search_listtoParticle.find/findall. - Rename
Particle.fullname/nametoParticle.name/pdg_name. - Rename
Particle.bartoParticle.is_name_barred. - Rename
Particle.latextoParticle.latex_name.
- Rename
- Neutrinos added to the 2018 data files.
- Better print-out of particle properties.
- Better handling of particle names in HTML and LaTeX.
- Better handling of
Particle.empty(). - Test suite of
particleandpdgidsubmodules improved and extended. - Comprehensive package documentation (data files,
particleandpdgidsubmodules). - Added utility conversion function of particle names from LaTeX to HTML.
- Fixed LaTeX names of Delta(1232) baryons in
data\pdgid_to_latex.csvfile. - Several bug fixes.
- Simpler usage of
particle.particle.convert(non-public helper module).
- Python
Published by eduardo-rodrigues almost 7 years ago
particle - 0.3.0
- Particle search engine replaced with more intuitive and powerful version.
- Various improvements in the handling of particle names and literals.
- List of literals extended.
- More documentation in Particle class.
- More tests; table generation is now tested as well.
- Bug fixes in CSV data files and LaTeX naming updates.
- Added missing particles for 2018 data files.
- Python
Published by eduardo-rodrigues almost 7 years ago
particle - 0.2.1
Particlenow has direct lifetime and ctau access.ParticleandPDGIDliterals extended.- Better documentation.
- Several bugs fixed in
ParticleandPDGID. - The minimum version of dependencies are now more accurate.
The Scikit-HEP package hepunits is now a strict dependency.
- Python
Published by eduardo-rodrigues about 7 years ago
particle - 0.2.0 - 1st Scikit-HEP release
Particle provides a pythonic interface to the Particle Data Group (PDG) particle data tables and particle identification codes.
- Python
Published by eduardo-rodrigues about 7 years ago
particle - First release
Python version of HepPID.
- Python
Published by eduardo-rodrigues about 7 years ago