From 3b7e9d5c05cfa255829581ae50ebe53a9bb9bc94 Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Fri, 29 Nov 2019 14:29:10 +0100 Subject: [PATCH 1/2] Fix a missing initialization with zeros in kd-tree lookup (#9) Since d8564311, inconsistencies between the stored delta vector and its norm will propagate, so they need to be initialized consistently. --- src/kdtree.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kdtree.jl b/src/kdtree.jl index b2c5b39e..2c5b8e7a 100644 --- a/src/kdtree.jl +++ b/src/kdtree.jl @@ -93,7 +93,7 @@ mutable struct Alts{T} end Alts(p::Vector{T}) where {T} = - Alts([AltEntry(1, Vector{T}(undef, length(p)), zero(T))], typemax(T), 0, 1) + Alts([AltEntry(1, zeros(T, length(p)), zero(T))], typemax(T), 0, 1) function init!(alts::Alts{T}, best_dist, best_pidx) where {T} alts.number_valid = 1 From 3b5bdee67af7d0834231c339fae32d43e9943c5e Mon Sep 17 00:00:00 2001 From: Martin Holters Date: Fri, 29 Nov 2019 15:36:16 +0100 Subject: [PATCH 2/2] Use `dev` instead of `latest` in links to documentation (#10) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 91e3348e..7659289d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Join the chat at https://gitter.im/HSU-ANT/ACME.jl](https://badges.gitter.im/HSU-ANT/ACME.jl.svg)](https://gitter.im/HSU-ANT/ACME.jl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Documentation](https://img.shields.io/badge/docs-stable-blue.svg)](https://hsu-ant.github.io/ACME.jl/stable) -[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://hsu-ant.github.io/ACME.jl/latest) +[![Documentation](https://img.shields.io/badge/docs-dev-blue.svg)](https://hsu-ant.github.io/ACME.jl/dev/) [![DOI](https://zenodo.org/badge/48224425.svg)](https://zenodo.org/badge/latestdoi/48224425) [![Build Status](https://travis-ci.org/HSU-ANT/ACME.jl.svg?branch=develop)](https://travis-ci.org/HSU-ANT/ACME.jl) @@ -128,7 +128,7 @@ fail to run altogether. ## Moving on -There is some [documentation](https://hsu-ant.github.io/ACME.jl/latest) +There is some [documentation](https://hsu-ant.github.io/ACME.jl/dev/) available for how to use ACME. Additionally, you can take a look at the examples that can be found in the `examples` directory below `Pkg.dir("ACME")`.