Skip to content

Commit

Permalink
fixed isone, iszero for Measure
Browse files Browse the repository at this point in the history
  • Loading branch information
chakravala committed May 23, 2023
1 parent b8e1bf0 commit 9d0d9ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MeasureSystems"
uuid = "ea45d09e-59d0-491b-a101-09823c6a9fd4"
authors = ["Michael Reed"]
version = "0.1.7"
version = "0.1.8"

[deps]
Similitude = "d70e672a-ff44-4dfc-8031-4cc812d84922"
Expand Down
2 changes: 2 additions & 0 deletions src/MeasureSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ end
Base.show(io::IO,M::Measure{N}) where N = show(io,measure(M))
Base.one(::Measure) = 𝟏
Base.zero(::Measure) = 𝟏-𝟏
Base.isone(::Measure) = false
Base.iszero(::Measure) = false
FieldConstants.Constant(N::Measurement) = Constant{cache(N)}()
Base.inv(M::Measure) = cache(inv(measure(M)))
Base.sqrt(M::Measure) = cache(inv(measure(M)))
Expand Down

2 comments on commit 9d0d9ea

@chakravala
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/84054

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.8 -m "<description of version>" 9d0d9ea012da49c521ec199320a858fbbfc18b12
git push origin v0.1.8

Please sign in to comment.