Skip to content
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

Unify env vars access #7084

Merged
merged 9 commits into from
Oct 4, 2023
Merged

Conversation

vgrau98
Copy link
Contributor

@vgrau98 vgrau98 commented Oct 3, 2023

Fixes #6879.

Description

Some environment variable called using os.get.environ("MONAI_VAR") instead of monai.utils.MONAIEnvVars.

Can't use monai.utils.MONAIEnvVars in monai.utils.module.py due to circular imports.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

vgrau98 and others added 6 commits October 3, 2023 22:37
Some environment variable called using `os.get.environ("MONAI_VAR")` instead of `monai.utils.MONAIEnvVars`.

 Can't use `monai.utils.MONAIEnvVars` in `monai.utils.module.py` due to circular imports.

Fixes: Project-MONAI#6879
Signed-off-by: vgrau98 <[email protected]>
`tests/test_transform.py`

Signed-off-by: vgrau98 <[email protected]>
@vgrau98 vgrau98 marked this pull request as ready for review October 4, 2023 13:41
@wyli
Copy link
Contributor

wyli commented Oct 4, 2023

/black

monai-bot and others added 2 commits October 4, 2023 16:17
Signed-off-by: monai-bot <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, I'm including 42913ef to unblock more integration tests.

@wyli
Copy link
Contributor

wyli commented Oct 4, 2023

/build

@wyli wyli enabled auto-merge (squash) October 4, 2023 17:05
Signed-off-by: Wenqi Li <[email protected]>
@wyli
Copy link
Contributor

wyli commented Oct 4, 2023

/build

@wyli wyli merged commit e8b79f7 into Project-MONAI:dev Oct 4, 2023
25 of 26 checks passed
wyli added a commit to Project-MONAI/research-contributions that referenced this pull request Oct 4, 2023
@vgrau98 vgrau98 deleted the 6879-unified-env-var-access branch October 4, 2023 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unified access of the relevant os.environ items
3 participants