python syntax
This commit is contained in:
parent
ddb68eee7c
commit
ae73172ba7
|
@ -13,14 +13,14 @@ class MATERIAL_CONFIG():
|
||||||
import os,sys
|
import os,sys
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
homogenization=[]
|
homogenization=[]
|
||||||
|
|
||||||
def add_homogenization(self, name=None, type=None):
|
def add_homogenization(self, name=None, type=None):
|
||||||
|
|
||||||
if type is 'isostrain':
|
if type is 'isostrain':
|
||||||
h={'type':type}
|
h={'type':type}
|
||||||
h['ngrains']=ngrains
|
h['ngrains']=ngrains
|
||||||
return h
|
return h
|
||||||
|
|
||||||
def add_crystallite(self, name=None):
|
def add_crystallite(self, name=None):
|
||||||
pass
|
pass
|
||||||
|
@ -42,4 +42,5 @@ class MATERIAL_CONFIG():
|
||||||
|
|
||||||
|
|
||||||
class HOMOGENIZATION():
|
class HOMOGENIZATION():
|
||||||
type=None
|
type=None
|
||||||
|
|
Loading…
Reference in New Issue