Skip to content

Commit

Permalink
fix name in data plot
Browse files Browse the repository at this point in the history
  • Loading branch information
killiansheriff committed Nov 23, 2023
1 parent 9153a35 commit 24d8814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WarrenCowleyParameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, data: DataCollection) -> None:
def get_type_name(self, id: int) -> str:
"""Get the name of a particle type by its ID"""
particle_type = self.data.particles["Particle Type"].type_by_id(id)
return particle_type.name if particle_type else f"Type {id}"
return particle_type.name or f"Type {id}"

def create_visualization_tables(self, unique_types, nshells, wc_for_shells):
for m in range(nshells):
Expand Down

0 comments on commit 24d8814

Please sign in to comment.