Skip to content

Commit

Permalink
Update _base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Jul 13, 2024
1 parent bd6e898 commit 4f47c56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions brainunit/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3360,13 +3360,13 @@ def calculate_scale(
--------
>>> set_default_magnitude({'m': -3, 'kg': -9})
>>> calculate_scale(get_or_create_dimension(m=1))
-3
3
>>> calculate_scale(get_or_create_dimension(kg=1))
-9
9
>>> calculate_scale(get_or_create_dimension(m=1, kg=1))
-12
12
>>> calculate_scale(get_or_create_dimension(m=2, kg=-1))
3
-3
"""
for dim, magnitude in zip(unit._dims, _default_magnitude.values()):
scale -= dim * magnitude
Expand Down

0 comments on commit 4f47c56

Please sign in to comment.