From b9b66fac45b4ea34ea6f44bd19aabbbc79b7ef31 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 30 Mar 2021 17:15:02 +0200 Subject: [PATCH] simplified --- python/damask/_result.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/damask/_result.py b/python/damask/_result.py index 415ddded9..ba726d4d3 100644 --- a/python/damask/_result.py +++ b/python/damask/_result.py @@ -139,8 +139,7 @@ class Result: datasets = ['*'] elif datasets is False: datasets = [] - choice = datasets if hasattr(datasets,'__iter__') and not isinstance(datasets,str) else \ - [datasets] + choice = [datasets] if isinstance(datasets,str) else datasets.copy() inc = 'inc' if self.version_minor < 12 else 'increment_' # compatibility hack if what == 'increments':