Skip to content
Snippets Groups Projects
Commit 35db19ff authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Add typeannotations and docstring for KernelWrapper

parent b0aae533
No related merge requests found
"""
Light-weight wrapper around a compiled kernel
"""
import pystencils import pystencils
class KernelWrapper: 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.kernel = kernel
self.parameters = parameters self.parameters = parameters
self.ast = ast_node self.ast = ast_node
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment