ports/science/py-MDAnalysis/files/patch-MDAnalysis_transformations_base.py
Thierry Thomas 40568cac8e science/py-MDAnalysis*: upgrade to 2.2.0
Version 0.19.2 is too old and does not support Python-3.9.

Remark: threadpoolctl is disabled in this port. See
<https://github.com/MDAnalysis/mdanalysis/pull/2950> for the impacts on
performance.

Releases notes at <https://github.com/MDAnalysis/mdanalysis/releases>.

PR:		264716
Approved by:	yuri (maintainer)
2022-06-21 19:26:21 +02:00

23 lines
765 B
Python

--- MDAnalysis/transformations/base.py.orig 2022-06-02 18:49:09 UTC
+++ MDAnalysis/transformations/base.py
@@ -26,8 +26,9 @@ Transformations Base Class --- :mod:`MDAnalysis.transf
.. autoclass:: TransformationBase
-"""
+Note: threadpoolctl does not yet run on FreeBSD
from threadpoolctl import threadpool_limits
+"""
class TransformationBase(object):
@@ -113,8 +114,7 @@ class TransformationBase(object):
The thread limit works as a context manager with given `max_threads`
wrapping the real :func:`_transform` function
"""
- with threadpool_limits(self.max_threads):
- return self._transform(ts)
+ return self._transform(ts)
def _transform(self, ts):
"""Transform the given `Timestep`