Skip to content

Commit

Permalink
Fixed bug macs3-project#86. A wrong usage of 'ndarray' caused 'callpe…
Browse files Browse the repository at this point in the history
…ak --nolambda'

hangs forever. Fixed by editting 'ndarray' -> 'array'.
  • Loading branch information
taoliu committed Jul 30, 2015
1 parent f8cd4aa commit 2a05c10
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions MACS2/IO/CallPeakUnit.pyx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Time-stamp: <2015-04-24 10:05:31 Tao Liu>
# Time-stamp: <2015-07-30 15:55:55 Tao Liu>

"""Module for Calculate Scores.
Expand Down Expand Up @@ -494,9 +494,7 @@ cdef class CallerFromAlignments:
baseline_value = self.lambda_bg,
directional = False )
else:
ctrl_pv = [treat_pv[0][-1:], np.ndarray([self.lambda_bg,], dtype="float32")] # set a global lambda


ctrl_pv = [treat_pv[0][-1:], np.array([self.lambda_bg,], dtype="float32")] # set a global lambda

self.chr_pos_treat_ctrl = self.__chrom_pair_treat_ctrl( treat_pv, ctrl_pv)

Expand Down

0 comments on commit 2a05c10

Please sign in to comment.