Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from tpapp/tp/only-v0.7
Browse files Browse the repository at this point in the history
Remove support for Julia v0.6.
  • Loading branch information
tpapp authored Aug 24, 2018
2 parents 44388bd + 17a42fa commit 88809f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ os:
- linux
# - osx
julia:
- 0.6
- 0.7
- 1.0
- nightly
matrix:
allow_failures:
Expand Down
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.6
julia 0.7
StatsBase
4 changes: 2 additions & 2 deletions src/MCMCDiagnostics.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__precompile__()
module MCMCDiagnostics

using StatsBase: mean_and_var, var
using Statistics: mean, var
using StatsBase: mean_and_var

export ess_factor_estimate, effective_sample_size, potential_scale_reduction

Expand Down
1 change: 0 additions & 1 deletion test/REQUIRE

This file was deleted.

12 changes: 4 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
using MCMCDiagnostics
using Test

using StatsBase: var

# TODO: change/remove when dropping support for v0.7
using Compat
using Compat.Test
using Compat.Random: rand, randn, srand
range = Compat.range
using Random
using Statistics: mean, var

# consistent testing
srand(UInt32[0x3d50884f, 0xd6560f94, 0x6c04ab37, 0xb1c52878])
Random.seed!(UInt32[0x3d50884f, 0xd6560f94, 0x6c04ab37, 0xb1c52878])

@testset "IID samples" begin
chains = [randn(1000) for _ in 1:10]
Expand Down

0 comments on commit 88809f7

Please sign in to comment.