python syntax

This commit is contained in:
Claudio Zambaldi 2011-11-17 16:17:56 +00:00
parent ddb68eee7c
commit ae73172ba7
1 changed files with 6 additions and 5 deletions

View File

@ -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
type=None