Skip to content
Snippets Groups Projects
Commit f05b9e21 authored by Markus Holzer's avatar Markus Holzer
Browse files

test

parent a861b607
No related branches found
No related tags found
No related merge requests found
Pipeline #55577 failed
...@@ -127,7 +127,10 @@ def create_indexed_kernel(assignments: Union[AssignmentCollection, NodeCollectio ...@@ -127,7 +127,10 @@ def create_indexed_kernel(assignments: Union[AssignmentCollection, NodeCollectio
non_index_fields = [f for f in all_fields if f not in index_fields] non_index_fields = [f for f in all_fields if f not in index_fields]
spatial_coordinates = {f.spatial_dimensions for f in non_index_fields} spatial_coordinates = {f.spatial_dimensions for f in non_index_fields}
assert len(spatial_coordinates) == 1, "Non-index fields do not have the same number of spatial coordinates" assert len(spatial_coordinates) == 1, f"Non-index fields do not have the same number of spatial coordinates " \
f"Non index fields are {non_index_fields}, spatial coordinates are " \
f"{spatial_coordinates} and len(spatial coordiantes) is " \
f"{len(spatial_coordinates)}"
spatial_coordinates = list(spatial_coordinates)[0] spatial_coordinates = list(spatial_coordinates)[0]
def get_coordinate_symbol_assignment(name): def get_coordinate_symbol_assignment(name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment