Skip to content

Commit

Permalink
Added some last minute changes
Browse files Browse the repository at this point in the history
  • Loading branch information
glycojones committed Sep 19, 2024
1 parent 0a3a5c6 commit 130b667
Show file tree
Hide file tree
Showing 18 changed files with 317,914 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/iris_validation/graphics/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,15 @@ def _draw(self):
font_family='Arial'))

self.dwg.add(self.dwg.text(text=self.custom_labels['Previous'],
insert=(chain_view_bounds[2]-215, chain_view_bounds[1]+20),
insert=(chain_view_bounds[2]-210, chain_view_bounds[1]+20),
font_size=16,
style='text-align: right;',
font_family='Arial'))

self.dwg.add(self.dwg.text(text=self.custom_labels['Latest'],
insert=(chain_view_bounds[2]-55, chain_view_bounds[1]+20),
font_size=16,
style='text-align: left;',
font_family='Arial'))

if self.num_models > 1:
Expand Down
27 changes: 27 additions & 0 deletions tests/test_other.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import os
import time
import pytest
import importlib
from os import path

INPUT_DIR = './tests/test_data/KSWdata/'
OUTPUT_DIR = './tests/test_output/' + '{suffix}'

DATASET1_PATH = str(os.path.join(INPUT_DIR, "acnr")) + '{suffix}'


def test_acnr_noCOV_noMP_noRamaZ_spro ():
import iris_validation as iris
importlib.reload(iris)
job_name = "acnr_noCOV_noMP_noRamaZ_spro"
iris.generate_report(latest_model_path=DATASET1_PATH.format(suffix='.pdb'),
latest_reflections_path=DATASET1_PATH.format(suffix='_refined.mtz'),
previous_model_path=DATASET1_PATH.format(suffix='_refined.pdb'),
previous_reflections_path=DATASET1_PATH.format(suffix='_refined.mtz'),
output_dir=OUTPUT_DIR.format(suffix=""),
run_covariance=False,
run_molprobity=False,
calculate_rama_z=False,
multiprocessing=False,
output_name_prefix=job_name)
assert path.exists(OUTPUT_DIR.format(suffix=job_name) + ".html")
387 changes: 387 additions & 0 deletions tests/test_output/1m1d_noCOV_noMP_noRamaZ_mpro.html

Large diffs are not rendered by default.

Loading

0 comments on commit 130b667

Please sign in to comment.