You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you try to append the same subcomponent to a component's features attribute, it throws an error (which I think it should) - but it also adds the subcomponent to the features list anyway.
Example code:
>>> ptet = sbol3.Component('pTetR', sbol3.SBO_DNA)
>>> circuit = sbol3.Component('circuit', sbol3.SBO_DNA)
>>> ptet_sc = sbol3.SubComponent(ptet)
>>> circuit.features += [ptet_sc]
>>> circuit.features += [ptet_sc]
throws an error, but circuit.features still has two copies of ptet_sc:
>>> circuit.features
[<sbol3.subcomponent.SubComponent object at 0x0000027E36E6F220>, <sbol3.subcomponent.SubComponent object at 0x0000027E36E6F220>]
The text was updated successfully, but these errors were encountered:
If you try to append the same subcomponent to a component's features attribute, it throws an error (which I think it should) - but it also adds the subcomponent to the features list anyway.
Example code:
The text was updated successfully, but these errors were encountered: