Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Markus Holzer
pystencils
Commits
f05b9e21
Commit
f05b9e21
authored
1 year ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
test
parent
a861b607
No related branches found
No related tags found
No related merge requests found
Pipeline
#55577
failed
1 year ago
Stage: pretest
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/cpu/kernelcreation.py
+4
-1
4 additions, 1 deletion
pystencils/cpu/kernelcreation.py
with
4 additions
and
1 deletion
pystencils/cpu/kernelcreation.py
+
4
−
1
View file @
f05b9e21
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment