pyloggrid.Libs.singlethread_numpy

Ensures that numpy is single-threaded. Does not disrupt Cython threading.

Warning

Must be imported top-level, before any other library that uses numpy !!

Example

Replace

import numpy as np

by

from pyloggrid.Libs.singlethread_numpy import np

Module Contents

np