-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add CLI to run WSIMOD #38
Conversation
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.
All looks good to me
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.
The CLI seems to run well/as expected, but since new dependencies have been added, all three of the requirements files with the pinned versions need to be updated.
run: python -m pip install -r requirements-dev.txt | ||
run: | | ||
python -m pip install -r requirements-dev.txt | ||
python -m pip install . |
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.
You are not currently installing the pinned versions of the main packages here because they are not specified in the requirements-dev.txt
. You can see that pandas etc is being installed at the python -m pip install .
step in the CI https://github.com/ImperialCollegeLondon/wsi/actions/runs/6875139142/job/18698156546
Just to check, are you intentionally not updating the |
No, that's just me being dumb... updated now. |
Adds a CLI for using WSIMOD directly from the terminal.
The main work here has been coming up with an input file structure and processing that can provide enough flexibility to create the appropriate inputs for WSIMOD in a sort of declarative way without becoming too complicated. The chosen format has been YAML, as TOML was looking really odd. The data processing let us run the quickstart demo directly from an input file. An example settings file has been provided.
The most difficult part has been the data processing. Some manipulation has been included which, hopefully, covers many use cases, but ultimately is up to the user to provide input files simple and clean enough such that can be used directly by WSIMOD without too much processing. It is simply not possible to provide custom pre-processing scripts.
TODO