Skip to content

Commit c6cfa1f

Browse files
committed
Deal with null subj/obj ICs.
1 parent 932f5e1 commit c6cfa1f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/template_generation_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ def generate_class_graph_template(ccf_tools_df :pd.DataFrame, log_dict: dict):
353353
for _, r in error_log.iterrows():
354354
subj_ic = norm_ic_term(norm_ic_list, r["s"])
355355
obj_ic = norm_ic_term(norm_ic_list, r["o"])
356-
if subj_ic < obj_ic:
356+
if subj_ic is None or obj_ic is None:
357+
# do something?
358+
pass
359+
elif subj_ic < obj_ic:
357360
r["deltaIC"] = abs(subj_ic - obj_ic)
358361

359362

0 commit comments

Comments
 (0)