Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #653 from JuliaPlots/timholy-teh/fileiosave
Browse files Browse the repository at this point in the history
Timholy teh/fileiosave
  • Loading branch information
SimonDanisch authored Mar 8, 2021
2 parents 1b82d38 + 5cddacf commit 5f4354c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "AbstractPlotting"
uuid = "537997a7-5e4e-5d89-9595-2241ea00577e"
authors = ["Simon Danisch", "Julius Krumbiegel"]
version = "0.15.23"
version = "0.15.24"

[deps]
Animations = "27a7e980-b3e6-11e9-2bcd-0b925532e340"
Expand Down Expand Up @@ -60,7 +60,7 @@ FreeType = "3.0"
FreeTypeAbstraction = "0.8"
GeometryBasics = "0.3.5"
GridLayoutBase = "0.5"
ImageIO = "0.2, 0.3, 0.4"
ImageIO = "0.2, 0.3, 0.4, 0.5"
IntervalSets = "0.3, 0.4, 0.5"
Isoband = "0.1"
KernelDensity = "0.5, 0.6"
Expand Down
3 changes: 1 addition & 2 deletions src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Save a `Scene` with the specified filename and format.
- `px_per_unit`: The size of one scene unit in `px` when exporting to a bitmap format. This provides a mechanism to export the same scene with higher or lower resolution.
"""
function FileIO.save(
f::FileIO.File, fig::FigureLike;
filename, fig::FigureLike;
resolution = size(get_scene(fig)),
pt_per_unit = 1.0,
px_per_unit = 1.0,
Expand All @@ -237,7 +237,6 @@ function FileIO.save(
# But otherwise we could get a filetype :UNKNOWN from a corrupt existing file
# (from an error during save, e.g.), therefore we don't want to rely on the
# type readout from an existing file.
filename = FileIO.filename(f)
isfile(filename) && rm(filename)
# query the filetype only from the file extension
F = filetype(FileIO.query(filename))
Expand Down
1 change: 0 additions & 1 deletion test/ReferenceTests/src/ReferenceTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ using Downloads
using Pkg.TOML
using Statistics


basedir(files...) = normpath(joinpath(@__DIR__, "..", files...))
assetpath(files...) = basedir("assets", files...)
loadasset(files...) = FileIO.load(assetpath(files...))
Expand Down
2 changes: 2 additions & 0 deletions test/unit_tests/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using AbstractPlotting: volume

@testset "Unit tests" begin
@testset "#659 Volume errors if data is not a cube" begin
fig, ax, vplot = volume(1:8, 1:8, 1:10, rand(8, 8, 10))
Expand Down

2 comments on commit 5f4354c

@SimonDanisch
Copy link
Member 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/31506

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.15.24 -m "<description of version>" 5f4354c669104064f5e849fb6e7eec96b3af91b1
git push origin v0.15.24

Please sign in to comment.