Skip to content

Commit

Permalink
add brainunit.Dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jun 12, 2024
1 parent ead9ea6 commit 02f5227
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brainunit/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
'Quantity',
'Unit',
'UnitRegistry',
'Dimension',
'DIMENSIONLESS',
'DimensionMismatchError',
'get_or_create_dimension',
Expand Down Expand Up @@ -458,6 +459,7 @@ def get_or_create_dimension(*args, **kwds):
return new_dim


'''The dimensionless unit, used for quantities without a unit.'''
DIMENSIONLESS = Dimension((0, 0, 0, 0, 0, 0, 0))
_dimensions = {(0, 0, 0, 0, 0, 0, 0): DIMENSIONLESS}

Expand Down

0 comments on commit 02f5227

Please sign in to comment.