Skip to content

Conversation

@GeorgWa
Copy link
Collaborator

@GeorgWa GeorgWa commented Dec 6, 2025

Removes the infamous __call__ pattern from modification translation

GeorgWa and others added 2 commits December 6, 2025 21:57
- MSFraggerModificationTranslation.__call__ → translate()
- SageModificationTranslation.__call__ → translate()
- Update all callers to use explicit translate() method

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@GeorgWa GeorgWa requested a review from Copilot December 6, 2025 21:00
@GeorgWa GeorgWa changed the base branch from main to modification_mapping_psm December 6, 2025 21:00
@GeorgWa GeorgWa requested a review from mschwoer December 6, 2025 21:01
def _load_modifications(self, origin_df: pd.DataFrame) -> None: # noqa: ARG002
"""Parse modifications from PsmDfCols.TMP_MODS column (mapped from 'Assigned Modifications')."""
translator = MSFraggerModificationTranslation(
modification_translation = MSFraggerModificationTranslation(
Copy link
Contributor

Choose a reason for hiding this comment

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

MSFraggerModificationTranslator? (same for the other)

Copy link

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

GeorgWa and others added 4 commits December 6, 2025 22:32
Restores callable interface for backward compatibility with notebook tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- MSFraggerModificationTranslation -> MSFraggerModificationTranslator
- SageModificationTranslation -> SageModificationTranslator
- Update all usages in readers, tests, and notebooks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@@ -0,0 +1,37 @@
# Refactor TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this file can be removed

@mschwoer
Copy link
Contributor

mschwoer commented Dec 8, 2025

"Who you're gonna call?" - "__call__-busters!"

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.

3 participants