don't access attributes directly

This commit is contained in:
Martin Diehl 2019-05-26 22:08:14 +02:00
parent f251cdb746
commit 15d5a7ae28
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ for name in filenames:
microstructure += options.microstructure # constant shift
for i,line in enumerate(geom.comments):
for i,line in enumerate(geom.get_comments()):
if line.lower().strip().startswith('origin'):
origin= np.array([float(line.split()[j]) for j in [2,4,6]]) # assume correct order (x,y,z)
origin += np.array(origin)