Our data loading code produces ReactionSample objects, which (as of #74) are very similar to Reactions, except for holding a few extra things. These two classes also duplicate some of the functionality, e.g. utils for stringifying a Bag of Molecules. This PR makes an initial attempt at deduplicating these two classes, making ReactionSample inherit from Reaction.
Longer term we could potentially combine the two classes entirely (we can defer this to a future PR to speed up the release of v0.4.0).
Our data loading code produces
ReactionSample
objects, which (as of #74) are very similar toReaction
s, except for holding a few extra things. These two classes also duplicate some of the functionality, e.g. utils for stringifying aBag
ofMolecule
s. This PR makes an initial attempt at deduplicating these two classes, makingReactionSample
inherit fromReaction
.Longer term we could potentially combine the two classes entirely (we can defer this to a future PR to speed up the release of
v0.4.0
).