Skip to content

Commit

Permalink
Merge pull request #170 from ChevronETC/fixlazy
Browse files Browse the repository at this point in the history
fixup no layers
  • Loading branch information
deckerla authored Nov 17, 2023
2 parents 9ae5ac8 + a625b30 commit 06ba9b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Devito.jl
Original file line number Diff line number Diff line change
Expand Up @@ -882,10 +882,10 @@ function TimeFunction(args...; allowpro=true, lazy=true, kwargs...)
# TODO: Generate MFE and submit as issue to PyCall
py"""
import devitopro
def serializedtimefunc(serialization, **kwargs):
def serializedtimefunc(**kwargs):
return devitopro.TimeFunction(layers=devitopro.types.enriched.Disk, **kwargs)
"""
o = py"serializedtimefunc"(serialization; Devito.reversedims(kwargs)...)
o = py"serializedtimefunc"(; Devito.reversedims(kwargs)...)
end
else
o = pycall(devito.TimeFunction, PyObject, args...; reversedims(kwargs)...)
Expand Down

0 comments on commit 06ba9b6

Please sign in to comment.