File: test_plot_reflections.py

package info (click to toggle)
dials 3.12.1%2Bdfsg3-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,068 kB
  • sloc: python: 119,028; cpp: 33,923; makefile: 158; sh: 144
file content (16 lines) | stat: -rw-r--r-- 473 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 procrunner


def test_run(dials_data, tmp_path):
    procrunner.run(
        (
            "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",
        ),
        working_directory=tmp_path,
    ).check_returncode()
    assert (tmp_path / "centroids.png").is_file()