Skip to content

Commit

Permalink
No need to use multiple inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Aug 1, 2023
1 parent e1cf100 commit 698e0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alea/template_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def simulate(self, n_events):
return ret


class CombinedSource(TemplateSource, HistogramPdfSource):
class CombinedSource(TemplateSource):
"""
Source that inherits structure from TH2DSource by Jelle,
but takes in lists of histogram names.
Expand Down Expand Up @@ -334,7 +334,7 @@ def build_histogram(self):
self.set_pdf_histogram(h)


class SpectrumTemplateSource(TemplateSource, HistogramPdfSource):
class SpectrumTemplateSource(TemplateSource):
"""
Reweighted template source by energy spectrum.
The first axis of the template is assumed to be energy.
Expand Down

0 comments on commit 698e0ba

Please sign in to comment.