Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephan Seitz
pystencils
Commits
35db19ff
Commit
35db19ff
authored
Jan 21, 2020
by
Stephan Seitz
Browse files
Add typeannotations and docstring for KernelWrapper
parent
b0aae533
Pipeline
#21220
passed with stage
in 3 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils/kernel_wrapper.py
View file @
35db19ff
"""
Light-weight wrapper around a compiled kernel
"""
import
pystencils
class
KernelWrapper
:
def
__init__
(
self
,
kernel
,
parameters
,
ast_node
):
"""
Light-weight wrapper around a compiled kernel.
Can be called while still providing access to underlying AST.
"""
def
__init__
(
self
,
kernel
,
parameters
,
ast_node
:
pystencils
.
astnodes
.
KernelFunction
):
self
.
kernel
=
kernel
self
.
parameters
=
parameters
self
.
ast
=
ast_node
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment