From 65b0f44626de154d449ad3cebdfd842c0d62f8a6 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sun, 26 Apr 2020 20:57:56 +0200 Subject: [PATCH] move missing hdf5 type to backends --- src/backends.jl | 3 +++ src/backends/hdf5.jl | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/backends.jl b/src/backends.jl index 078468f6..e47085de 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -621,6 +621,9 @@ const HDF5PLOT_MAP_STR2TELEM = Dict{String, Type}() const HDF5PLOT_MAP_TELEM2STR = Dict{Type, String}() #Don't really like this global variable... Very hacky +mutable struct HDF5Plot_PlotRef + ref::Union{Plot, Nothing} +end const HDF5PLOT_PLOTREF = HDF5Plot_PlotRef(nothing) #Simple sub-structures that can just be written out using _hdf5plot_gwritefields: diff --git a/src/backends/hdf5.jl b/src/backends/hdf5.jl index 327d11c5..1dceedc0 100644 --- a/src/backends/hdf5.jl +++ b/src/backends/hdf5.jl @@ -37,10 +37,6 @@ import FixedPointNumbers: N0f8 #In core Julia struct HDF5PlotNative; end #Indentifies a data element that can natively be handled by HDF5 struct HDF5CTuple; end #Identifies a "complex" tuple structure -mutable struct HDF5Plot_PlotRef - ref::Union{Plot, Nothing} -end - #== ===============================================================================# is_marker_supported(::HDF5Backend, shape::Shape) = true