Tools around Bluebild@EPFL
Project description
bluebild-tools
Tools around bluebild@EPFL
Installation
$ pip install bluebild-tools --upgrade
Usage
Check whether CuPy can be used
from bluebild_tools import cupy as bbt_cupy
use_cupy = bbt_cupy.is_cupy_usable()
You can set the MUST_CUPY
environment variable to influence the behavior of the function:
- With
MUST_CUPY
unset or set to 0, theuse_cupy
boolean variable will be set toFalse
if CuPy can't be used and set toTrue
if CuPy can be used. - With
MUST_CUPY
set to 1, the process will be killed if CuPy is not usable. - With
MUST_CUPY
set to 0, no attempt will be made to use CuPy (i.e.use_cupy
will be set toFalse
, always).
Note
If CuPy is found unusable, the following environment variables are automatically set to 0:
CUPY_PYFFS
CUPY_PYLOPS
That way, the pyFFS (https://github.com/imagingofthings/pyFFS) and PyLops (https://github.com/PyLops/pylops) packages can be imported with CuPy support disabled.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bluebild-tools-0.0.3.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file bluebild-tools-0.0.3.tar.gz
.
File metadata
- Download URL: bluebild-tools-0.0.3.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33b3b0f2e800dfb4e6df8f93955af8c9584a75373c833a382b7f33c581529dad |
|
MD5 | 3e2af01617cb089674d81f234bf9adb6 |
|
BLAKE2b-256 | 9de67b1d0effc504214f73e33bb41ca93c079b5964176b6a12c82b5810799691 |
File details
Details for the file bluebild_tools-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: bluebild_tools-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 170c36c5455701081cc66cd9bf9ef8ca06af137fcd0100244e548adfaec1ed33 |
|
MD5 | a1acec7d40e4925e85a7d4067e1c37eb |
|
BLAKE2b-256 | c94aa6b17410598053708e9f75e72b88766098bbd4d7f4e79af56f0f09d00587 |