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

Fix setting ymin_ratio (and ymax_ratio) in PlotBase if it is zero #261

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

jansam123
Copy link
Contributor

@jansam123 jansam123 commented Mar 26, 2024

Summary

When setting the ymin_ratio and ymax_ratio, the originial condition 'if self.ymin_ratio[i]' evaluates to False if the values is zero. I fixed the issue by changing the condition to 'if self.ymin_ratio[i] is not None'.

Conformity

Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.81%. Comparing base (356eeac) to head (c1b6ef8).

❗ Current head c1b6ef8 differs from pull request most recent head 8e4eb7b. Consider uploading reports for the commit 8e4eb7b to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #261   +/-   ##
=======================================
  Coverage   97.81%   97.81%           
=======================================
  Files          43       43           
  Lines        4661     4661           
=======================================
  Hits         4559     4559           
  Misses        102      102           

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

puma/plot_base.py Outdated Show resolved Hide resolved
@dkobylianskii dkobylianskii merged commit 830a27f into umami-hep:main Mar 28, 2024
7 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