Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.11.2
- fix: `python -m chipstream.cli` failed with ModuleNotFoundError
0.11.1
- enh: don't show rounded 100% in CLI progress
- setup: bump dcnum to 0.31.2
Expand Down
2 changes: 1 addition & 1 deletion chipstream/cli/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from _main import main
from ._main import main

if __name__ == '__main__':
main()
15 changes: 15 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import subprocess
import sys

import dcnum.read
import h5py
import numpy as np
Expand Down Expand Up @@ -201,6 +204,18 @@ def test_cli_limit_events(cli_runner, limit_events, dcnum_yield,
assert h5.attrs["experiment:event count"] == dcnum_yield


def test_cli_python_m():
"""Run the CLI via `python -m chipstream.cli`"""
result = subprocess.run(
[sys.executable, "-m", "chipstream.cli", "--version"],
capture_output=True,
text=True,
check=False,
)
assert result.returncode == 0, result.stderr
assert chipstream.__version__ in result.stdout


def test_cli_set_pixel_size(cli_runner):
path_temp = retrieve_data(
"fmt-hdf5_cytoshot_full-features_legacy_allev_2023.zip")
Expand Down
Loading