easier to use
This commit is contained in:
parent
3526f421cc
commit
7b3d1204fa
|
@ -466,6 +466,11 @@ class Result:
|
||||||
return f[self.get_dataset_location('orientation')[0]].attrs['Lattice'].astype('str') # np.bytes_ to string
|
return f[self.get_dataset_location('orientation')[0]].attrs['Lattice'].astype('str') # np.bytes_ to string
|
||||||
|
|
||||||
|
|
||||||
|
def enable_user_function(self,func):
|
||||||
|
globals()[func.__name__]=func
|
||||||
|
print(f'Function {func.__name__} enabled in add_calculation.')
|
||||||
|
|
||||||
|
|
||||||
def read_dataset(self,path,c=0,plain=False):
|
def read_dataset(self,path,c=0,plain=False):
|
||||||
"""
|
"""
|
||||||
Dataset for all points/cells.
|
Dataset for all points/cells.
|
||||||
|
|
Loading…
Reference in New Issue