use "None" to indicate missing data

True/False are user based decisions
This commit is contained in:
Martin Diehl 2020-03-18 14:29:59 +01:00
parent ab84ac1c24
commit 2b777bbbea
1 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ class Geom:
return Geom(microstructure.reshape(grid),size,origin,homogenization,comments) 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. Writes a geom file.
@ -342,7 +342,7 @@ class Geom:
header = self.get_header() header = self.get_header()
grid = self.get_grid() grid = self.get_grid()
if not pack: if pack is None:
plain = grid.prod()/np.unique(self.microstructure).size < 250 plain = grid.prod()/np.unique(self.microstructure).size < 250
else: else:
plain = not pack plain = not pack