-
Notifications
You must be signed in to change notification settings - Fork 12
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
Major refactor of code to use HazenTask classes #266
Conversation
Object orientated hazenlib
move version to setup.py only
Syncs requirements.txt with webapp
Add output path
relaxometry, snr_map, acr_uniformity
Adds new docs
relaxometry still failing, unsure how to use this function
…into webapp-core-tasks
|
||
# # Service containers to run with `container-job` | ||
# services: | ||
# # Label used to access the service container | ||
# postgres: | ||
# # Docker Hub image | ||
# image: postgres | ||
# # Provide the password for postgres | ||
# ports: | ||
# - 5432:5432 | ||
# env: | ||
# POSTGRES_DB: hazen_test | ||
# POSTGRES_USER: test_user | ||
# POSTGRES_PASSWORD: test_user_password | ||
# # Set health checks to wait until postgres has started | ||
# options: >- | ||
# --health-cmd pg_isready | ||
# --health-interval 10s | ||
# --health-timeout 5s | ||
# --health-retries 5 | ||
|
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.
This is commented out in tests_development.yml
but not tests_release.yml
– is that intentional or an oversight?
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.
oversight, will correct now
newdocs/source/contributors.rst
Outdated
* `Jane Ansell <https://github.com/ansellj>`_ | ||
* `Jamie Small <https://github.com/JamieSmall>`_ | ||
* `Elizabeth Stamou <https://github.com/elizaGSTT>`_ | ||
* `Elizabeth Stamou <https://github.com/elizaGSTT>`_ |
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.
So good we included her twice
Tested:
Broadly reviewed other files. Good to go. |
Following work to separate the webapp and hazenlib functionality of the hazen project the decision was made to take this opportunity to standardise hazen tasks.
This led to the introduction of the HazenTask class, all tasks that hazen performs will inherit from this superclass leading to a number of benefits:
Currently, all MagNet object tasks currently performed as part of routine QA at GSTT have been refactored to use the HazenTask syntax. The following tasks have not been converted to the HazenTask syntax but are still available on the CLI interface:
snr_map @pcw24601
relaxometry @pcw24601
acr_uniformity @YassineRMH
These tasks should be converted to the new syntax when possible to allow them to be accessible on the web frontend.