You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I write a map function with the alternative low-level single-parameter interface, then give it to MultiMapper:
import dumbo
from dumbo.lib import MultiMapper
from dumbo.decor import primary
@primary
def mapper(keysvals):
for key, val in keysvals:
yield key, val
if __name__ == "__main__":
multimapper = MultiMapper()
multimapper.add("primary", mapper)
dumbo.run(multimapper)
It tries to call it with two parameters:
...
File "build/bdist.linux-x86_64/egg/dumbo/core.py", line 322, in run
File "build/bdist.linux-x86_64/egg/dumbo/util.py", line 49, in dumpcode
File "build/bdist.linux-x86_64/egg/dumbo/core.py", line 314, in <genexpr>
File "build/bdist.linux-x86_64/egg/dumbo/core.py", line 445, in mapfunc_iter
File "build/bdist.linux-x86_64/egg/dumbo/lib/__init__.py", line 180, in __call__
TypeError: mapper() takes exactly 1 argument (2 given)
It looks like MultiMapper doesn't know about the alternative interface.
The text was updated successfully, but these errors were encountered:
If I write a map function with the alternative low-level single-parameter interface, then give it to
MultiMapper
:It tries to call it with two parameters:
It looks like
MultiMapper
doesn't know about the alternative interface.The text was updated successfully, but these errors were encountered: