4 space indents are common practice

This commit is contained in:
Martin Diehl 2019-11-22 20:52:36 +01:00
parent fad679a9a5
commit c00af5c402
1 changed files with 362 additions and 364 deletions

View File

@ -286,7 +286,6 @@ class Geom():
abs(int(items[2])-int(items[0]))+1,dtype=float)
else: items = list(map(float,items))
else: items = list(map(float,items))
microstructure[i:i+len(items)] = items
i += len(items)
@ -299,6 +298,7 @@ class Geom():
return cls(microstructure.reshape(grid),size,origin,homogenization,comments)
def to_file(self,fname):
"""
Writes a geom file.
@ -317,8 +317,6 @@ class Geom():
self.microstructure.reshape([grid[0],np.prod(grid[1:])],order='F').T,
header='\n'.join(header), fmt=format_string, comments='')
def to_vtk(self,fname=None):
"""
Generates vtk file.