Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected keyword argument '.depends' #464

Closed
rrjbca opened this issue May 12, 2021 · 0 comments · Fixed by #465
Closed

unexpected keyword argument '.depends' #464

rrjbca opened this issue May 12, 2021 · 0 comments · Fixed by #465
Assignees
Labels
bug Something isn't working module: pipeline

Comments

@rrjbca
Copy link
Contributor

rrjbca commented May 12, 2021

Describe the bug
There are situations (I can't narrow down the exact conditions) where the Call class is passing .depends as a keyword argument to its function call (when run within a Pipeline). I am working on a fix.

Minimum working example

# bug.yml
tables:
  bug_table_1:
    a: !numpy.random.uniform [0, 1, 10]
  bug_table_2:
    .init: !astropy.table.vstack
      tables: [ $bug_table_1 ]
      .depends: [ bug_table_1.complete ]
>>> skypy -v bug.yml tmp.fits
2021-05-12 16:04:51,626 [ERROR] skypy: got an unexpected keyword argument '.depends'
Traceback (most recent call last):
  File "skypy/pipeline/scripts/skypy.py", line 42, in main
    pipeline = Pipeline(config)
  File "skypy/pipeline/_pipeline.py", line 106, in __init__
    settings.infer(context)
  File "skypy/pipeline/_items.py", line 66, in infer
    given = sig.bind_partial(*self.args, **self.kwargs)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/inspect.py", line 3044, in bind_partial
    return self._bind(args, kwargs, partial=True)
  File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/inspect.py", line 3026, in _bind
    raise TypeError(
TypeError: got an unexpected keyword argument '.depends'
@rrjbca rrjbca added bug Something isn't working module: pipeline labels May 12, 2021
@rrjbca rrjbca self-assigned this May 12, 2021
rrjbca added a commit to rrjbca/skypy that referenced this issue May 13, 2021
rrjbca added a commit to rrjbca/skypy that referenced this issue May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: pipeline
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant