From 1951867323257e089e8ed7518fd1b2cdb002f8e4 Mon Sep 17 00:00:00 2001 From: Zhang Shitian Date: Wed, 24 Feb 2021 16:24:16 +0800 Subject: [PATCH] fix `TBHistogram` (#90) * :bug: fix `TBHistogram` `name` is now correctly sent * bump version to v"0.1.15" --- Project.toml | 2 +- src/logger_dispatch_overrides.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 3098ccb0..b3db98ee 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TensorBoardLogger" uuid = "899adc3e-224a-11e9-021f-63837185c80f" authors = ["Filippo Vicentini "] -version = "0.1.14" +version = "0.1.15" [deps] CRC32c = "8bf52ea8-c179-5cab-976a-9e18b702a9bc" diff --git a/src/logger_dispatch_overrides.jl b/src/logger_dispatch_overrides.jl index 9396911c..1eb4af1c 100644 --- a/src/logger_dispatch_overrides.jl +++ b/src/logger_dispatch_overrides.jl @@ -193,7 +193,7 @@ end content(x::TBHistogram) = x.data preprocess(name, val::TBHistogram{T,N}, data) where {T<:Complex,N} = push!(data, name*"/re"=>TBHistogram(real.(content(val))), name*"/im"=>TBHistogram(imag.(content(val)))) -preprocess(name, val::TBHistogram, data) = preprocess(data, fit(Histogram, val.data), data) +preprocess(name, val::TBHistogram, data) = preprocess(name, fit(Histogram, val.data), data) """ TBVector(data)