sybila / eBCSgen

eBCSgen - BioChemical Space Language support tool.
https://ebcsgen.readthedocs.io/
MIT License
2 stars 4 forks source link

Insert parsing logic improved #91

Closed mopichalova closed 7 months ago

mopichalova commented 7 months ago

Insert methods (insert_atomic_to_struct, insert_struct_to_complex, insert_atomic_to_complex) fixed in accordance with BCSL. The changes include ensuring proper matching and handling cases where the replaced agent is unspecified. Additionally, a new utility function, is_empty, has been added to check if an agent is empty.

Close #72

mopichalova commented 7 months ago

I am unsure about raising ComplexParsingError, especially the error that is used for the error message. Can you please check that?