From ae73172ba7404beb432b760e3982f7f09861085f Mon Sep 17 00:00:00 2001 From: Claudio Zambaldi Date: Thu, 17 Nov 2011 16:17:56 +0000 Subject: [PATCH] python syntax --- lib/damask_tools.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/damask_tools.py b/lib/damask_tools.py index 818e13359..302c7b409 100644 --- a/lib/damask_tools.py +++ b/lib/damask_tools.py @@ -13,14 +13,14 @@ class MATERIAL_CONFIG(): import os,sys def __init__(self): - homogenization=[] + homogenization=[] def add_homogenization(self, name=None, type=None): if type is 'isostrain': - h={'type':type} - h['ngrains']=ngrains - return h + h={'type':type} + h['ngrains']=ngrains + return h def add_crystallite(self, name=None): pass @@ -42,4 +42,5 @@ class MATERIAL_CONFIG(): class HOMOGENIZATION(): - type=None \ No newline at end of file + type=None + \ No newline at end of file