Skip to content

Commit

Permalink
namedtuple for python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
horta committed Apr 25, 2019
1 parent 7168715 commit 855dd05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion limix/qtl/_result/_st_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _normalize(h):
scale=float(h["scale"]),
)

self._tests.append(Result(idx=cand_idx, h2=_normalize(h2)))
self._tests.append(Result(idx=cand_idx, h1=None, h2=_normalize(h2)))

def create(self):
return STScanResult(
Expand Down
2 changes: 1 addition & 1 deletion limix/qtl/_result/_tuples.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
],
)

Result = namedtuple("Result", ["idx", "h1", "h2"], defaults={"h1": None, "h2": None})
Result = namedtuple("Result", ["idx", "h1", "h2"])

0 comments on commit 855dd05

Please sign in to comment.