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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Jean-Noël Grad
pystencils
Commits
a1d43b1d
Commit
a1d43b1d
authored
3 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Remove NodeList Warning
parent
00738cb8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pystencils/node_collection.py
+0
-2
0 additions, 2 deletions
pystencils/node_collection.py
pystencils/typing/cast_functions.py
+0
-1
0 additions, 1 deletion
pystencils/typing/cast_functions.py
with
0 additions
and
3 deletions
pystencils/node_collection.py
+
0
−
2
View file @
a1d43b1d
import
logging
from
typing
import
List
,
Union
from
typing
import
List
,
Union
import
sympy
import
sympy
...
@@ -22,7 +21,6 @@ class NodeCollection:
...
@@ -22,7 +21,6 @@ class NodeCollection:
elif
all
((
isinstance
(
n
,
Node
)
for
n
in
assignments
)):
elif
all
((
isinstance
(
n
,
Node
)
for
n
in
assignments
)):
self
.
is_Nodes
=
True
self
.
is_Nodes
=
True
self
.
is_Assignments
=
False
self
.
is_Assignments
=
False
logging
.
warning
(
'
Using Nodes is experimental and not fully tested. Double check your generated code!
'
)
else
:
else
:
raise
ValueError
(
f
'
The list
"
{
assignments
}
"
is mixed. Pass either a list of
"
pystencils.Assignments
"
'
raise
ValueError
(
f
'
The list
"
{
assignments
}
"
is mixed. Pass either a list of
"
pystencils.Assignments
"
'
f
'
or a list of
"
pystencils.astnodes.Node
'
)
f
'
or a list of
"
pystencils.astnodes.Node
'
)
...
...
This diff is collapsed.
Click to expand it.
pystencils/typing/cast_functions.py
+
0
−
1
View file @
a1d43b1d
...
@@ -89,7 +89,6 @@ class CastFunc(sp.Function):
...
@@ -89,7 +89,6 @@ class CastFunc(sp.Function):
else
:
else
:
return
super
().
is_nonnegative
return
super
().
is_nonnegative
@property
@property
def
is_real
(
self
):
def
is_real
(
self
):
"""
"""
...
...
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