File: test_plot_scan_varying_model.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 (18 lines) | stat: -rw-r--r-- 583 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

from dials.command_line import plot_scan_varying_model


def test(dials_data, tmp_path, capsys):
    data_dir = dials_data("refinement_test_data", pathlib=True)
    plot_scan_varying_model.run(
        [
            str(data_dir / "glucose_isomerase_sv_refined.json"),
            f"output.directory={tmp_path}",
        ]
    )
    captured = capsys.readouterr()
    assert not captured.err
    output_dir = tmp_path / "scan-varying_model"
    assert (output_dir / "orientation.png").is_file()
    assert (output_dir / "unit_cell.png").is_file()