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: flow warning fix #426

Merged
merged 3 commits into from
May 15, 2023

Conversation

henryiii
Copy link
Member

This is the full suggested fix to the issues introduced in #413:

  • Made the output a warning
  • Used the repr of the histogram instead of the print (which is a textual plot)
  • Avoided printing the warning if "none"/None is set for flow=.

Personally, I'd recommend not supporting None, and only supporting "none", since it's just a mode like the others and it's not the default if no argument is passed.

I think "hint" should also not print a warning.

henryiii added 2 commits May 15, 2023 18:12
Signed-off-by: Henry Schreiner <[email protected]>
Signed-off-by: Henry Schreiner <[email protected]>
@henryiii
Copy link
Member Author

henryiii commented May 15, 2023

What does hint look like? - I couldn't tell from the PR as it kept changing. It's in the tests. I think that's okay for a default. But it shouldn't produce warnings on flow-less histograms.

@henryiii henryiii changed the title fix: flow default and warning fix fix: flow warning fix May 15, 2023
@henryiii henryiii marked this pull request as ready for review May 15, 2023 23:18
@andrzejnovak
Copy link
Member

Thanks for the fix! Actually thought we settled on no warn for hint if flow bins don't exist, but seems sth went wrong there.

@andrzejnovak andrzejnovak merged commit bd90705 into scikit-hep:master May 15, 2023
@henryiii henryiii deleted the henryiii/fix/flowissue branch May 15, 2023 23:43
jonas-eschle pushed a commit that referenced this pull request Apr 22, 2024
* fix: flow default and warning fix

Signed-off-by: Henry Schreiner <[email protected]>

* fix: match description in PR

Signed-off-by: Henry Schreiner <[email protected]>

* fix: only compute transform if needed

Signed-off-by: Henry Schreiner <[email protected]>

---------

Signed-off-by: Henry Schreiner <[email protected]>
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