Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@diogomart
Copy link
Contributor

Serialize and de-serialize (JSON) the instance of ResidueTemplate on each Monomer. Also removed the link_labels attribute in Monomer, which was added in passing (never defined in the init) because the ResidueTemplate already has the link_labels.

For Polymers serialized with v0.6.1 and older, the residue template is recovered from the serialized ResidueChemTemplates, if present. I don't know at this time if it is guaranteed that the template will be in ResidueChemTemplates (maybe it's not if added manually by a user, I didn't check). But there's nothing we can do about it anyway.

@joanimato joanimato merged commit 1924eb8 into forlilab:develop Oct 22, 2025
1 check passed
@diogomart diogomart deleted the monomer_template_json_bound branch October 22, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants