Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Rasmussen committed Jul 18, 2013
1 parent 6f408b0 commit 7b741d6
Show file tree
Hide file tree
Showing 26 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.pyc
*.o
1 change: 1 addition & 0 deletions arghmm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# if they are not available already
try:
import rasmus, compbio
rasmus, compbio # suppress unused pyflakes warning
except ImportError:
from . import dep
dep.load_deps()
Expand Down
2 changes: 2 additions & 0 deletions arghmm/arghmmc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,7 @@ def get_treeset(arg, times, start=None, end=None):
sprs = []
blocks = []
all_nodes = []
last_tree2 = None

for block, tree, last_tree, spr in iter_arg_sprs(arg, start, end):

Expand Down Expand Up @@ -1457,6 +1458,7 @@ def get_treeset(arg, times, start=None, end=None):

# setup last tree
last_tree = tree
last_tree2 = tree2
last_ptree, last_nodes, last_nodelookup = ptree, nodes, nodelookup

return (ptrees, ages, sprs, blocks), all_nodes
Expand Down
2 changes: 2 additions & 0 deletions arghmm/ctypes_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import sys
import os
from ctypes import c_void_p
from ctypes import c_bool
from ctypes import c_char
from ctypes import c_char_p
Expand All @@ -16,6 +17,7 @@
from ctypes import cast
from ctypes import cdll
from ctypes import POINTER
c_void_p # pyflaskes ignore


def c_list(c_type, lst):
Expand Down
Binary file removed arghmm/deps/compbio/__init__.pyc
Binary file not shown.
Binary file removed arghmm/deps/compbio/alignlib.pyc
Binary file not shown.
Binary file removed arghmm/deps/compbio/arglib.pyc
Binary file not shown.
Binary file removed arghmm/deps/compbio/birthdeath.pyc
Binary file not shown.
Binary file removed arghmm/deps/compbio/coal.pyc
Binary file not shown.
Binary file removed arghmm/deps/compbio/fasta.pyc
Binary file not shown.
Binary file removed arghmm/deps/compbio/phylo.pyc
Binary file not shown.
Binary file removed arghmm/deps/compbio/seqlib.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/__init__.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/hmm.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/intervals.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/linked_list.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/plotting.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/stats.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/svg.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/tablelib.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/textdraw.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/timer.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/treelib.pyc
Binary file not shown.
Binary file removed arghmm/deps/rasmus/util.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion arghmm/popsize.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from math import exp, log, sqrt
import random

import scipy.optimize
try:
import scipy.optimize
except ImportError:
pass

from rasmus import stats, util
from compbio import arglib
Expand Down
3 changes: 2 additions & 1 deletion test/test_codequality.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def get_python_scripts(*paths):

# Return filenames containing 'python' in the first line
with open(filename) as infile:
if "python" in infile.readline():
line = infile.readline()
if "python" in line and "python-i" not in line:
yield filename


Expand Down

0 comments on commit 7b741d6

Please sign in to comment.