Repository navigation
Conversation
main() and matrix_main() returned the result of _run_copykat_analysis(). The console scripts generated for [project.scripts] call sys.exit(main()), and sys.exit() given a non-integer prints it to stderr and exits with status 1, so every successful copykat-py / copykat_matrix run printed the whole result dict to stderr and reported failure. Python callers who want the results use copykat() or copykat_anndata(), which are unchanged. Fixes #2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
toresbe
force-pushed
the
fix/cli-exit-status
branch
from
October 8, 2026 15:05
266c7a6 to
b6132e7
Compare
toresbe
marked this pull request as ready for review
October 8, 2026 17:04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2.
main()andmatrix_main()returned the result dict from_run_copykat_analysis(). The console scripts generated for[project.scripts]callsys.exit(main()), andsys.exit()given a non-integer exits with status 1, so every successfulcopykat-py/copykat_matrixrun reported failure to the shell, workflow managers and schedulers.The two entry points now just run the analysis without returning its result.
copykat()andcopykat_anndata(), the Python APIs, still return the results as before.Checked, with the package installed normally (so the generated console scripts are used) and the 302-cell built-in example exported as
.mtx:maincopykat-pyexit statuscopykat_matrixexit statusprediction.txt,CNA_results.txtandCNA_raw_results_gene_by_cell.txtare byte-identical tomainfor both commands.🤖 Generated with Claude Code