using correct name (confirmed by user with original request)
This commit is contained in:
parent
38c7e6a8e4
commit
89ba785938
|
@ -266,10 +266,10 @@ class GeomGrid:
|
||||||
Notes
|
Notes
|
||||||
-----
|
-----
|
||||||
A SPPARKS VTI dump is equivalent to a DAMASK VTI file,
|
A SPPARKS VTI dump is equivalent to a DAMASK VTI file,
|
||||||
but stores the materialID information as 'spins' rather than 'material'.
|
but stores the materialID information as 'Spin' rather than 'material'.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return GeomGrid._load(fname,'spins')
|
return GeomGrid._load(fname,'Spin')
|
||||||
|
|
||||||
|
|
||||||
@typing.no_type_check
|
@typing.no_type_check
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -94,7 +94,7 @@ class TestGeomGrid:
|
||||||
|
|
||||||
def test_save_load_SPPARKS(self,res_path,tmp_path):
|
def test_save_load_SPPARKS(self,res_path,tmp_path):
|
||||||
v = VTK.load(res_path/'SPPARKS_dump.vti')
|
v = VTK.load(res_path/'SPPARKS_dump.vti')
|
||||||
v.set('material',v.get('spins')).delete('spins').save(tmp_path/'SPPARKS_dump.vti',parallel=False)
|
v.set('material',v.get('Spin')).delete('Spin').save(tmp_path/'SPPARKS_dump.vti',parallel=False)
|
||||||
assert GeomGrid.load_SPPARKS(res_path/'SPPARKS_dump.vti') == \
|
assert GeomGrid.load_SPPARKS(res_path/'SPPARKS_dump.vti') == \
|
||||||
GeomGrid.load(tmp_path/'SPPARKS_dump.vti')
|
GeomGrid.load(tmp_path/'SPPARKS_dump.vti')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue