Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Krastanov committed Dec 19, 2024
1 parent d08d9f6 commit 2ac8cb6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## v0.5.1-dev

- Add `classical_delay` and `quantum_delay` as keyword arguments to the `RegisterNet` constructor to set a default global network edge latency.
- Implement a feature to include a map as a background for plotting (`generate_map`).
- Plots of networks can now overlay real-world maps (see `generate_map`).

## v0.5.0 - 2024-10-16

Expand Down
4 changes: 2 additions & 2 deletions ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Makie, GeoMakie
using GeoMakie: GeoAxis, image!, poly!, naturalearth

"""
Generates a default map with country and state boundaries and returns a GeoAxis. The returned GeoAxis can be used as an input for registernetplot_axis.
Generates a default map with country and state boundaries and returns a GeoAxis. The returned GeoAxis can be used as an input for `registernetplot_axis`.
For borders, the optional `scale` parameter can be set to 10, 50, or 110, corresponding to Natural Earth resolutions of 1:10m, 1:50m, and 1:110m.
"""
Expand All @@ -27,4 +27,4 @@ function generate_map()
generate_map(fig[1, 1])

Check warning on line 27 in ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl

View check run for this annotation

Codecov / codecov/patch

ext/QuantumSavoryGeoMakie/QuantumSavoryGeoMakie.jl#L25-L27

Added lines #L25 - L27 were not covered by tests
end

end
end
3 changes: 2 additions & 1 deletion test/test_plotting_3_maps.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FileIO
using GeoMakie
using QuantumSavory

sizes = [2,3,5]
registers = Register[]
Expand Down Expand Up @@ -28,4 +29,4 @@ display(fig)
fig = Figure()
map_axis = generate_map(fig[1, 1])
_, _, plt, netobs = registernetplot_axis(map_axis, network, registercoords=coords)
save(File{format"PNG"}(mktemp()[1]), fig)
save(File{format"PNG"}(mktemp()[1]), fig)
1 change: 1 addition & 0 deletions test/test_plotting_gl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end
@testset "background map" begin
include("test_plotting_3_maps.jl")
end

@testset "data inspectors" begin # only available in GLMakie
# create a network of qubit registers
net = RegisterNet([Register(2),Register(3),Register(2),Register(5)])
Expand Down

0 comments on commit 2ac8cb6

Please sign in to comment.