mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 16:21:50 -04:00
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)
23 lines
765 B
Python
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`
|