Cython functions to speed up Brightway2 LCA calculations
Project description
A series of function written in Cython that speed up critical functions to improve the overall performance of the Brightway2 life cycle assessment framework.
In order to avoid having to have Cython as a dependency, this library includes both the pyx and Cython-generated c code, and is distributed as pre-compiled wheels, except on Linux where access to a C compiler is assumed.
Building C files
cython -t bw2speedups/_consolidate.pyx bw2speedups/_indexer.pyx bw2speedups/_find_first.pyx
Testing
Install the library into a temporary environment, then manually run the separate test files, i.e. python bw2speedupds/test/test_consolidate.py. This isn’t the most elegant, but it will do for now.
Building wheels
pip install wheel python setup.py bdist_wheel
Note that this has to be done separately for each OS and environment, i.e. Windows 32-bit and 64-bit versions of Python are separate wheels, even with the same version of Windows.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for bw2speedups-2.1-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe152b0b91a80c240359c585a95c8d006183637c31863cb8c6e0e884dd30439 |
|
MD5 | 1602e578af75a1cf42e4b8bf850a686d |
|
BLAKE2b-256 | 38ecf385c35adec90174699cf8a48fe304cd1f7f52e076296691820a3af05c46 |
Hashes for bw2speedups-2.1-cp35-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4079abd70a9118bad38e1f5f3748b2271458547369fc8adede54b105480115c |
|
MD5 | e855e2ece91f6d3c19ec63afed46bc44 |
|
BLAKE2b-256 | ca756d2a4155aa13047a8deed021eb516440763604ebf3eb0c857f1007d19eee |
Hashes for bw2speedups-2.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613ddc275dfd41666d81895b3ffccd8378ea3a257709eed594f5165a77196b0b |
|
MD5 | 1c78754397e8a2ed48d43473c6ea64c0 |
|
BLAKE2b-256 | 00360cfb93d56c6331a09d129b54b8d796b54a71035810ed6f320a9c7a0e5d25 |
Hashes for bw2speedups-2.1-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00b3be5ddf7f58745aabe069e12d052bf033e142fa901855577c6e118d079ddb |
|
MD5 | a12754ff3dfd576f4431928d70677246 |
|
BLAKE2b-256 | 52f92d99c5a7564f44a704814df1935868c7bb58a7a0c65c6d68fd53799eda0c |
Hashes for bw2speedups-2.1-cp34-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b469f948da142056b1295b928d68b03593d977bb22308784b967c57958cca62 |
|
MD5 | 501209fc340800fd99845841977a8560 |
|
BLAKE2b-256 | 492bd23f1618c76a508addc1091c94fc3fbec50b47726034c28c67ce110fddce |
Hashes for bw2speedups-2.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f65bf34ce0c633d40217fd8bd1131910efa98ae37b7b363c47dcd3f90393e3 |
|
MD5 | a966af6e48c5ea10d53c9ae540903c37 |
|
BLAKE2b-256 | d3e6817b32f4fd8a1e3361021ccd5e9e305eae5a0829a09b6b490eabe6cde1df |
Hashes for bw2speedups-2.1-cp34-cp34m-macosx_10_5_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4dbfac4fac57b16f58ff88a69f104efae8e3b64b9fa05fe644187706280fb2d |
|
MD5 | 18cd32ef81936e0b164b4ea7697348c1 |
|
BLAKE2b-256 | 1d2342ec00b62d1513ed06ba5a460c2a89f1b60ba0883a25c6de4fbbed340295 |
Hashes for bw2speedups-2.1-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbdff2cb24ea108add1828f8776dc560f61c92c9542be93a0526b62f2d323570 |
|
MD5 | 531736dbd7a40d60617de0ef7447a018 |
|
BLAKE2b-256 | f510cb8466edebf39f629ff088c6d7b0d97c2b7e26e70216b074865e2cebabbb |
Hashes for bw2speedups-2.1-cp27-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a336fbe29a8a443dfa75446575e0436d9da8ab8a3af44659fb6c8677f2003860 |
|
MD5 | 2116c680a17d6b1197e163ef859fee87 |
|
BLAKE2b-256 | ccb3ac2ed4ad45f3aa9c33a7cd787bdf425fae3888f4648e73fef1ae20a4e6df |
Hashes for bw2speedups-2.1-cp27-none-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb19a00754bf80841550bdcddbf346bb17e67ab3ce21f701f13e3283581eb745 |
|
MD5 | ef9e7c6574ba7d68b6cc2e4953283124 |
|
BLAKE2b-256 | 569f562ff32218c1459a0f551781d97b8a5a9b676e66f2965121e9f51e102935 |