Skip to content

Commit

Permalink
Fixed none handling in generate_cml_frags
Browse files Browse the repository at this point in the history
  • Loading branch information
kmlefran committed Dec 5, 2023
1 parent a508870 commit 3f6c0f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aiida_aimall/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
A plugin to interface AIMAll with AiiDA
"""

__version__ = "0.2.13"
__version__ = "0.2.14"
9 changes: 5 additions & 4 deletions aiida_aimall/workchains.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,12 @@ def generate_cml_fragments(params, cml_Dict):
frame = identify_connected_fragments(
inp, bb_patt=bb_patt, input_type=input_type, include_parent=True
)
frame_list.append(frame)
mol = frame.at[0, "Parent"]
frag_dict, done_smi = output_ifc_dict(mol, frame, done_smi)
dict_list.append(frag_dict)

if frame is not None:
frame_list.append(frame)
mol = frame.at[0, "Parent"]
frag_dict, done_smi = output_ifc_dict(mol, frame, done_smi)
dict_list.append(frag_dict)
unique_frame = count_uniques(frame, False, uni_smi_type=True)
if out_frame.empty:
out_frame = unique_frame
Expand Down

0 comments on commit 3f6c0f4

Please sign in to comment.