From 9f7e2bdc0bf3ad1598d58395f0cc7cfa0efa8cc1 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Fri, 2 Jul 2021 07:48:01 +0200 Subject: [PATCH] simplified --- python/damask/_grid.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/damask/_grid.py b/python/damask/_grid.py index 4d072eaa5..ed60d3ad7 100644 --- a/python/damask/_grid.py +++ b/python/damask/_grid.py @@ -816,9 +816,8 @@ class Grid: >>> import numpy as np >>> import damask - >>> cells = np.array([32]*3,int) - >>> g = damask.Grid(np.zeros(cells,int),np.ones(3)*1e-4) - >>> g.scale(cells*2) + >>> g = damask.Grid(np.zeros([32]*3,int),np.ones(3)*1e-4) + >>> g.scale(g.cells*2) cells a b c: 64 x 64 x 64 size x y z: 0.0001 x 0.0001 x 0.0001 origin x y z: 0.0 0.0 0.0