Skip to content

Commit 09ad91b

Browse files
committed
Update scadnano.py
1 parent e4cea7c commit 09ad91b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

scadnano/scadnano.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5872,7 +5872,6 @@ def to_json_serializable(self, suppress_indent: bool = True, **kwargs: Any) -> D
58725872
ModificationType.three_prime,
58735873
ModificationType.internal]:
58745874
mods = self.modifications(mod_type)
5875-
mod_key = mod_type.key()
58765875
if len(mods) > 0:
58775876
mods_dict = {}
58785877
for mod in mods:
@@ -5886,7 +5885,7 @@ def to_json_serializable(self, suppress_indent: bool = True, **kwargs: Any) -> D
58865885
f"that share vendor code "
58875886
f"{mod.vendor_code}:\n{mod}\nand\n"
58885887
f"{mods_dict[mod.vendor_code]}")
5889-
dct[mod_key] = mods_dict
5888+
dct[mod_type.key()] = mods_dict
58905889

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

0 commit comments

Comments
 (0)