Skip to content

Conversation

@JoostJM
Copy link

@JoostJM JoostJM commented Jan 28, 2025

Fixes:

Fixes #202 by replacing the load_module() function with exec_module(). This follows the solution proposed on StackOverflow.

In importlib's `SourceFileLoader`, the `load_module` function has been deprecated since python 3.6 and scheduled to be removed.
Following the suggestions from https://stackoverflow.com/questions/19009932/import-arbitrary-python-source-file-python-3-3, replace this function with the `exec_module` function.
JoostJM added a commit to JoostJM/pyradiomics that referenced this pull request Jan 28, 2025
- Update the matrices baseline numpy arrays to newer version. Values are unchanged, matrices were simply loaded and saved again using `arr = numpy.load(<path>); numpy.save(<path>, arr);`.
- Ignore specific deprecation warning related to a deprecated function being used in PyKwalify. See also Grokzen/pykwalify#202 and Grokzen/pykwalify#203.
hjmjohnson pushed a commit to BRAINSia/pyradiomics that referenced this pull request May 10, 2025
- Update the matrices baseline numpy arrays to newer version. Values are unchanged, matrices were simply loaded and saved again using `arr = numpy.load(<path>); numpy.save(<path>, arr);`.
- Ignore specific deprecation warning related to a deprecated function being used in PyKwalify. See also Grokzen/pykwalify#202 and Grokzen/pykwalify#203.
hjmjohnson pushed a commit to AIM-Harvard/pyradiomics that referenced this pull request May 13, 2025
- Update the matrices baseline numpy arrays to newer version. Values are unchanged, matrices were simply loaded and saved again using `arr = numpy.load(<path>); numpy.save(<path>, arr);`.
- Ignore specific deprecation warning related to a deprecated function being used in PyKwalify. See also Grokzen/pykwalify#202 and Grokzen/pykwalify#203.
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.

PyKwalify uses deprecated load_module function in core._load_extensions()

1 participant