Fix :flip that should be :diploid-flip

This commit is contained in:
Lee Spector 2020-11-29 21:43:00 -05:00
parent 81f2c3197f
commit 0c6ebde41b
2 changed files with 1 additions and 8 deletions

View File

@ -35,13 +35,6 @@
[state stack]
(empty? (get state stack)))
;;; Returns the top item on the stack
;(defn peek-stack
; [state stack]
; (if-let [top-item (first (get state stack))]
; top-item
; :no-stack-item))
;; Returns the top item on the stack
(defn peek-stack
[state stack]

View File

@ -86,7 +86,7 @@
[crossover uniform-addition uniform-deletion])
xover-prob (or (:crossover (:variation argmap)) 0)
umad-prob (or (:umad (:variation argmap)) 0)
flip-prob (or (:flip (:variation argmap)) 0)]
flip-prob (or (:diploid-flip (:variation argmap)) 0)]
(cond
(< prob xover-prob)
(xover (:plushy (selection/select-parent pop argmap))