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

Maintenance/julia1 #31

Merged
merged 3 commits into from
Sep 30, 2018
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
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ os:
- osx
julia:
- 0.7
- 1.0
- nightly
notifications:
email: false
Expand All @@ -13,6 +14,6 @@ matrix:
- julia: nightly
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --check-bounds=yes -e 'Pkg.clone(pwd()); Pkg.test("KernelDensityEstimate"; coverage=true)'
- julia --check-bounds=yes -e 'using Pkg; Pkg.clone(pwd()); Pkg.test("KernelDensityEstimate"; coverage=true)'
after_success:
- julia -e 'cd(Pkg.dir("KernelDensityEstimate")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
- julia -e 'using Pkg; cd(Pkg.dir("KernelDensityEstimate")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'
1 change: 0 additions & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
julia 0.7
Distributions
Compat 1.1.0
2 changes: 1 addition & 1 deletion src/BallTreeDensity01.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ end

global DirectSize = 100; # if N*M is less than this, just compute.

@compat abstract type MixtureDensity end
abstract type MixtureDensity end

mutable struct BallTreeDensity <: MixtureDensity
bt::BallTree
Expand Down
6 changes: 2 additions & 4 deletions src/KernelDensityEstimate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ __precompile__(true)
module KernelDensityEstimate

using LinearAlgebra, Statistics
using Distributions, Compat
using Distributions

import Distributions: sample
import Base: promote_rule, *, rand, string, convert
Expand Down Expand Up @@ -46,9 +46,7 @@ export
VectorRange


# useful aliases
@compat VoidUnion{T} = Union{Void, T}
@compat VectorRange{T} = Union{Vector{T},UnitRange{T}}
VectorRange{T} = Union{Vector{T},UnitRange{T}}

include("BallTree01.jl")
include("BallTreeDensity01.jl")
Expand Down