Skip to content

Commit

Permalink
Update for addressing KRS alignment error
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorFWild committed Nov 28, 2024
1 parent 099d9f5 commit f8db1cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ligand_neighbourhood_alignment/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,16 +492,16 @@ def _assign_dataset(dataset, assemblies, xtalforms, structure, structures):
)

if (closest_xtalform_id is None) & (deltas is None):
logger.info(f"No reference in same spacegroup for")
logger.info(f"No reference in same spacegroup as: {dataset.dtag}")
logger.info(f"Structure path is: {dataset.pdb}")
raise Exception()
raise Exception(f"No reference in same spacegroup as: {dataset.dtag}\nStructure path is: {dataset.pdb}")

if np.any(deltas > 1.1) | np.any(deltas < 0.9):
logger.info(f"No reference for dataset")
logger.info(f"No reference for dataset: {dataset.dtag}")
logger.info(f"Deltas to closest unit cell are: {deltas}")
logger.info(f"Structure path is: {dataset.pdb}")

raise Exception()
raise Exception(f"No reference for dataset: {dataset.dtag}\nDeltas to closest unit cell are: {deltas}\nStructure path is: {dataset.pdb}")

return closest_xtalform_id

Expand Down

0 comments on commit f8db1cc

Please sign in to comment.