|
|
@@ -114,8 +114,8 @@ class Filter(object): |
|
|
|
timestamp_to_human(interval.start), |
|
|
|
timestamp_to_human(interval.end)) |
|
|
|
|
|
|
|
def parse_args(self): |
|
|
|
args = self._parser.parse_args() |
|
|
|
def parse_args(self, argv = None): |
|
|
|
args = self._parser.parse_args(argv or sys.argv) |
|
|
|
|
|
|
|
if args.dest_url is None: |
|
|
|
args.dest_url = args.url |
|
|
@@ -372,12 +372,12 @@ class Filter(object): |
|
|
|
if old_array.shape[0] != 0: |
|
|
|
function(old_array, interval, args, insert_function, True) |
|
|
|
|
|
|
|
def main(): |
|
|
|
def main(argv = None): |
|
|
|
# This is just a dummy function; actual filters can use the other |
|
|
|
# functions to prepare stuff, and then do something with the data. |
|
|
|
f = Filter() |
|
|
|
parser = f.setup_parser() |
|
|
|
args = f.parse_args() |
|
|
|
args = f.parse_args(argv) |
|
|
|
for i in f.intervals(): |
|
|
|
print "Generic filter: need to handle", f.interval_string(i) |
|
|
|
|
|
|
|