-
Notifications
You must be signed in to change notification settings - Fork 0
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
extension/cli #24
extension/cli #24
Conversation
Hello @HerrHorizontal! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-06-07 09:51:16 UTC |
@HerrHorizontal, thanks for this PR. I have one general comment before going into detail. |
So the changes related to this PR did only affect the behavior in the Indeed, the |
… into extension/cli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got some individual suggestions in a few places. Overall, please follow Eileen's request to factor out duplicated code.
Co-authored-by: Max Fischer <[email protected]>
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these changes.
Now that the common code has been factored out of the CLI, I am having a hard time finding out what is actually different about them. As far as I can tell, static
/dynamic
uses --pool-files
as static_pool_files
/dynamic_pool_files
whereas hybrid
has separate --static-pool-files
and --dynamic-pool-files
. Is that correct?
If that's the only change, I don't think that's worth having three quasi-equivalent CLIs. Just implement only the hybrid
and people can still get the static/dynamic behaviour by just not providing the other file type.
So yes you are right. The only difference is in the pool type and the subsequent creation of the pool in the simulator (the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your deduplication efforts, this helps a lot.
As @maxfischer2781 already mentioned it might be great to reduce the cli to just one command as the hybrid function manages to set up the whole simulation 👍
In case you are integrating your create_simulator
function back into the hybrid function you can also ignore the comment on adding type hints.
In this case we don't need the group (static, dynamic, hybrid) anymore, aren't we? We could just work with a single command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if you want another review already.
From my point of view the code is good to go now 👍
I have further simplified the CLI by getting rid of the unnecessary subcommand. @eileen-kuehn, @maxfischer2781 could you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go 👍
This is a draft for the simulate CLI. It expands the already existent CLI script to support additional choices in the defintion of the simulator object related to caching.