blob: 1f5068094130c317e81580e586554eb603a8d26a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- 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`
|