Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent name conflict on Not #1

Merged
merged 1 commit into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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