Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds terminal widget and ability to run RAT #28

Merged
merged 23 commits into from
Oct 4, 2024

Conversation

alexhroom
Copy link
Collaborator

@alexhroom alexhroom commented Sep 5, 2024

This PR adds a terminal widget and the ability to run RAT within RasCAL-2.

Fixes #5 and #9.

Changes:

  • adds a TerminalWidget which displays logging data and event data for a RAT run (including GUI progress bar for DREAM)
  • added the RATRunner class which runs RAT in a separate Process and handles event and result data
  • adds functions to the MainWindowPresenter for starting and interrupting a RAT run and handling the outcome, and connects these to the relevant buttons on the Controls widget
  • adds a Terminal menu to the menu bar with an action to clear the terminal
  • adds methods to the MainWindowView which handle results and resets widgets after a run
demo.mp4

@alexhroom alexhroom linked an issue Sep 5, 2024 that may be closed by this pull request
@alexhroom
Copy link
Collaborator Author

alexhroom commented Sep 6, 2024

tests failing because the RATapi version is out of date - will update it after i split resampleParams (done)

@alexhroom alexhroom force-pushed the 5-9-run-and-console branch 2 times, most recently from 89d6cdd to 76ac9ad Compare September 11, 2024 11:23
@alexhroom alexhroom marked this pull request as ready for review September 11, 2024 11:43
Copy link
Contributor

@StephenNneji StephenNneji left a comment

Choose a reason for hiding this comment

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

This looks good and works very well. Please see other comments
I had another look at RasCAL-1 and realised it cleared the terminal before each run which felt less cluttered to me because after a few runs, I would get lost trying to scroll to the top of the current run. Maybe a toggle/setting to hide the history and show current run only might be useful, what do you think?

rascal2/widgets/terminal.py Outdated Show resolved Hide resolved
rascal2/ui/view.py Show resolved Hide resolved
rascal2/widgets/terminal.py Outdated Show resolved Hide resolved
rascal2/widgets/terminal.py Show resolved Hide resolved
tests/core/test_settings.py Outdated Show resolved Hide resolved
rascal2/ui/presenter.py Outdated Show resolved Hide resolved
rascal2/core/runner.py Outdated Show resolved Hide resolved
rascal2/core/runner.py Outdated Show resolved Hide resolved
Copy link
Contributor

@StephenNneji StephenNneji left a comment

Choose a reason for hiding this comment

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

Almost there, please see comments

rascal2/widgets/terminal.py Show resolved Hide resolved
rascal2/ui/view.py Outdated Show resolved Hide resolved
rascal2/ui/model.py Show resolved Hide resolved
rascal2/__init__.py Show resolved Hide resolved
rascal2/widgets/terminal.py Outdated Show resolved Hide resolved
rascal2/core/settings.py Outdated Show resolved Hide resolved
@alexhroom alexhroom force-pushed the 5-9-run-and-console branch from 50b6e45 to 847007b Compare October 4, 2024 08:56
Copy link
Contributor

@StephenNneji StephenNneji left a comment

Choose a reason for hiding this comment

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

Thanks for the hard work on this one

@alexhroom alexhroom merged commit 0844840 into RascalSoftware:main Oct 4, 2024
10 checks passed
@alexhroom alexhroom deleted the 5-9-run-and-console branch October 4, 2024 11:44
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.

Setup the process to run the optimization Create Terminal widget
2 participants