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
Branches
Tags
1 merge request!136Add typeannotations and docstring for KernelWrapper
"""
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
......
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