Skip to content

45 publish in pypi #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,9 @@ cython_debug/
/playground_files

*.pyc

# Ignore the PyPI configuration file
.pypirc

# Ignore vscode settings
.vscode/
16 changes: 0 additions & 16 deletions .vscode/launch.json

This file was deleted.

27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# ModularCirc

[![Actions Status][actions-badge]][actions-link]
[![PyPI version][pypi-version]][pypi-link]
[![PyPI platforms][pypi-platforms]][pypi-link]

The scope of this package is to provide a framework for building **0D models** and **simulating cardiovascular flow** and **mechanics**. Conceptually, the models can be split into three types of components:
1. **Heart chambers**
2. **Valves**
3. **Vessels**
3. **Vessels**

## Clone the ModularCirc GitHub repo locally

Expand Down Expand Up @@ -41,13 +45,22 @@ Proceed to installing the ModularCirc package.

## Installation

From the repo directory, run:
To install the pip package:

```bash
python -m pip install ModularCirc_LevanBokeria
```

From source:

After downloading the GitHub repository, from the repo directory run:

```bash
pip install ./
```

This will install the package based on the `pyproject.toml` file specifications.
This will install the package based on the `pyproject.toml` file specifications.


## Steps for running basic models
1. Load the classes for the model of interest and the parameter object used to paramterise the said model:
Expand Down Expand Up @@ -116,3 +129,11 @@ You can run locally the tests by running the following command:
python -m unittest discover -s tests
```
there is also a autamtated test pipeline that runs the tests on every push to the repository (see [here](.github/workflows/ci.yml)).

<!-- prettier-ignore-start -->
[actions-badge]: https://github.com/alan-turing-institute/ModularCirc/workflows/CI/badge.svg
[actions-link]: https://github.com/alan-turing-institute/ModularCirc/actions
[pypi-link]: https://test.pypi.org/project/ModularCirc-LevanBokeria/
[pypi-platforms]: https://img.shields.io/pypi/pyversions/ModularCirc-LevanBokeria
[pypi-version]: https://img.shields.io/pypi/v/ModularCirc-LevanBokeria
<!-- prettier-ignore-end -->
Binary file not shown.
16 changes: 7 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
requires = ["setuptools >= 77.0.3", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "ModularCirc"
version = "0.1.1"
description = "A python package for creating and running 0D models of the cardiovascular system"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "MIT" }
version = "0.1.2"
authors = [
{name = "Maximilian Balmus", email = "[email protected]"}
]
description = "A python package for creating and running 0D models of the cardiovascular system"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICEN[CS]E*"]

dependencies = [
"matplotlib",
Expand All @@ -31,6 +32,3 @@ notebooks = ["ipykernel"]
"Homepage" = "https://github.com/alan-turing-institute/ModularCirc"
"Source Code" = "https://github.com/alan-turing-institute/ModularCirc"
"Bug Tracker" = "https://github.com/alan-turing-institute/ModularCirc/issues"

[tool.setuptools]
packages = ["ModularCirc"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.