Skip to content

Commit fae4c9b

Browse files
authored
Merge pull request #27 from virtualcell/sysbio-course-7
notebook for importing geometry
2 parents 1b703a6 + 505d776 commit fae4c9b

File tree

4 files changed

+443
-2
lines changed

4 files changed

+443
-2
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
[![codecov](https://codecov.io/gh/virtualcell/pyvcell/branch/main/graph/badge.svg)](https://codecov.io/gh/virtualcell/pyvcell)
66
[![Commit activity](https://img.shields.io/github/commit-activity/m/virtualcell/pyvcell)](https://img.shields.io/github/commit-activity/m/virtualcell/pyvcell)
77
[![License](https://img.shields.io/github/license/virtualcell/pyvcell)](https://img.shields.io/github/license/virtualcell/pyvcell)
8-
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/101BPDYqu4_PupqmunT6Qhextks_VT-8X?usp=sharing)
8+
9+
[//]: # "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/101BPDYqu4_PupqmunT6Qhextks_VT-8X?usp=sharing)"
910

1011
This is the python wrapper for vcell modeling and simulation for
1112

@@ -63,3 +64,13 @@ results.plotter.plot_concentrations()
6364
# Documentation
6465

6566
coming soon.
67+
68+
# Examples:
69+
70+
### Antimony example
71+
72+
[![Open in Colab ](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1aGttld4SKxuC7Vh-h1A7gsPIJT8u00fN?usp=sharing)
73+
74+
### Parameters example
75+
76+
[![Open in Colab ](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1nNlMvXuZdn7Ay8la0KOKmSwi6dSurkte?usp=sharing)

examples/notebooks/sysbio-3-geometry.ipynb

Lines changed: 422 additions & 0 deletions
Large diffs are not rendered by default.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pyvcell"
3-
version = "0.1.17"
3+
version = "0.1.18"
44
description = "This is the python wrapper for vcell modeling and simulation"
55
authors = ["Jim Schaff <[email protected]>"]
66
repository = "https://github.com/virtualcell/pyvcell"

pyvcell/vcml/models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,14 @@ def add_surface(self, name: str, sub_volume_1: SubVolume | str, sub_volume_2: Su
291291
self.surface_classes.append(surface_class)
292292
return surface_class
293293

294+
@property
295+
def subvolume_names(self) -> list[str]:
296+
return [subvolume.name for subvolume in self.subvolumes]
297+
298+
@property
299+
def surface_class_names(self) -> list[str]:
300+
return [surface_class.name for surface_class in self.surface_classes]
301+
294302

295303
class StructureMapping(VcmlNode):
296304
structure_name: str

0 commit comments

Comments
 (0)