From f76d64d3551cbe4d0e0072a226b1dc2e20138312 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 18 Aug 2021 08:50:28 +0200 Subject: [PATCH] already handled in NiceDumper class --- python/damask/_config.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/damask/_config.py b/python/damask/_config.py index 296ea2eee..7b2023a47 100644 --- a/python/damask/_config.py +++ b/python/damask/_config.py @@ -146,12 +146,6 @@ class Config(dict): if 'sort_keys' not in kwargs: kwargs['sort_keys'] = False - def array_representer(dumper, data): - """Convert numpy array to list of native types.""" - return dumper.represent_list([d.item() for d in data]) - - NiceDumper.add_representer(np.ndarray, array_representer) - try: fhandle.write(yaml.dump(self,Dumper=NiceDumper,**kwargs)) except TypeError: # compatibility with old pyyaml