From be45d62f533c07c063573d929b4686b6bf8c5165 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 21 Feb 2020 23:59:33 +0100 Subject: [PATCH] polishing --- python/damask/dadf5.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/damask/dadf5.py b/python/damask/dadf5.py index f1476af61..597784e6b 100644 --- a/python/damask/dadf5.py +++ b/python/damask/dadf5.py @@ -949,9 +949,7 @@ class DADF5(): def _job(self,group,func,datasets,args,lock): - """ - Execute job for _add_generic_pointwise - """ + """Execute job for _add_generic_pointwise.""" try: datasets_in = {} lock.acquire() @@ -981,6 +979,7 @@ class DADF5(): Details of the datasets to be used: label (in HDF5 file) and arg (argument to which the data is parsed in func). args : dictionary, optional Arguments parsed to func. + """ N_threads = int(Environment().options['DAMASK_NUM_THREADS']) pool = multiprocessing.Pool(N_threads)