always add comment at beginning
usually, comments are related to the file history
This commit is contained in:
parent
af493cf9fd
commit
0039ac9551
|
@ -83,9 +83,9 @@ class Geom():
|
||||||
|
|
||||||
def add_comment(self,comment):
|
def add_comment(self,comment):
|
||||||
if not isinstance(comment,list):
|
if not isinstance(comment,list):
|
||||||
self.comments += [str(comment)]
|
self.comments = [str(comment)] + self.comments
|
||||||
else:
|
else:
|
||||||
self.comments += [str(c) for c in comment]
|
self.comments = [str(c) for c in comment] + self.comments
|
||||||
|
|
||||||
def set_microstructure(self,microstructure):
|
def set_microstructure(self,microstructure):
|
||||||
self.microstructure = np.copy(microstructure)
|
self.microstructure = np.copy(microstructure)
|
||||||
|
@ -106,6 +106,8 @@ class Geom():
|
||||||
def get_homogenization(self):
|
def get_homogenization(self):
|
||||||
return self.homogenization
|
return self.homogenization
|
||||||
|
|
||||||
|
def get_comments(self):
|
||||||
|
return self.comments[:]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_file(cls,fname):
|
def from_file(cls,fname):
|
||||||
|
|
Loading…
Reference in New Issue