Skip to content

Commit

Permalink
pass rama_z and rota_z as separate dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
aj26git committed Dec 6, 2023
1 parent af88815 commit 3605cd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions iris_validation/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ def metrics_model_series_from_files(
if metric == "molprobity":
molprobity_data = json_data["molprobity"]
run_molprobity = False
if metric == "tortoize":
rama_z_data = json_data["tortoize"]
if metric == "rama_z":
rama_z_data = json_data["rama_z"]
calculate_rama_z = False
if metric == "map_fit":
reflections_data = json_data["map_fit"]
Expand Down
4 changes: 2 additions & 2 deletions iris_validation/metrics/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ def __init__(
residue_rama_z_score = None
elif check_resnum:
try:
residue_rama_z_score = rama_z_data[res_id]["rama_z"]
residue_rama_z_score = rama_z_data[res_id]
except KeyError:
residue_rama_z_score = None
else:
try:
residue_rama_z_score = rama_z_data[seq_num]["rama_z"]
residue_rama_z_score = rama_z_data[seq_num]
except KeyError:
residue_rama_z_score = None
# ext b-factor
Expand Down

0 comments on commit 3605cd6

Please sign in to comment.