Skip to content
Snippets Groups Projects
Commit dc647c31 authored by Frederik Hennig's avatar Frederik Hennig
Browse files

fixed code style

parent 5360c823
No related branches found
No related tags found
No related merge requests found
Pipeline #57467 failed
...@@ -89,7 +89,7 @@ def mdspan_ref(field: Field, extents_type: type = np.uint32): ...@@ -89,7 +89,7 @@ def mdspan_ref(field: Field, extents_type: type = np.uint32):
if field.layout != layout_string_to_tuple("soa", field.spatial_dimensions): if field.layout != layout_string_to_tuple("soa", field.spatial_dimensions):
raise NotImplementedError("mdspan mapping is currently only available for structure-of-arrays fields") raise NotImplementedError("mdspan mapping is currently only available for structure-of-arrays fields")
extents : list[str | int] = [] extents: list[str | int] = []
for s in field.spatial_shape: for s in field.spatial_shape:
extents.append(StdMdspan.dynamic_extent if isinstance(s, FieldShapeSymbol) else cast(int, s)) extents.append(StdMdspan.dynamic_extent if isinstance(s, FieldShapeSymbol) else cast(int, s))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment