Closed fhagemann closed 1 month ago
The last force-push was just a rebase using the changes in #50
The tests are still failing (but unrelated to this PR) because the LegendTestData was not updated to the new format of saving enrichment
in the metadata, which (instead of just having a value, now have the fields val
and unc
for value and uncertainty), see https://github.com/legend-exp/legend-detectors/commit/f87cf1c471439f0d7407670949a9f7da78adc009
The tests fail as LegendDataManagement
was already updated to the new format (see https://github.com/legend-exp/LegendDataManagement.jl/commit/49da84425a3b5b93045670cf7757fd00b978b08c), but not the test data.
I opened a PR to legend-testdata (see https://github.com/legend-exp/legend-testdata/pull/16) to update the detector config files in the test data to this new format, but it might take some steps until they make it to the tests.
Test issue is due to wrong metadata in LegendTestData
. This leads to failing tests.
The plot recipe takes three arguments:
chinfo
: the channel info with all detectors to be plotted on the x-axispars
: aPropDict
that has the detector IDs as keys and parameters as valuesproperties
: an array ofSymbols
to access the data that should be plotted (if noproperties
are provided, thePropDict
pars
is expected to just contain the data to be plotted as values)There are also keyword arguments:
calculate_mean
: If set totrue
, then the mean values are included in the legend labels. For values with uncertainties, the mean values are calculated as weighted means.verbose
: some output when the plot is generated, e.g. if values for (some) detectors are missingExamples: