Skip to content

Tools: Add CLI interface for suntools#884

Merged
gardner48 merged 47 commits into
developfrom
feature/suntools-library-parse-logs
Jun 5, 2026
Merged

Tools: Add CLI interface for suntools#884
gardner48 merged 47 commits into
developfrom
feature/suntools-library-parse-logs

Conversation

@balos1

@balos1 balos1 commented Mar 20, 2026

Copy link
Copy Markdown
Member

This PR adds a CLI interface to suntools along with a command to parse logs and filter them.

This is a part of a chain of PRs for suntools, starting with #883.

@balos1 balos1 added this to the SUNDIALS v7.8.0 milestone Mar 20, 2026
@balos1 balos1 marked this pull request as ready for review April 13, 2026 22:53
@balos1 balos1 requested a review from Copilot April 14, 2026 16:02
Base automatically changed from feature/suntools-library to develop May 25, 2026 15:37
@gardner48 gardner48 changed the title Add CLI interface for suntools Tools: Add CLI interface for suntools May 25, 2026
Comment thread suntools/src/suntools/logs.py Outdated
Comment thread suntools/src/suntools/logs.py Outdated
Comment thread suntools/src/suntools/logs.py Outdated
Comment thread suntools/src/suntools/logs.py Outdated
Comment thread test/unit_tests/suntools/test_cli_parse_logs.py Outdated
Comment thread test/unit_tests/suntools/test_cli_parse_logs.py Outdated
gardner48 and others added 4 commits June 1, 2026 06:19
#884 (comment)
#884 (comment)
#884 (comment)
#884 (comment)
#884 (comment)
#884 (comment)

Simplify the log filtering path by removing the extra log-line helpers, using parsed payload lengths to keep array continuations, and deleting the duplicate _get_history definition.

Signed-off-by: Cody Balos <balos1@llnl.gov>
#884 (comment)
#884 (comment)

Make the suntools Python tests share one repo-local import setup, rename the CLI helper to reflect what it runs, and fix the unit-test PYTHONPATH to point at suntools/src for all of the tests.

Signed-off-by: Cody Balos <balos1@llnl.gov>
@balos1 balos1 requested a review from gardner48 June 1, 2026 20:47
Comment thread test/unit_tests/suntools/CMakeLists.txt Outdated

@gardner48 gardner48 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor path fix

Comment thread test/unit_tests/suntools/CMakeLists.txt Outdated
@gardner48

gardner48 commented Jun 2, 2026

Copy link
Copy Markdown
Member

Looks like the issue is the CI container uses Python 3.8.10 but a newer Python is needed for the updated code

@balos1

balos1 commented Jun 3, 2026

Copy link
Copy Markdown
Member Author

Looks like the issue is the CI container uses Python 3.8.10 but a newer Python is needed for the updated code

I think we can change the minimum back to 3.8. I had bumped it to match sundials4py but I dont think we are using anything from 3.12 in these scripts.

@gardner48

Copy link
Copy Markdown
Member

I think we can change the minimum back to 3.8. I had bumped it to match sundials4py but I dont think we are using anything from 3.12 in these scripts.

I think there is some stuff like set[str] and list[str] | None that requires python 3.10

@balos1 balos1 requested a review from gardner48 June 4, 2026 23:58
@gardner48 gardner48 merged commit a03f1c4 into develop Jun 5, 2026
53 checks passed
@gardner48 gardner48 deleted the feature/suntools-library-parse-logs branch June 5, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted This pull request includes code written with the assistance from AI tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants