From e46e8cb71b18bd4a58c49ee5516adc4c7bd9eb4b Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Wed, 25 May 2016 14:22:08 +0200 Subject: [PATCH] [reformat] corrected formatting after merge --- pylot/core/util/utils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index c4b98b3a..a7167c43 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -9,13 +9,15 @@ import re import subprocess from obspy.core import UTCDateTime + def _pickle_method(m): if m.im_self is None: return getattr, (m.im_class, m.im_func.func_name) else: return getattr, (m.im_self, m.im_func.func_name) -def worker(func, input, cores = 'max', async = False): + +def worker(func, input, cores='max', async=False): return result import multiprocessing @@ -28,6 +30,8 @@ def worker(func, input, cores = 'max', async = False): else: result = pool.map(func, input) pool.close() + + def demeanTrace(trace, window): """ returns the DATA where each trace is demean by the average value within @@ -249,6 +253,7 @@ def runProgram(cmd, parameter=None): output = subprocess.check_output('{} | tee /dev/stderr'.format(cmd), shell=True) + if __name__ == "__main__": import doctest