using correct name (confirmed by user with original request)

This commit is contained in:
Martin Diehl 2023-11-28 21:08:53 +01:00
parent 38c7e6a8e4
commit 89ba785938
3 changed files with 4 additions and 4 deletions

View File

@ -266,10 +266,10 @@ class GeomGrid:
Notes
-----
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

File diff suppressed because one or more lines are too long

View File

@ -94,7 +94,7 @@ class TestGeomGrid:
def test_save_load_SPPARKS(self,res_path,tmp_path):
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') == \
GeomGrid.load(tmp_path/'SPPARKS_dump.vti')