We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1076427 commit 9cfbe00Copy full SHA for 9cfbe00
src/dicomweb_client/file.py
@@ -568,7 +568,7 @@ def __init__(
568
# numpy 2 no longer has prod, but Python >= 3.8 does. We either have
569
# one or the other, so use the python math.prod method when available
570
# and fall abck to np if not.
571
- self._prod = math.prod if hasattr(math, 'prod') else np.prod
+ self._prod = getattr(math, 'prod', np.prod)
572
573
self._attributes = {
574
_QueryResourceType.STUDIES: self._get_attributes(
0 commit comments