File: test_correlation_matrix.py

package info (click to toggle)
dials 3.25.0%2Bdfsg3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,112 kB
  • sloc: python: 134,740; cpp: 34,526; makefile: 160; sh: 142
file content (16 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from __future__ import annotations

import pathlib

import dials.command_line.correlation_matrix as dials_corr_mat


def test_corr_mat(dials_data, run_in_tmp_path):
    mcp = dials_data("vmxi_proteinase_k_sweeps", pathlib=True)
    args = []
    for i in [0, 1, 2, 3]:
        args.append(str(mcp / f"experiments_{i}.expt"))
        args.append(str(mcp / f"reflections_{i}.refl"))
    dials_corr_mat.run(args=args)
    assert pathlib.Path("dials.correlation_matrix.html").is_file()
    assert pathlib.Path("dials.correlation_matrix.log").is_file()