-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor the renee python package and move the GUI here #94
Conversation
copied from renee/main.py in ccbrpipeliner repo
need to wait for package structure changes from #139 before we can continue with this Update: it's merged now |
to prevent circular imports and make the code easier to maintain
rather than src/renee/__main__.py, so that the src files will be in the path via ./main.py
@samarth8392 .. Looks good to me ... can you please re-look and approve? |
I tried testing the gui using Take a look here: Line 178 in 8247801
|
Thanks for reporting this! I believe I've fixed it now |
Thanks for updating the two util functions. Now the error is coming from Line 59 in 9e12660
and Line 185 in 9e12660
I think
|
ok, I'm working through a couple more errors after this one, will let you know when it's working on my end |
Yes I'm working on going through and adding all the sub_args. I thought those with defaults would be automatically populated, but I guess that only happens via the CLI. |
also: remove unnecessary sys.exit(0) from dryrun. causes incorrect test failure with pytest
Thanks Kelly for fixing those errors, now it's related to SIF cache dir.
|
same behavior as before, just moved this from orchestrate() to its own function for the GUI to use too
Yeyy! The dryrun works now. I didn't submit a full run but I don't think there should be any issues there. If this is good enough, send me a 👍 and I will approve the PR and merge the branches. |
I think it is worthwhile to try submitting a full run just in case, since we don't have any unit tests for that section of the code |
they are no longer in shared resources dir
previous commit only fixed it for one, but there are two
I just submitted a full test run, all the rules worked file but jobby failed.
I think this is a RENEE issue because the file is in resources folder so it should be Line 232 in 2c930d7
also for
|
This is expected behavior if you did not run We are no longer using the jobby file in the resources directory, instead we'd like to have "single source" of jobby (and spooker) which is added to the path when you load ccbrpipeliner. |
Okay! Thanks!! In that case the test run was successful and I can now approve the PR. Great job @kelly-sovacool :) |
Go team! |
Changes
Moves the renee GUI from the ccbrpipeliner repo to this one (see
src/renee/gui.py
). Thelaunch_gui()
function (previously the main function of the GUI script in ccbrpipeliner) callsrun()
directly instead of using subprocess. Now the gui is a subcommand of renee and is launched by runningrenee gui
. Various static global variables and environmental variables are now setup dynamically with helper functions.Also:
__main__.py
to separate modules to prevent circular imports.testing
To test the GUI, switch to this branch and run
./bin/renee gui
.Issues
PR Checklist
(
Strikethroughany points that are not applicable.)CHANGELOG.md
with a short description of any user-facing changes and reference the PR number. Guidelines: https://keepachangelog.com/en/1.1.0/