Skip to content

Commit

Permalink
Fix documentation (#13)
Browse files Browse the repository at this point in the history
* fix doc

* add `brainunit.Dimension`
  • Loading branch information
chaoming0625 authored Jun 12, 2024
1 parent 470e711 commit eac93bd
Show file tree
Hide file tree
Showing 2 changed files with 1,577 additions and 238 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
Loading

0 comments on commit eac93bd

Please sign in to comment.