Skip to content

Commit

Permalink
Use unit label instead of unit name
Browse files Browse the repository at this point in the history
Co-authored-by: Rob Applin <[email protected]>
  • Loading branch information
SilkeSchomann and robertapplin authored Feb 23, 2023
1 parent d9976eb commit 8b416ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mslice/models/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def is_momentum(unit):


def is_energy(unit):
return unit == 'DeltaE'
return unit == DELTA_E_LABEL


def are_units_equivalent(unit_lhs, unit_rhs):
Expand Down

0 comments on commit 8b416ce

Please sign in to comment.