Skip to content

Commit c9f0c7d

Browse files
authored
Merge pull request #14 from Deduction42/DEV
Added support for "sign"
2 parents e1acf51 + 5340e2a commit c9f0c7d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
version:
2626
- '1.10'
2727
- '1.11'
28-
- 'pre'
28+
#- 'pre'
2929
os:
3030
- ubuntu-latest
3131
arch:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "FlexUnits"
22
uuid = "76e01b6b-c995-4ce6-8559-91e72a3d4e95"
33
authors = ["Ruben Gonzalez <[email protected]> and contributors"]
4-
version = "0.2.3"
4+
version = "0.2.4"
55

66
[compat]
77
julia = "1.10"

src/math.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ for f in (:isfinite, :isinf, :isnan, :isreal, :isempty, :one)
178178
@eval Base.$f(q::AbstractQuantity) = $f(ustrip(q))
179179
end
180180

181-
#Single-argument functions with dimensionless output that don't work with non-scalar units
182-
for f in (:iszero, :signbit, :angle)
181+
#Single-argument functions with dimensionless output that only work with scalar units (no offset)
182+
for f in (:iszero, :angle, :signbit, :sign)
183183
@eval Base.$f(q::AbstractQuantity) = (assert_scalar(unit(q)); $f(ustrip_base(q)))
184184
end
185185

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ julia --startup-file=no --depwarn=yes --threads=auto coverage.jl
1212
#To see the actual coverage in VSCode, install the Coverage Gutters extension
1313
#https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters
1414

15-
using Revise
15+
#using Revise
1616
using Test
1717
using BenchmarkTools
1818
using FlexUnits, .UnitRegistry

0 commit comments

Comments
 (0)