phrb / ExperimentalDesign.jl

Design of Experiments in Julia
https://phrb.github.io/ExperimentalDesign.jl/dev/
Other
27 stars 3 forks source link

Latest release throws error on load #8

Closed baggepinnen closed 4 years ago

baggepinnen commented 4 years ago

It looks like some code for testing was left behind in a file, which is no longer present on master. Maybe it's time to tag a new release?

@v1.5) pkg> add ExperimentalDesign
   Updating registry at `~/.julia/registries/General`
  Resolving package versions...
  Installed ShiftedArrays ────── v1.0.0
  Installed Primes ───────────── v0.5.0
  Installed StatsModels ──────── v0.6.13
  Installed ExperimentalDesign ─ v0.1.0
Updating `~/.julia/environments/v1.5/Project.toml`
  [4babbea4] + ExperimentalDesign v0.1.0
Updating `~/.julia/environments/v1.5/Manifest.toml`
  [4babbea4] + ExperimentalDesign v0.1.0
  [27ebfcd6] + Primes v0.5.0
  [1277b4bf] + ShiftedArrays v1.0.0
  [3eaba693] + StatsModels v0.6.13
[ Info: Precompiling ExperimentalDesign [4babbea4-9e7d-11e9-116f-e1ada04bd296]
ERROR: LoadError: LoadError: MethodError: no method matching term(::String)
Closest candidates are:
  term(::Symbol) at /home/fredrikb/.julia/packages/StatsModels/h6g21/src/terms.jl:598
  term(::Number) at /home/fredrikb/.julia/packages/StatsModels/h6g21/src/terms.jl:597
  term(::StatsModels.AbstractTerm) at /home/fredrikb/.julia/packages/StatsModels/h6g21/src/terms.jl:599
Stacktrace:
 [1] _broadcast_getindex_evalf at ./broadcast.jl:648 [inlined]
 [2] _broadcast_getindex at ./broadcast.jl:621 [inlined]
 [3] getindex at ./broadcast.jl:575 [inlined]
 [4] copy at ./broadcast.jl:876 [inlined]
 [5] materialize at ./broadcast.jl:837 [inlined]
 [6] linear_model(::DataFrames.DataFrame) at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/d_optimal/variance_predictions.jl:14
 [7] optimize_design(; factors::Int64, levels::Int64, experiments::Int64, design::DataFrames.DataFrame, candidate_set::DataFrames.DataFrame, iterations::Int64, refresh_candidate_set::Bool) at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/d_optimal/variance_predictions.jl:122
 [8] measure_optimize_design_refresh(::Bool) at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/d_optimal/variance_predictions.jl:210
 [9] top-level scope at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/d_optimal/variance_predictions.jl:246
 [10] include(::Function, ::Module, ::String) at ./Base.jl:380
 [11] include at ./Base.jl:368 [inlined]
 [12] include(::String) at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/ExperimentalDesign.jl:3
 [13] top-level scope at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/ExperimentalDesign.jl:32
 [14] include(::Function, ::Module, ::String) at ./Base.jl:380
 [15] include(::Module, ::String) at ./Base.jl:368
 [16] top-level scope at none:2
 [17] eval at ./boot.jl:331 [inlined]
 [18] eval(::Expr) at ./client.jl:467
 [19] top-level scope at ./none:3
in expression starting at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/d_optimal/variance_predictions.jl:246
in expression starting at /home/fredrikb/.julia/packages/ExperimentalDesign/Cqcyh/src/ExperimentalDesign.jl:32
phrb commented 4 years ago

Thanks for the heads up, the current release does not work on Julia v1.5. To use it right now, you can run:

pkg> add ExperimentalDesign#master

I will release a v1.5 version today, this should work without the #master tag.

phrb commented 4 years ago

The new version has been released, and will be available trough pkg> add soon.