Skip to main content

StoSpa2

Build Status Documentation Status


A Python binding of a C++ software package for stochastic simulations of spatially extended systems, StoSpa2. Code-base has been completely refactored since the previous version of StoSpa. Python bindings have also been included.

Installation

Easy way

pip install pystospa

Hard way

After cloning the following repository

git clone https://github.com/BartoszBartmanski/StoSpa2.git --recursive

do the following

cd StoSpa2
python setup.py install

This way of installing pystospa assumes the following requirements are met

  • scikit-build
  • setuptools
  • wheel
  • cmake
  • (optional) boost - if boost branch of StoSpa2 is used

Example

Let's consider the following chemical reaction

A \rightarrow \emptyset

happening at rate k. The python code for this simulation is as follows

import pystospa as ss

v = ss.Voxel([100], 1.0)
r = ss.Reaction(1.0, lambda x, y : x[0], [-1])
v.add_reaction(r)

s = ss.Simulator([v])
s.run("example.dat", 0.01, 500)

After importing pystospa, we create the voxel and reaction objects with

v = ss.Voxel([100], 1.0)
r = ss.Reaction(1.0, lambda x, y : x[0], [-1])

and then we add the reaction object to the voxel object.

v.add_reaction(r)

And finally, we pass the voxel objects, contained in a list, to a simulator object

s = ss.Simulator([v])
s.run("example.dat", 0.01, 500)

and we invoke the run function of the Simulator class, to run a stochastic simulation saving the state every 0.01 seconds for 500 steps.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pystospa-2.0.18-cp38-cp38-manylinux2010_x86_64.whl (115.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

pystospa-2.0.18-cp37-cp37m-manylinux2010_x86_64.whl (117.0 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

pystospa-2.0.18-cp36-cp36m-manylinux2010_x86_64.whl (117.0 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

pystospa-2.0.18-cp35-cp35m-manylinux2010_x86_64.whl (117.0 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

pystospa-2.0.18-cp34-cp34m-manylinux2010_x86_64.whl (117.0 kB view details)

Uploaded CPython 3.4mmanylinux: glibc 2.12+ x86-64

pystospa-2.0.18-cp27-cp27mu-manylinux2010_x86_64.whl (117.6 kB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

pystospa-2.0.18-cp27-cp27m-manylinux2010_x86_64.whl (117.6 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

File details

Details for the file pystospa-2.0.18-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pystospa-2.0.18-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 115.7 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for pystospa-2.0.18-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 43bfad8f094e06aa103dfc4b5fc7cbd8f0cbca8465e6e4e36b4db73821c75276
MD5 4ae6faac0c73311cc017b0a098436837
BLAKE2b-256 ec3fc08a212e804f0e2eb3cf92f99a8d2bc99621072ddb61654ebde52c1a1136

See more details on using hashes here.

File details

Details for the file pystospa-2.0.18-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pystospa-2.0.18-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 117.0 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for pystospa-2.0.18-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 180dbf5ab19d9e6740e1ace5022845628f03bc734ae92582effca437b0cbba61
MD5 9fa4824c5ef50206a41fd7c7a56cdd4f
BLAKE2b-256 0590472cb189690849c5458ac4bd82846d04fe79ab7b52595c55c0dc02ab65dd

See more details on using hashes here.

File details

Details for the file pystospa-2.0.18-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pystospa-2.0.18-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 117.0 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for pystospa-2.0.18-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 8fecf92014ef7ca9eb709f266a9c6068846d20c6ff9399f767ef4a52e27b6be3
MD5 009e7e520b09438695570b0aa619627e
BLAKE2b-256 05fbbfd8f67726e41ddc8ab174777dfdb1cd9adb5697c5018bebd632dd860d58

See more details on using hashes here.

File details

Details for the file pystospa-2.0.18-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pystospa-2.0.18-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 117.0 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for pystospa-2.0.18-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 df151d58de733baa92a5bbeb14d2185fe26979d936dce6a0d0f007eca1411c11
MD5 79e1d47f5d1cae930b161265652b0e31
BLAKE2b-256 509ab7bb443bb4762c2c16644b6e57b021916c219d1c8e944dda012faa51b404

See more details on using hashes here.

File details

Details for the file pystospa-2.0.18-cp34-cp34m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pystospa-2.0.18-cp34-cp34m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 117.0 kB
  • Tags: CPython 3.4m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for pystospa-2.0.18-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 346c4832aaa14c0ebbd927320e78ecd9957da531566db6fea50010c268ca87ac
MD5 a178f63fd464a442d8a96030642a860d
BLAKE2b-256 af3455e1081a22554f8c61cb327b6746b82b161046a91bd4661764d7571c678f

See more details on using hashes here.

File details

Details for the file pystospa-2.0.18-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pystospa-2.0.18-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for pystospa-2.0.18-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 723f7d140f21ca6e47e07f0f63ec815a53a9ace7f176e69057752c26b286fe91
MD5 d3bae3de9df9ffbf3890401f95d94fb3
BLAKE2b-256 942cc6c64c2ca77e50b126d757d507b425ecb002740a34d6fb959d18d0237e16

See more details on using hashes here.

File details

Details for the file pystospa-2.0.18-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: pystospa-2.0.18-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.7.5

File hashes

Hashes for pystospa-2.0.18-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 679543fe7425c1cfef23ad6fb54e6893740d3e37dc4ef473883f378ae3e21a99
MD5 9b878e67f6a2f521b7b28cfe61d55b5e
BLAKE2b-256 1de466a075adf519520e6434b7474ae41258c9854baa958740019dde04473acc

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.30

1 file

2.0.29

1 file

2.0.28

1 file

2.0.26

1 file

2.0.25

1 file

2.0.24

1 file

2.0.23

1 file

2.0.22

1 file

2.0.21

1 file

2.0.20

1 file

2.0.19

8 files

This release

2.0.18 This release

7 files

2.0.17

7 files

2.0.16

7 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page