Skip to content

Commit

Permalink
Merge pull request #169 from pybamm-team/condaenv
Browse files Browse the repository at this point in the history
Update conda environment
  • Loading branch information
TomTranter authored Aug 4, 2022
2 parents b9f0311 + 50eb8f4 commit 85769f2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 30 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,25 @@ To install `liionpack` using `pip`, run the following command:
pip install liionpack
```

### Conda

The following terminal commands are for setting up a conda development environment for liionpack. This requires the [Anaconda](https://www.anaconda.com) or [Miniconda](https://docs.conda.io/en/latest/miniconda.html) Python distribution. This environment installs liionpack in editable mode which is useful for development of the liionpack source code. General users should install liionpack with pip.

```bash
# Create a conda environment named lipack
cd liionpack
conda env create --file environment.yml

# Activate the environment
conda activate lipack

# Exit the environment
conda deactivate

# Delete the environment
conda env remove --name lipack
```

### LaTeX

In order to use the `draw_circuit` functionality a version of Latex must be installed on your machine. We use an underlying Python package `Lcapy` for making the drawing and direct you to its installation instructions [here](https://lcapy.readthedocs.io/en/latest/install.html) for operating system specifics.
Expand Down
57 changes: 27 additions & 30 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
name: liionpack
# Use this config file to create a conda development environment. This
# environment installs liionpack in editable mode which is useful for
# development of the liionpack source code. General users should install
# liionpack via pip.

# Create a conda environment named lipack
# $ cd liionpack
# $ conda env create --file environment.yml

# Activate the environment
# $ conda activate lipack

# Exit the environment
# $ conda deactivate

# Delete the environment
# $ conda env remove --name lipack

name: lipack

dependencies:
- python
- pip
- python=3.9.*
- numpy
- scipy
- matplotlib
- pandas
- plotly
- openpyxl
- tqdm
- networkx
- jupyter
- sympy
- ipython
- wrapt
- jupyter
- sympy
- redis
- pyyaml
- protobuf >=3.8.0,<4.0.0
- imageio
- grpcio
- future
- flatbuffers
- filelock
- deprecated
- click
- autograd
- absl-py
- hiredis
- flake8
- pip
- pip:
- pybamm
- lcapy
- scikit-spatial
- ray
- mkdocstrings-python-legacy
- mkdocs-material
- mkdocs-jupyter
- pybamm>=22.6
- ipdb
- -e .

0 comments on commit 85769f2

Please sign in to comment.