Skip to content

Commit a12d87a

Browse files
committed
Merge tag 'v0.5.0' into constants
[Diff since v0.4.0](v0.4.0...v0.5.0) **Closed issues:** - Use `Int64 / C` as default (#20) **Merged pull requests:** - Make `AbstractQuantity` and `AbstractDimensions` (#24) (@MilesCranmer)
2 parents d868579 + c9a5daf commit a12d87a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DynamicQuantities"
22
uuid = "06fc5a27-2a28-4c7c-a15d-362465fb6821"
33
authors = ["MilesCranmer <miles.cranmer@gmail.com> and contributors"]
4-
version = "0.4.0"
4+
version = "0.5.0"
55

66
[deps]
77
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
@@ -15,6 +15,7 @@ DynamicQuantitiesUnitfulExt = "Unitful"
1515

1616
[compat]
1717
Requires = "1"
18+
Tricks = "0.1"
1819
Unitful = "1"
1920
julia = "1.6"
2021

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ abstract type AbstractQuantity{T,D} end
77
abstract type AbstractDimensions{R} end
88

99
"""
10-
Dimensions{R}
10+
Dimensions{R} <: AbstractDimensions{R}
1111
1212
A type representing the dimensions of a quantity, with each
1313
field giving the power of the corresponding dimension. For
@@ -51,7 +51,7 @@ end
5151
const DEFAULT_DIM_TYPE = Dimensions{DEFAULT_DIM_BASE_TYPE}
5252

5353
"""
54-
Quantity{T,D}
54+
Quantity{T,D} <: AbstractQuantity{T,D}
5555
5656
Physical quantity with value `value` of type `T` and dimensions `dimensions` of type `D`.
5757
For example, the velocity of an object with mass 1 kg and velocity

0 commit comments

Comments
 (0)