Skip to content

Commit

Permalink
MAINT: update test values to `particle==0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Sep 9, 2024
1 parent e10f20c commit f5b129f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions docs/usage/reaction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
"source": [
"stm.set_allowed_intermediate_particles(r\"f\\([02]\\)\", regex=True)\n",
"reaction = stm.find_solutions(problem_sets)\n",
"assert len(reaction.get_intermediate_particles().names) == 12"
"assert len(reaction.get_intermediate_particles().names) == 13"
]
},
{
Expand Down Expand Up @@ -604,7 +604,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.17"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/io/test_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ def test_serialization(
n_particles = len(particle_selection)
if skh_particle_version < "0.16":
assert n_particles == 181
else:
elif skh_particle_version < "0.25":
assert n_particles == 193
else:
assert n_particles == 194
asdict = io.asdict(particle_selection)
imported_collection = io.fromdict(asdict)
assert isinstance(imported_collection, ParticleCollection)
Expand Down
8 changes: 6 additions & 2 deletions tests/unit/test_particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,10 @@ def test_create_antiparticle_tilde(
assert len(anti_particles) == 165
elif skh_particle_version < "0.16":
assert len(anti_particles) == 172
else:
elif skh_particle_version < "0.25":
assert len(anti_particles) == 175
else:
assert len(anti_particles) == 176
for anti_particle in anti_particles:
particle_name = anti_particle.name.replace("~", "")
if "+" in particle_name:
Expand Down Expand Up @@ -447,8 +449,10 @@ def test_create_antiparticle_by_pid(
assert n_particles_with_neg_pid == 428
elif skh_particle_version < "0.16":
assert n_particles_with_neg_pid == 442
else:
elif skh_particle_version < "0.25":
assert n_particles_with_neg_pid == 454
else:
assert n_particles_with_neg_pid == 456


@pytest.mark.parametrize(
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/test_pdg.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ def test_pdg_size(pdg: ParticleCollection):
519, # particle==0.14-0.15
531, # particle==0.16-0.20
530, # particle==0.21-0.22
537, # particle==0.23
537, # particle==0.23-0.24
539, # particle==0.25
}
assert len(pdg.filter(lambda p: "~" in p.name)) in {
165, # particle==0.13
172, # particle==0.14, 0.15
175, # particle==0.16
175, # particle==0.16-0.24
176, # particle==0.25
}


Expand Down

0 comments on commit f5b129f

Please sign in to comment.