Fix meaning of "masking" for plots (#2510)

This commit is contained in:
Paul Romano 2023-05-03 09:52:40 -05:00 committed by GitHub
parent 4248beff1b
commit 45006584ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 13 deletions

View file

@ -59,7 +59,7 @@ def _get_legend_label(this, type):
"""Gets a label for the element or nuclide or material and reaction plotted"""
if isinstance(this, str):
return f'{this} {type}'
elif this.name is '':
elif this.name == '':
return f'Material {this.id} {type}'
else:
return f'{this.name} {type}'