Skip to main content

pystospa

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

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 Distribution

pystospa-2.0.19.tar.gz (773.2 kB view details)

Uploaded Source

Built Distributions

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

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

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.4mmanylinux: glibc 2.12+ x86-64

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

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

pystospa-2.0.19-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.19.tar.gz.

File metadata

  • Download URL: pystospa-2.0.19.tar.gz
  • Upload date:
  • Size: 773.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for pystospa-2.0.19.tar.gz
Algorithm Hash digest
SHA256 4babc4a261bed891addd0298f97b0ab7331dbe227fa1355b9b2a1a825744a253
MD5 9b59797810fbd85a68230316b1572922
BLAKE2b-256 d3806926351910fec0ac1fdc591cedd504f902fa13e6d8c6f4e2e6dc968b1e9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystospa-2.0.19-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.19-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6222d1f3b46684bc79ff58f8afad885c610ab1975adf6313f48d1aee37cbab66
MD5 deb288bdeb39535e0705e57861a3f94d
BLAKE2b-256 bda0ed25144ff5911f42e5b8f3cdc2031a1c15c22eb90eb40c6d952d6c0da7df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystospa-2.0.19-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.19-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 886a677f9892034d4819dbb3d2c2bc2dc82b773f9620047ce72332d3218b490e
MD5 83429f6511b7b597ca741d2640fcc654
BLAKE2b-256 ad7f85051ae28e3abac50d8d005d5cb3c484df62570d5e4a2ef9280458af8c6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystospa-2.0.19-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.19-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 91a68528516bcc15e3efdcd34a1f585f771eacb4a198211b35aa2acb4ef50bc4
MD5 8fca4ea45ff96dda066f4865f037550d
BLAKE2b-256 f55db786d0cd97cb7a5970d9b0e3f868ef32fc3a250a6fd884e478f9cfaf365f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystospa-2.0.19-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.19-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a91abdaee9fc92f3c9b36c4b3ebad25b21643251acf484fe583b25b04dc4bdc8
MD5 b544495eb287568248f4b5cac8bb57d0
BLAKE2b-256 f81a01744473134d0167bb4d322b2220ca3032ef6dd3b5eba48fb13ce9d6a6df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystospa-2.0.19-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.19-cp34-cp34m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 63e8a4fa8e057e23a967e3eec8747fc2c69a24077a5f65182e805b87b995c1c6
MD5 ead8412d2685debb8298e39f76e7fc6a
BLAKE2b-256 0e611bc6e52016a6d35f4f78852269386937f4d784d788612d236a640c8f89bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystospa-2.0.19-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.19-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f4cd11df6aac0766b9945ad6475c20b43d6158bee619b1501b31eec1f61e4a40
MD5 732d026b9c55dcdac37009513f3bb460
BLAKE2b-256 f4b4f08334cd27803fffaf92693fed604fbb2a4544dff08153c471be43ea0c39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pystospa-2.0.19-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.19-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2e7f1959a8f5ea26057ea711c7867e52a9e7c4de438294a7938b751ee16b6f9c
MD5 a20f66bf2724d9da08cb6b435567a862
BLAKE2b-256 b0dd0701056ea3ac5558f4edc6c926e3e2db700b04cfa510e16b282cf919e47a

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

This release

2.0.19 This release

8 files

2.0.18

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