403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.116
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/science/py-MDAnalysis/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/science/py-MDAnalysis/files/patch-MDAnalysis_transformations_base.py
--- 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`

Youez - 2016 - github.com/yon3zu
LinuXploit