Commit b5d98f70 authored by Blaise Li's avatar Blaise Li

Specify default "mode" argument for numpy.pad.

It has no default value for older numpy version.
parent 7c79f77a
...@@ -289,6 +289,7 @@ def paste_bigwig_region( ...@@ -289,6 +289,7 @@ def paste_bigwig_region(
to_bw.values(chrom, 0, chrom_len), to_bw.values(chrom, 0, chrom_len),
# pad zero on the left, and what is needed to complete the bin on the right # pad zero on the left, and what is needed to complete the bin on the right
(0, 10 * nb_bins - chrom_len), (0, 10 * nb_bins - chrom_len),
mode="constant",
constant_values=np.nan) constant_values=np.nan)
if chrom == to_chrom: if chrom == to_chrom:
# Replace the values in the desired region # Replace the values in the desired region
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment