Skip to content

Commit

Permalink
get binomial fix
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Jan 7, 2019
1 parent 72323a6 commit abd151f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion limix/_data/_lik.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
def check_likelihood_name(likname):

likname = likname.lower()
valid_names = set(["normal", "bernoulli", "probit", "binomial", "poisson"])
if likname not in valid_names:
msg = "Unrecognized likelihood name: {}.\n".format(likname)
Expand Down
1 change: 1 addition & 0 deletions limix/qtl/_st_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def st_scan(G, y, lik, K=None, M=None, verbose=True):
lik = (lik,)

lik_name = lik[0].lower()
lik = (lik_name, ) + lik[1:]
check_likelihood_name(lik_name)

with session_block("qtl analysis", disable=not verbose):
Expand Down

0 comments on commit abd151f

Please sign in to comment.