Commit 45e4edbd authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

tools/*.py: default argumnent to [], fix

parent fc630ffe
......@@ -172,8 +172,8 @@ class OtherWindows:
"""Aggregate counts of windows that are discarded (due to too small 'top') for each point into several 'others-' windows."""
def __init__(self, length, ranges = [1000, 100, 10, 1]):
self.ranges = ranges
def __init__(self, length, ranges = None):
self.ranges = ranges if ranges is not None else [1000, 100, 10, 1]
self.length = length
self.sizes = {}
......@@ -13,7 +13,7 @@ def ordered(d, key=None):
def concatenate_with_padding(d,
d1, d1_size,
d2, d2_size,
'''Concatenate two dictionaries d1 and d2 into d
The dictionaries d1 and d2 store several values that are lists with d1_size and d2_size elements,
and the resulting dictionary will store values that are lists with size d1_size + d2_size elements.
......@@ -34,7 +34,10 @@ def concatenate_with_padding(d,
if ignore_keys == None:
ignore_keys = []
for i in range(d1_size):
Supports Markdown
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