Skip to content

Commit d1ac981

Browse files
authored
Define one(::Type{Measurement{T}}) to return one(T) (#135)
* Define `one(::Type{Measurement{T}})` to return `one(T)` * Bring back `Unitful` + `QuadGK` test * Do not require `@inferred` on operations which can't be inferred anymore * Tighten back tolerance of QuadGK operations by requesting a specific `atol` * Update Manifest of benchmarks to get newer QuadGK version * Update `NEWS.md`
1 parent 4ffcdbf commit d1ac981

File tree

8 files changed

+307
-248
lines changed

8 files changed

+307
-248
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: julia-actions/setup-julia@v1
1313
with:
14-
version: '^1.6.0-0'
14+
version: '1.8.5'
1515
- name: Cache artifacts
1616
uses: actions/cache@v2
1717
with:

NEWS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# History of Measurements.jl
22

3+
## v2.9.0 (2023-03-22)
4+
5+
### New features
6+
7+
* New methods `value(::Missing)` and `uncertainty(::Missing)`
8+
([#127](https://github.com/JuliaPhysics/Measurements.jl/pull/127),
9+
[#128](https://github.com/JuliaPhysics/Measurements.jl/pull/128)).
10+
* `one(::Measurement{T})` now returns `one(T)`, instead of an instance of
11+
`Measurement{T}`
12+
([#134](https://github.com/JuliaPhysics/Measurements.jl/issues/134),
13+
[#135](https://github.com/JuliaPhysics/Measurements.jl/pull/135)). This
14+
change should not breaking (and hence the major version was not increased),
15+
unless you were relying on the previous incorrect return type of
16+
`one(::Measurement{T})`, which did not follow the precise semantic of the
17+
`one` function.
18+
319
## v2.8.0 (2022-09-01)
420

521
### New features

0 commit comments

Comments
 (0)