Skip to content

Commit d3a4b15

Browse files
committed
more unused args and fixes
1 parent 60f3a64 commit d3a4b15

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lpsmap/tests/fw.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from collections import defaultdict
12
import numpy as np
23

34
class SparseMAPFW(object):
@@ -86,7 +87,7 @@ def get_ls_denom(self, d_u, d_v):
8687
denom += np.sum(d_v ** 2)
8788
return denom
8889

89-
def solve(self, eta_u, eta_v, full_path=False, ls_eta=.99, ls_tau=2):
90+
def solve(self, eta_u, eta_v, full_path=False):
9091

9192
eta_u = np.asarray(eta_u, dtype=np.float)
9293
eta_v = np.asarray(eta_v, dtype=np.float)

lpsmap/tests/test_logic_factors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _func_best_structure(eta, negated, f):
3737

3838

3939
def _make_factor(eta, negated, fname, **kwargs):
40-
negated_flag = np.zeros_like(eta, dtype=np.bool)
40+
negated_flag = np.zeros_like(eta, dtype=bool)
4141
negated_flag[negated] = True
4242
negated_flag = list(negated_flag)
4343

0 commit comments

Comments
 (0)