Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spine-tools/emp-e-2-models-demo


https://github.com/spine-tools/emp-e-2-models-demo

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

Spine Toolbox two-models demo for EMP-E
=========================

Created by Erkka Rinne ([email protected]) and Juha Kiviluoma ([email protected]).

Requirements
------------

- Python 3.7
- [SpineToolbox](https://github.com/Spine-project/Spine-Toolbox/)
- [Julia 1.4 or later](https://julialang.org/downloads/)
- [GAMS version 24.1 or later](https://gams.com/download/)

Setting up
----------

1. Create a Python virtual environment using e.g. [conda](https://docs.conda.io/en/latest/miniconda.html)

```
$ conda create -n spinetoolbox python=3.7
$ conda activate spinetoolbox
```

2. Browse to the dir where you downloaded Spine Toolbox and install it:

```
(spinetoolbox) $ pip install -r requirements.txt
```

3. Browse to dir *MyJuliaModel* in this project and initialize the Julia project

```
MyJuliaModel (spinetoolbox) $ julia init.jl
```

4. Launch Spine Toolbox:

> NOTE: Currently, Spine Toolbox has to be launched *from the Julia
> project directory*, in this case *MyJuliaModel/*.
```
MyJuliaModel (spinetoolbox) $ spinetoolbox
```

5. In Spine Toolbox settings, select dir *MyJuliaModel* as the Julia project on **Tools** page.