Skip to content

Commit

Permalink
prevent name conflict on Not
Browse files Browse the repository at this point in the history
  • Loading branch information
bgctw committed Oct 4, 2022
1 parent 59856e4 commit 2fa34ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/TwPrototypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export Chains_section, add_vars, chainscat_resample, chains_par, rename_chain_pa
export construct_chains_from_csv


using SimpleTraits
using SimpleTraits: Trait, istrait, @traitdef, @traitimpl, @traitfn
import SimpleTraits
using DataFrames
import Pkg
using Requires: @require
Expand Down
2 changes: 1 addition & 1 deletion src/requires_mcmcchains.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function construct_chains_from_csv(chn_df;
fsections=(vars)->Dict(:internals=>vars[findfirst(==(:lp), vars):end])
)
as = map(pairs(groupby(chn_df, :chain))) do (i, subdf)
Array(select(subdf, DataFrames.Not(1:2)))
Array(select(subdf, Not(1:2)))
end
a = reduce((x, y) -> cat(x, y; dims = 3), as)
MCMCChains.Chains(a, names(chn_df)[3:end], fsections(propertynames(chn_df)[3:end]))
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CSV

@testset "non-required" begin
#TODO resolve SimpleTraits issue https://github.com/mauro3/SimpleTraits.jl/issues/83
#include("test_isofeltype.jl")
include("test_isofeltype.jl")
include("test_util.jl")
include("test_data_management.jl")
end
Expand Down

0 comments on commit 2fa34ce

Please sign in to comment.