Skip to content

Commit

Permalink
Update mass table initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
robjmcgibbon committed Oct 8, 2024
1 parent 2496700 commit abd4ed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion swiftsimio/metadata/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ def __init__(self, base_mass_table: np.array, mass_units: unyt.unyt_quantity):

# TODO: Extract these names from the files themselves if possible.

for index, name in metadata.particle_types.particle_name_underscores.items():
for index, name in enumerate(
metadata.particle_types.particle_name_underscores.values()
):
try:
setattr(
self,
Expand Down

0 comments on commit abd4ed5

Please sign in to comment.