Closed jaclark5 closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.32%. Comparing base (
df74ac1
) to head (d9c2cfa
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
We should potentially add in a future PR a deprecation warning for reset_index
Two changes are made: 1) Add keyword argument to Compound.remove() for resetting the labels to achieve two goals. First, if all children of some category are removed, the parent category label will inherently be removed, while the ports are also renumbered. 2) In Compound.add() if a single Compound is added without a label, the Compound.name attribute is used instead of Compound.class.name to align with the default behavior in:
PR Summary:
Resolves #1172
Using the code in the issue where the last line is now,
Molecule.remove(remove_array, reset_labels=True)
, the results are now:After
PR Checklist