Skip to content

Allow CLI dumps without Matplotlib - #34

Merged
paulmueller merged 1 commit into
AFM-analysis:masterfrom
CAOShurong:codex/allow-cli-without-matplotlib
Nov 18, 2026
Merged

paulmueller merged 1 commit into
AFM-analysis:masterfrom
CAOShurong:codex/allow-cli-without-matplotlib

Conversation

@CAOShurong

Copy link
Copy Markdown

Both CLI commands write their output and then raise ValueError: Please install matplotlib for plotting when Matplotlib is absent, even without --plot. Matplotlib has been optional since 0.5.4.

Skip the plotting dependency check when no plot was requested, and skip display when there are no figures. Explicit plotting still reports the missing dependency.

Replaces the empty CLI test stubs with tests for wave and packed output, output files, empty experiments, help/version, missing input and optional plotting. Refs #13.

Validation: 43 tests pass from source and the installed wheel on Windows/Python 3.13; seven new cases fail on unchanged master. Both installed commands now exit successfully without Matplotlib. Flake8 and package checks pass. Plotting calls are covered with a test double; a graphical display was not tested.

@paulmueller
paulmueller merged commit 7b49230 into AFM-analysis:master Nov 18, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants