Skip to content

Bug fix batchrunner #69

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

Merged
merged 6 commits into from
Jun 4, 2025
Merged

Bug fix batchrunner #69

merged 6 commits into from
Jun 4, 2025

Conversation

LevanBokeria
Copy link
Collaborator

@LevanBokeria LevanBokeria commented May 19, 2025

Applying the operation to the self._samples dataframe row-wise instead of column-wise, when not parallellising the code.

@LevanBokeria LevanBokeria self-assigned this May 19, 2025
@LevanBokeria LevanBokeria marked this pull request as ready for review May 19, 2025 14:05
@LevanBokeria LevanBokeria requested a review from Copilot May 19, 2025 14:05
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the BatchRunner where operations on the self._samples DataFrame are now correctly applied row-wise instead of column-wise when n_jobs is set to 1.

  • Fix changes the axis parameter for DataFrame.apply from 0 (column-wise) to 1 (row-wise) to align with the intended processing.
Comments suppressed due to low confidence (1)

src/ModularCirc/_BatchRunner.py:101

  • Changing the axis value from 0 to 1 resolves the bug by applying the operation row-wise. Confirm that _run_case correctly handles each row as expected.
success = self._samples.apply(lambda row : self._run_case(row, **kwargs), axis=1)

@LevanBokeria LevanBokeria requested a review from crangelsmith May 19, 2025 14:07
@LevanBokeria LevanBokeria requested a review from MaxBalmus June 4, 2025 10:27
@MaxBalmus
Copy link
Collaborator

All looks good

@MaxBalmus MaxBalmus merged commit a708eff into main Jun 4, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants