-
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
Support configuration for multiple projects #309
Conversation
Looks great! I've not used pydantic before, pretty cool! I would consider having the tag operations be an array to allow for multilevel configuration sharing, as we could have e.g.
or have groups of tags, or something else. Just an idea though, not sure if it actually reflects the project needs, this should be enough for the time being |
…lidator is also a classmethod Setting the validators as `classmethod` will fail for some validations
…n base data object
`config.py` needs it
## Project configs ## Common - add env variable for project configs location - mount project configs location - make tag operations a list in config (limited to length 1 for now) - make config functions return `PixlConfig | Any` to get type hints - replace deprecated pydantic features - add utility function to load project config by slug only ### CLI - install cli as editable to find env files correctly - add function to check env for all env.sample keys ### orthanc-anon project config - orthanc anon now cofigurable (tag ops, modalities, destionation) - add query for project slug by non-hashed values - move anonymisation logic to dcmd package ### EHR project config - mark only processing tests with run_containers fixture - use project config to determine destination --------- Co-authored-by: Milan Malfait <[email protected]>
* Add documentation for Parquet files and export process * Formatting * Move `TODO` to issue #306 * Remove PR references * Formatting * Move specific details to `pixl_core` docs and add links * Update directory structure on the FTPS server * Formatting * Rename docs/data -> docs/file_types * Link to `file_types` documentation * Add directory structures to docstrings * Update upload.py Co-authored-by: Stef Piatek <[email protected]> * Fix docs link Co-authored-by: Jeremy Stein <[email protected]> * Clarify that the radiology reports go through Cogstack Co-authored-by: Jeremy Stein <[email protected]> * Add note about test files Co-authored-by: Jeremy Stein <[email protected]> --------- Co-authored-by: Stef Piatek <[email protected]> Co-authored-by: Jeremy Stein <[email protected]>
* docs: better editable install instructions * docs: editable install of pytest-pixl
`field_validator` is only available in `pydantic>-2.0`
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.
Really nice, thanks both 🎉
Avoids circular imports
This reverts commit 6ce589e.
Current status
config-template/example-config.yml
pydantic
model of project configurationpydantic
modelcore.upload
so it now has anUploader
interface for uploading DICOM and Parquet files to the right destination depending on the project's configTo do
.secrets.env
with the relevant envvars on GitHub CIFixes #232