pyiron / pyiron_workflow

Graph-and-node based workflows
BSD 3-Clause "New" or "Revised" License
14 stars 1 forks source link

[patch] Multiple dispatch for function and macro decorators #407

Closed liamhuber closed 3 months ago

liamhuber commented 3 months ago

So that whenever you are content to automatically scrape the output labels, you can simply write

@Workflow.wrap.as_function_node
def Foo(x):
    y = x + 1
    return y

Instead of

@Workflow.wrap.as_function_node()
def Foo(x):
    y = x + 1
    return y

Closes #317

review-notebook-app[bot] commented 3 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

github-actions[bot] commented 3 months ago

Binder :point_left: Launch a binder notebook on branch _pyiron/pyiron_workflow/multipledispatch

codacy-production[bot] commented 3 months ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.03% (target: -1.00%) :white_check_mark: 100.00%
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (6c555a29ef1cdd4a78f7b4d052970343c2696e1c) | 3512 | 3245 | 92.40% | | | Head commit (523383eecd45e8e86acb55b1b9dfcef2db825fe9) | 3527 (+15) | 3260 (+15) | 92.43% (**+0.03%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#407) | 17 | 17 | **100.00%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 10258418100

Details


Files with Coverage Reduction New Missed Lines %
nodes/function.py 1 98.33%
nodes/macro.py 7 92.25%
<!-- Total: 8 -->
Totals Coverage Status
Change from base Build 10187490604: 0.03%
Covered Lines: 3260
Relevant Lines: 3527

💛 - Coveralls