improved grid reporting

- a-b-c vs. x-y-z confusing and not needed
- unit is helpful (got a request on the helpdesk)
This commit is contained in:
Martin Diehl 2021-11-16 09:17:32 +01:00
parent 7347e26204
commit fd0a3f58fa
1 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,9 @@ class Grid:
mat_max = np.nanmax(self.material)
mat_N = self.N_materials
return util.srepr([
f'cells a b c: {util.srepr(self.cells, " x ")}',
f'size x y z: {util.srepr(self.size, " x ")}',
f'origin x y z: {util.srepr(self.origin," ")}',
f'cells : {util.srepr(self.cells, " x ")}',
f'size : {util.srepr(self.size, " x ")}/m',
f'origin: {util.srepr(self.origin," ")}/m',
f'# materials: {mat_N}' + ('' if mat_min == 0 and mat_max+1 == mat_N else
f' (min: {mat_min}, max: {mat_max})')
])