Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #575 from OP2/pefarrell/mixedmap-kernel-args-R
Browse files Browse the repository at this point in the history
Fix MixedMap._kernel_args_ with R block
  • Loading branch information
wence- authored Mar 19, 2020
2 parents 8e1c572 + 7551de8 commit 859003d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyop2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2652,15 +2652,15 @@ def _cache_key(cls, maps):

@cached_property
def _kernel_args_(self):
return tuple(itertools.chain(*(m._kernel_args_ for m in self)))
return tuple(itertools.chain(*(m._kernel_args_ for m in self if m is not None)))

@cached_property
def _argtypes_(self):
return tuple(itertools.chain(*(m._argtypes_ for m in self)))
return tuple(itertools.chain(*(m._argtypes_ for m in self if m is not None)))

@cached_property
def _wrapper_cache_key_(self):
return tuple(m._wrapper_cache_key_ for m in self)
return tuple(m._wrapper_cache_key_ for m in self if m is not None)

@cached_property
def split(self):
Expand Down

0 comments on commit 859003d

Please sign in to comment.