Skip to content

SWR matplotlib__matplotlib-10206 - #48

Open
richeshgupta wants to merge 2 commits into
swr-base-ca00ccafrom
swr-head-ca00cca
Open

richeshgupta wants to merge 2 commits into
swr-base-ca00ccafrom
swr-head-ca00cca

Conversation

@richeshgupta

Copy link
Copy Markdown

SWRBench case matplotlib__matplotlib-10206: pinned base 1f3699c to head ca00cca of matplotlib#10206. Benchmark replay, not for merge.

@razorpay-slash razorpay-slash Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Automated code review

Reviewed up to ca00cca.
All 5 reviewers completed.


def __getitem__(self, item):
return Quantity(self.magnitude[item], self.units)
if iterable(self.magnitude):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[MEDIUM] The added getitem branch check is a no-op; both branches are identical, so the units change gains no new coverage

Issue

The new if iterable(self.magnitude) guard returns the same expression in both branches, so it cannot exercise the scalar-magnitude path and adds no behavior. It is the only test-file change in this pull request, so the numlike early return in Axis.convert_units and the now-unguarded date2num call in DateConverter.convert gain no new coverage.

Evidence

CONFIRMED: both added branches are textually return Quantity(self.magnitude[item], self.units), so the condition cannot change any outcome; the diff touches no other test file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants