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
create a task with a functools.partial object as the target callable.
run the graph.
The resulting exception is:
[1] [14:18:57.480] [main.js] Traceback (most recent call last):
[1] File "/Users/jdouglass/workspace/phargogh/invest/env310/bin/invest", line 8, in <module>
[1]
[1] [14:18:57.480] [main.js] sys.exit(main())
[1] File "/Users/jdouglass/workspace/phargogh/invest/src/natcap/invest/cli.py", line 486, in main
[1] model_module.execute(parsed_datastack.args)
[1] File "/Users/jdouglass/workspace/phargogh/invest/src/natcap/invest/urban_nature_access.py", line 572, in execute
[1] kernel_tasks[search_radius_m] = graph.add_task(
[1] File "/Users/jdouglass/workspace/phargogh/invest/env310/lib/python3.10/site-packages/taskgraph/Task.py", line 625, in add_task
[1]
[1] [14:18:57.481] [main.js] new_task = Task(
[1] File "/Users/jdouglass/workspace/phargogh/invest/env310/lib/python3.10/site-packages/taskgraph/Task.py", line 1003, in __init__
[1]
[1] [14:18:57.481] [main.js] scrubbed_value = _scrub_task_args(arg, self._target_path_list)
[1] File "/Users/jdouglass/workspace/phargogh/invest/env310/lib/python3.10/site-packages/taskgraph/Task.py", line 1459, in _scrub_task_args
[1]
[1] [14:18:57.481] [main.js] return '%s:%s' % (base_value.__name__, source_code)
[1] AttributeError: 'functools.partial' object has no attribute '__name__'. Did you mean: '__ne__'?
I can work around this by adding a __name__ attribute, but it'd be great if taskgraph could fall back to a default name if the name attribute didn't exist.
The text was updated successfully, but these errors were encountered:
To reproduce:
functools.partial
object as the target callable.The resulting exception is:
I can work around this by adding a
__name__
attribute, but it'd be great iftaskgraph
could fall back to a default name if the name attribute didn't exist.The text was updated successfully, but these errors were encountered: