Skip to content

Commit

Permalink
verison bump
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Mar 19, 2020
1 parent e74d6a5 commit a5d083d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "OnlineStatsBase"
uuid = "925886fa-5bf2-5e8e-b522-a9147a512338"
version = "1.2.6"
version = "1.2.7"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
4 changes: 1 addition & 3 deletions src/part.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ end

Base.diff(a::Part, b::Part) = diff(a.domain, b.domain)



#-----------------------------------------------------------------------------#
#-----------------------------------------------------------------------------# Domains
#-----------------------------------------------------------------------------#
Expand Down Expand Up @@ -64,7 +62,7 @@ Base.show(io::IO, b::ClosedInterval) = print(io, "ClosedInterval: [$(b.first), $
Base.in(x, bucket::ClosedInterval) = bucket.first x bucket.last
Base.isless(a::ClosedInterval, b::ClosedInterval) = isless(a.first, b.first)
function Base.diff(a::ClosedInterval, b::ClosedInterval)
a < b ? _value(b.last) - _value(a.first) : _value(a.last) - _value(b.first)
a < b ? _value(b.first) - _value(a.last) : _value(a.first) - _value(b.last)
end

_value(x) = x
Expand Down

2 comments on commit a5d083d

@joshday
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
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/11222

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 Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.7 -m "<description of version>" a5d083d370ee07645e43ba57b9092f65ca96257b
git push origin v1.2.7

Please sign in to comment.