Skip to content

Commit

Permalink
fix TBHistogram (#90)
Browse files Browse the repository at this point in the history
* 🐛 fix `TBHistogram`
`name` is now correctly sent

* bump version to v"0.1.15"
  • Loading branch information
Eggiverse authored Feb 24, 2021
1 parent 483bb2e commit 1951867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "TensorBoardLogger"
uuid = "899adc3e-224a-11e9-021f-63837185c80f"
authors = ["Filippo Vicentini <[email protected]>"]
version = "0.1.14"
version = "0.1.15"

[deps]
CRC32c = "8bf52ea8-c179-5cab-976a-9e18b702a9bc"
Expand Down
2 changes: 1 addition & 1 deletion src/logger_dispatch_overrides.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit 1951867

@PhilipVinc
Copy link
Member

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

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.1.15 -m "<description of version>" 1951867323257e089e8ed7518fd1b2cdb002f8e4
git push origin v0.1.15

Please sign in to comment.