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

1211-fix #1213

Merged
merged 10 commits into from
Dec 4, 2023
Merged

1211-fix #1213

merged 10 commits into from
Dec 4, 2023

Conversation

kasyanovse
Copy link
Collaborator

@kasyanovse kasyanovse commented Nov 29, 2023

Fix #1211

@kasyanovse kasyanovse added the bug Something isn't working label Nov 29, 2023
@kasyanovse kasyanovse self-assigned this Nov 29, 2023
@pep8speaks
Copy link

pep8speaks commented Nov 29, 2023

Hello @kasyanovse! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2023-12-04 09:57:57 UTC

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (9d9469f) 79.27% compared to head (63c98b7) 79.31%.

❗ Current head 63c98b7 differs from pull request most recent head 27a0b52. Consider uploading reports for the commit 27a0b52 to get more accurate results

Files Patch % Lines
fedot/core/operations/atomized_model.py 0.00% 28 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1213      +/-   ##
==========================================
+ Coverage   79.27%   79.31%   +0.03%     
==========================================
  Files         145      145              
  Lines       10048    10043       -5     
==========================================
  Hits         7966     7966              
+ Misses       2082     2077       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MorrisNein MorrisNein self-requested a review November 30, 2023 12:46
fedot/core/operations/atomized_model.py Outdated Show resolved Hide resolved
fedot/core/operations/atomized_model.py Outdated Show resolved Hide resolved
test/integration/models/test_atomized_model.py Outdated Show resolved Hide resolved
test/integration/models/test_atomized_model.py Outdated Show resolved Hide resolved
fedot/core/operations/atomized_model.py Outdated Show resolved Hide resolved
fedot/core/operations/atomized_model.py Outdated Show resolved Hide resolved
Comment on lines 80 to 86
reduce_function = lambda x, y: x | y
return list(reduce(reduce_function, data))

tags = extract_metadata_from_pipeline('tags')
input_types = extract_metadata_from_pipeline('input_types',
node_filter=lambda node: node.is_primary,
reduce_function=lambda x, y: x & y)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут вместо lambda можно использовать эти функции:

from operator import and_, or_

Comment on lines 72 to 74
def extract_metadata_from_pipeline(attr_name: str,
node_filter: Optional[Callable[[PipelineNode], bool]] = None,
reduce_function: Optional[Callable[[List[Set]], Set]] = None):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Очень не хватает докстринги для понимания параметров

@MorrisNein MorrisNein self-requested a review December 4, 2023 09:49
@kasyanovse kasyanovse merged commit 75d2da8 into master Dec 4, 2023
5 checks passed
@kasyanovse kasyanovse deleted the 1211-fix branch December 4, 2023 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Atomized model metadata error
3 participants