File: test_plot_reflections.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-- 516 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

import shutil
import subprocess


def test_run(dials_data, tmp_path):
    subprocess.run(
        (
            shutil.which("dials.plot_reflections"),
            dials_data("centroid_test_data", pathlib=True) / "experiments.json",
            dials_data("centroid_test_data", pathlib=True) / "integrated.refl",
            "scan_range=0,5",
        ),
        cwd=tmp_path,
        capture_output=True,
    ).check_returncode()
    assert (tmp_path / "centroids.png").is_file()