From 2b777bbbea184254f700b513b09bf47cc341dc95 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 18 Mar 2020 14:29:59 +0100 Subject: [PATCH] use "None" to indicate missing data True/False are user based decisions --- python/damask/geom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/damask/geom.py b/python/damask/geom.py index 1d8388cc5..857e473b0 100644 --- a/python/damask/geom.py +++ b/python/damask/geom.py @@ -327,7 +327,7 @@ class Geom: return Geom(microstructure.reshape(grid),size,origin,homogenization,comments) - def to_file(self,fname,pack=False): + def to_file(self,fname,pack=None): """ Writes a geom file. @@ -342,7 +342,7 @@ class Geom: header = self.get_header() grid = self.get_grid() - if not pack: + if pack is None: plain = grid.prod()/np.unique(self.microstructure).size < 250 else: plain = not pack