Skip to content

Commit

Permalink
correct generate_point_in_bounds bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pszufe committed Jan 9, 2022
1 parent aaf89af commit 261987c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
@@ -1,7 +1,7 @@
name = "OpenStreetMapX"
uuid = "86cd37e6-c0ff-550b-95fe-21d72c8d4fc9"
authors = ["Przemyslaw Szufel <pszufe@gmail.com>", "Bartosz Pankratz <bartosz.pankratz@gmail.com>", "Anna Szczurek <annaszczurek2@gmail.com>", "Bogumil Kaminski <bogumil.kaminski@gmail.com>", "Pawel Pralat <pralat@ryerson.ca>"]
version = "0.3.0"
version = "0.3.1"

[deps]
CodecZlib = "944b1d66-785c-5afd-91f1-9de20f533193"
Expand Down
2 changes: 1 addition & 1 deletion src/routing.jl
Expand Up @@ -401,7 +401,7 @@ function generate_point_in_bounds(rng::AbstractRNG, m::MapData)
end

function generate_point_in_bounds(m::MapData)
generate_point_in_bounds(Random._GLOBAL_RNG, m)
generate_point_in_bounds(Random.GLOBAL_RNG, m)
end


Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Expand Up @@ -8,6 +8,7 @@ import Graphs

@testset "maps" begin
@test length(m.nodes) == 9032
@test eltype(generate_point_in_bounds(m)) <: Float64
rng = StableRNGs.StableRNG(1234)
pA = generate_point_in_bounds(rng, m)
@test all(isapprox.(pA,(39.52679926947162, -119.7400090256387)))
Expand Down

2 comments on commit 261987c

@pszufe
Copy link
Owner Author

@pszufe pszufe commented on 261987c Jan 9, 2022

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/51978

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.3.1 -m "<description of version>" 261987ce7c5b424eff4184324cbe99f347bd7d1f
git push origin v0.3.1

Please sign in to comment.