Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
prismofeverything committed May 24, 2022
2 parents 4f95a55 + 4fcd2b9 commit 74bd581
Show file tree
Hide file tree
Showing 28 changed files with 1,508 additions and 897 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8]
python-version: [3.8, 3.9]
os: [ubuntu-latest]

steps:
Expand All @@ -24,7 +24,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
python-version: 3.9
channels: readdy/label/dev,conda-forge
- name: Install Conda Deps
shell: bash -l {0}
Expand All @@ -51,7 +51,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
python-version: 3.9
channels: readdy/label/dev,conda-forge
- name: Install Conda Deps
shell: bash -l {0}
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
python-version: 3.9
channels: readdy/label/dev,conda-forge
- name: Install Conda Deps
shell: bash -l {0}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-and-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]
os: [ubuntu-latest]

steps:
Expand All @@ -16,7 +16,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
python-version: 3.9
channels: readdy/label/dev,conda-forge
- name: Install Conda Deps
shell: bash -l {0}
Expand All @@ -43,7 +43,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8
python-version: 3.9
channels: readdy/label/dev,conda-forge
- name: Install Conda Deps
shell: bash -l {0}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,5 +139,6 @@ cython_debug/

*.DS_Store
.python-version
/in
/out
*.simularium
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM continuumio/miniconda3
# FROM python:3.9-slim

WORKDIR /home

COPY env.yml .
RUN conda env create -f env.yml
SHELL ["conda", "run", "-n", "vivarium-models", "/bin/bash", "-c"]
# RUN ["/bin/bash", "-c", "conda", "activate", "vivarium-models"]
# RUN ["conda", "env", "list"]

ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "vivarium-models", "python", "-m", "vivarium_models.composites.actin_fiber"]

# RUN conda activate vivarium-models
# RUN conda init bash
# RUN ["conda", "init", "bash"]
# RUN conda activate vivarium-models


59 changes: 30 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# vivarium-models

[![Build Status](https://github.com/allen-cell-animated/vivarium_models/workflows/Build%20Main/badge.svg)](https://github.com/allen-cell-animated/vivarium_models/actions)
[![Documentation](https://github.com/allen-cell-animated/vivarium_models/workflows/Documentation/badge.svg)](https://allen-cell-animated.github.io/vivarium_models/)
[![Code Coverage](https://codecov.io/gh/allen-cell-animated/vivarium_models/branch/main/graph/badge.svg)](https://codecov.io/gh/allen-cell-animated/vivarium_models)

Connecting Simularium prototypes together using Vivarium

---

## Installation with pyenv + conda
# Installation

First, we recommend you create an environment (with pyenv, conda, or similar).

Then, to install:
**Stable Release:** `pip install vivarium_medyan` (coming soon)<br>
**Development Head:** `pip install git+https://github.com/vivarium-collective/vivarium-MEDYAN.git`<br>

## Local editable installation with pyenv + conda

To see all pyenv versions:

Expand All @@ -31,29 +35,28 @@ pyenv local vivarium-models
conda env update -f env.yml
```

# Installation with conda alone
## Local editable installation with conda alone

Install conda: https://docs.conda.io/en/latest/miniconda.html

Using conda, you can run

```
conda env create -f env.yml
conda activate vivarium-models
```

which will create a conda environment called `vivarium-models` with all the required dependencies (including ReaDDy) installed.
which will create and then activate a conda environment called `vivarium-models` with all the required dependencies (including ReaDDy) installed.

To update:

```
conda env update -f env.yml
```

### MEDYAN

To install MEDYAN:
### MEDYAN Installation

Download the MEDYAN source here (we are using version 4.2.0): http://medyan.org/download.html
Download the MEDYAN source here: http://medyan.org/download.html

Unzip and cd into that dir, then at the command line:

Expand All @@ -63,42 +66,40 @@ cd build
make
```

### Alternatively:
### Cytosim Installation

First, clone the repo:

**Stable Release:** `pip install vivarium_models`<br>
**Development Head:** `pip install git+https://github.com/allen-cell-animated/vivarium-models.git`
git clone https://gitlab.com/f-nedelec/cytosim.git

ReaDDy models depend on ReaDDy, which requires conda. Install ReaDDy with `conda install -c readdy/label/dev readdy` after adding the conda-forge channel `conda config --add channels conda-forge`
Change the header to allow for 3d (in file src/math/dim.h)

## Documentation
#define DIM 3 # instead of 2

For full package documentation please visit [allen-cell-animated.github.io/vivarium_models](https://allen-cell-animated.github.io/vivarium_models).
Then, make the executable (avoid the GLEW functionality):

make sim
make report

## Development

See [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code.

## The Four Commands You Need To Know
## Commands You Need To Know

1. `pip install -e .[dev]`
1. `black vivarium_models`

This will install your package in editable mode with all the required development
dependencies (i.e. `tox`).
This will fix lint issues.

2. `make build`

This will run `tox` which will run all your tests in both Python 3.7
and Python 3.8 as well as linting your code.
This will run `tox` which will run all your tests as well as lint your code.

3. `make clean`

This will clean up various Python and build generated files so that you can ensure
that you are working in a clean environment.

This will clean up various Python and build generated files so that you can ensure that you are working in a clean environment.

4. `make docs`

This will generate and launch a web browser to view the most up-to-date
documentation for your Python package.



7 changes: 4 additions & 3 deletions env.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@

name: vivarium-models
channels:
- conda-forge
dependencies:
- python=3.9.6
- readdy/label/dev::readdy
- python=3.8
- conda-forge::readdy
- pip
- pip:
- "-e .[dev]"
- "vivarium_models @ git+https://github.com/simularium/vivarium-models.git"
Loading

0 comments on commit 74bd581

Please sign in to comment.