SeapiPy
A Surface evolver API for python
Documentation:
https://seapipy.readthedocs.io/
Installation
Usage
To create a simple tissue 10x10 tissue, you can create a lattice object and initialize the vertices, edges and cells of the system. Then, you might create values for the cell volumes directly. You could also create normally distributed tensions for the edges.
import seapipy as sep
lattice = sep.lattice_class.Lattice(10, 10)
vertices, edges, cells = lattice.create_example_lattice()
volume_values = {k: 500 for k, v in cells.items()}
initial_edges_tensions = lattice.get_normally_distributed_densities(edges)
Then, you could create the Surface Evolver object using this variables and then initialize the Surface Evolver slate where all the functions will be written into, before saving to disk
se_object = sep.surface_evolver.SurfaceEvolver(vertices,
edges,
cells,
initial_edges_tensions,
volume_values,
polygonal=False)
se_file = se_object.generate_fe_file()
The polygonal=False allows curved edges to exist in the tissue. Now, various Surface Evolver functions might be added to the file buffer in the se_file variable. For example we could add an initial relaxing for the tissue with
se_object.initial_relaxing()
Afterwards, we could add a saving function to create a checkpoint in the Surface Evolver simulation using
se_object.save_one_step("path/to/saving/checkpoint", "step_")
Which would save the state of the Surface Evolver simulation at "path/to/saving/chekcpoint" with name "step_" followed by the number of times it has been saved. Finally you could save the whole Surface Evolver slate into the disk and run it using
se_object.save_fe_file("SurfaceEvolverFile")
sep.command.run_evolver("path/to/SurfaceEvolverFile", "path/to/SurfaceEvolverExecutable")
How to cite us
Metadata
Release files for seapipy 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seapipy-0.2.1.tar.gz | 12.6 kB | Without provenance | Details for seapipy-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seapipy-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for seapipy-0.2.1-py3-none-any.whl |
Total release size: 25.1 kB
Release files / seapipy-0.2.1.tar.gz
| Download URL | seapipy-0.2.1.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e47a7f0af10e487da3af71849d8c7677b19f7cc76d9cbb7b15ece447bc3bd058
|
|
BLAKE2b-256 checksum How to use checksums |
88ac67998870dd025e9a816e8b16795fab608238bf8a180b0dd83eaa3178f282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / seapipy-0.2.1-py3-none-any.whl
| Download URL | seapipy-0.2.1-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36c7ab5557cbd460fcfa3bea6610eafb52effe5fe8d1218d0474417f0d336100
|
|
BLAKE2b-256 checksum How to use checksums |
6805a9408d3ae28adee9481e17bcfc3577edb46056cb2d55a429a675f2c4d8d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for seapipy 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.