Skip to content

Commit

Permalink
Update scadnano.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-doty committed Sep 3, 2023
1 parent e4cea7c commit 09ad91b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scadnano/scadnano.py
Original file line number Diff line number Diff line change
Expand Up @@ -5872,7 +5872,6 @@ def to_json_serializable(self, suppress_indent: bool = True, **kwargs: Any) -> D
ModificationType.three_prime,
ModificationType.internal]:
mods = self.modifications(mod_type)
mod_key = mod_type.key()
if len(mods) > 0:
mods_dict = {}
for mod in mods:
Expand All @@ -5886,7 +5885,7 @@ def to_json_serializable(self, suppress_indent: bool = True, **kwargs: Any) -> D
f"that share vendor code "
f"{mod.vendor_code}:\n{mod}\nand\n"
f"{mods_dict[mod.vendor_code]}")
dct[mod_key] = mods_dict
dct[mod_type.key()] = mods_dict

dct[strands_key] = [strand.to_json_serializable(suppress_indent) for strand in self.strands]

Expand Down

0 comments on commit 09ad91b

Please sign in to comment.