Skip to content

Commit 8f2cc24

Browse files
committed
Move INDEX_TYPE back to symbolic_dimensions
1 parent 1fc8290 commit 8f2cc24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DynamicQuantities.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export ustrip, dimension
1111
export ulength, umass, utime, ucurrent, utemperature, uluminosity, uamount
1212
export uparse, @u_str, sym_uparse, @us_str, uexpand, uconvert
1313

14-
const INDEX_TYPE = UInt16
1514

1615
include("internal_utils.jl")
1716
include("fixed_rational.jl")

src/symbolic_dimensions.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import ..WriteOnceReadMany
2-
import ..INDEX_TYPE
32
import .Units: UNIT_SYMBOLS, UNIT_MAPPING, UNIT_VALUES
43
import .Constants: CONSTANT_SYMBOLS, CONSTANT_MAPPING, CONSTANT_VALUES
54

5+
66
disambiguate_constant_symbol(s) = s in UNIT_SYMBOLS ? Symbol(s, :_constant) : s
77

8+
const INDEX_TYPE = UInt16
89
# Prefer units over constants:
910
# For example, this means we can't have a symbolic Planck's constant,
1011
# as it is just "hours" (h), which is more common.

0 commit comments

Comments
 (0)