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

Properly handle generators in Data.from_multiple #2318

Closed
wants to merge 1 commit into from

Conversation

saitcakmak
Copy link
Contributor

Summary: Since it previously looped through the input twice, it would consume the generator in the first pass and return empty data.

Reviewed By: Balandat

Differential Revision: D55723466

Summary: Since it previously looped through the input twice, it would consume the generator in the first pass and return empty data.

Reviewed By: Balandat

Differential Revision: D55723466
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Apr 4, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55723466

@codecov-commenter
Copy link

codecov-commenter commented Apr 4, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 94.91%. Comparing base (8bc9553) to head (11d4004).

❗ Current head 11d4004 differs from pull request most recent head e81fda2. Consider uploading reports for the commit e81fda2 to get more accurate results

Files Patch % Lines
ax/core/data.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2318      +/-   ##
==========================================
+ Coverage   94.90%   94.91%   +0.01%     
==========================================
  Files         489      489              
  Lines       47758    47786      +28     
==========================================
+ Hits        45324    45356      +32     
+ Misses       2434     2430       -4     

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

saitcakmak added a commit to saitcakmak/Ax that referenced this pull request Apr 4, 2024
Summary:

Since it previously looped through the input twice, it would consume the generator in the first pass and return empty data.

Reviewed By: Balandat

Differential Revision: D55723466
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1b29a78.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants