Skip to content

Commit

Permalink
Merge pull request #322 from matsen/322-batteries-2.1.0
Browse files Browse the repository at this point in the history
Move to Batteries 2.1.0 / OCaml 4.01.0
  • Loading branch information
matsen committed Feb 4, 2014
2 parents 4265c33 + 2f4c285 commit 7749853
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion opam-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ csv.1.2.2
ounit.1.1.2
xmlm.1.1.1
mcl.12-068oasis3
batteries.2.0.0
batteries.2.1.0
ocaml-gsl.0.6.3
sqlite3-ocaml.1.6.3
camlzip.1.05
2 changes: 1 addition & 1 deletion pplacer_src/minimization.ml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let robust_start_finder ?(max_iters=100) f raw_start left right _ =
(* map those integers to their input values, and filter to make sure in
* left right*)
let jump_enum = Enum.filter
(fun x -> left < x & x < right)
(fun x -> left < x && x < right)
(Enum.map (fun i -> raw_start +. (incr_ratio i)) jump_indices)
in
Enum.iter check_start jump_enum
Expand Down
2 changes: 1 addition & 1 deletion pplacer_src/pca.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open Ppatteries

let tol = 1e-15
let tol = 1e-14
let max_iter = 100000


Expand Down
2 changes: 2 additions & 0 deletions tests/guppy/test_unifrac.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ let suite = [
let names, (prl, prel) =
pres_of_dir Mass_map.Spread Placement.ml_ratio "simple"
|> Hashtbl.enum
(* Sort by name: Hashtbl does not guarantee order *)
|> (List.of_enum %> (List.sort compare) %> List.enum)
|> Enum.uncombine
|> (Tuple2.map Array.of_enum (List.of_enum %> List.split))
in
Expand Down

0 comments on commit 7749853

Please sign in to comment.