-
Notifications
You must be signed in to change notification settings - Fork 9
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
add histogram LGDO #98
Conversation
e5ee7fd
to
58f5eae
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #98 +/- ##
==========================================
+ Coverage 74.45% 76.26% +1.80%
==========================================
Files 45 46 +1
Lines 2815 3029 +214
==========================================
+ Hits 2096 2310 +214
Misses 719 719 ☔ View full report in Codecov by Sentry. |
Looks great Manuel! Some comments:
|
|
Yes, we should absolutely allow that.
I'll add a test file to legend-testdata, give me a few days ... |
Variable binning works now (with
|
Can you also add a test file to the legend-testdata repo via a PR there, so we can test on the Julia side before we merge here and on legend-testdata? |
61cf866
to
e77af46
Compare
Created with legend-pydataobj w/ legend-exp/legend-pydataobj#98 applied
@oschulz see legend-exp/legend-testdata#18 |
This PR seems good to go from my point of view, anything else @ManuelHu? |
I also think it is ready, no particularly missing things come to my mind. |
Some open questions:
hist
package, which could also be a strictly optional dependency. see also Handling package dependencies required byLGDO.view_as()
#48wo_mode
that might append. I am unsure if this is the nice way to do it...Histogram
, not being able to add/remove fields is a hard requirement - otherwise it cannot be read back as a histogram. But overriding all the custom functionality ofStruct
is not nice. Maybe, having a base class forStruct
, but without a clear way for the user to add/remove fields would make sense?HistogramAxis
accept attrs?lgdo.types.HistogramAxis
be moved tolgdo.types.Histogram.Axis
(i.e. as nested type, as the axis type does not make sense as a standalone LGDO?)fixes #15