Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Nov 13, 2020
1 parent 2202f61 commit e9dd9c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "MonteCarloMeasurements"
uuid = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
authors = ["baggepinnen <[email protected]>"]
version = "0.9.9"
version = "0.9.10"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
4 changes: 2 additions & 2 deletions src/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ end
m = mean.(y)
label --> "Mean with $q quantile"
Q = quantiles(y, q)
if y isa Matrix
if y isa AbstractMatrix
for c in 1:size(y,2)
@series begin
yerror := (Q[1][:,c], Q[2][:,c])
Expand Down Expand Up @@ -63,7 +63,7 @@ end
N = length(selected)
label --> ""
seriesalpha --> 1/log(N)
if y isa Matrix
if y isa AbstractMatrix
for c in 1:size(y,2)
m = Matrix(y[:,c])'
@series to1series(x, m[:, selected])
Expand Down
3 changes: 3 additions & 0 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ for PT in ParticleSymbols
$PT(v::Vector) = $PT{eltype(v),length(v)}(v)

function $PT{T,N}(n::Real) where {T,N} # This constructor is potentially dangerous, replace with convert?
if n isa AbstractParticles
return convert($PT{T,N}, n)
end
v = fill(n,N)
$PT{T,N}(v)
end
Expand Down

0 comments on commit e9dd9c4

Please sign in to comment.