Open sstephanyy opened 3 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
abdb617
) to head (7b7c968
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hey @sstephanyy thanks a lot for your pull request!
I see that some CI checks are still failing. Let me know if you need me to look into it š
I see that some CI checks are still failing. Let me know if you need me to look into it š
@tpvasconcelos, I solved a mypy CI failing check, but 1 CI failure remains :/
@sstephanyy just noticed that you added your changes to the wrong section of the changelog. No worries of course but this would mean that your changes would not be listed in the next release notes šØ
Fixed in bba6be22c124d47c11f95fcdb1c602a01325369d ā
@sstephanyy I simplified your test cases a bit by using pytest.mark.parametrize
(take a look).
@sstephanyy just noticed that you added your changes to the wrong section of the changelog. No worries of course but this would mean that your changes would not be listed in the next release notes šØ
Fixed in bba6be2 ā
Thanks so much for the fix :)
@sstephanyy I simplified your test cases a bit by using
pytest.mark.parametrize
(take a look).
wow, well-done. I do know about the existence of pytest.mark.parametrize
to run the same test over and over again with different values, but didn't come to my mind using it. Great job :open_mouth: :confetti_ball:
@sstephanyy let me know if the new test cases I pushed were helpful or whether you want more help here š
See this as well
Description
To prevent the
ZeroDivisionError
from occurring when using index-based colormodes with a single trace or a single row of data, the code has been modified to check the number of rows before performing any calculations. If only one row is present, a default color value (like 0.0) is returned instead of attempting to divide by zero.Related issues
Closes #252
PR check list
docs/api/internal/
.docs/api/index.rst
.versionadded
,versionchanged
, ordeprecated
directives to docstrings.MAJOR.MINOR.PATCH
(e.g., if the current version is0.2.3
, the next release will be0.3.0
).docs/reference/changelog.md
.š Documentation preview š: https://ridgeplot--268.org.readthedocs.build/en/268/