zincware / ZnTrack

Create, visualize, run & benchmark DVC pipelines in Python & Jupyter notebooks.
https://zntrack.readthedocs.io
Apache License 2.0
47 stars 5 forks source link

Support `__getitem__` for Groups #774

Closed PythonFZ closed 7 months ago

PythonFZ commented 7 months ago

Fixes #773 by adding support for

assert list(group_1) == [node_1, node_2]
group_1["ParamsToOuts"] == node_1
group_1["Group1_ParamsToOuts"] == node_1
"Group1_ParamsToOuts" in group_1
"ParamsToOuts" in group_1
codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (ce2a572) 86.60% compared to head (cec1cbe) 86.69%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #774 +/- ## ========================================== + Coverage 86.60% 86.69% +0.09% ========================================== Files 25 25 Lines 2015 2030 +15 Branches 856 867 +11 ========================================== + Hits 1745 1760 +15 Misses 270 270 ``` | [Flag](https://app.codecov.io/gh/zincware/ZnTrack/pull/774/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zincware) | Coverage Δ | | |---|---|---| | [fulltest](https://app.codecov.io/gh/zincware/ZnTrack/pull/774/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zincware) | `86.69% <100.00%> (+0.09%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=zincware#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.