You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,21 @@ Mimi is an installable package. To install Mimi, use the following:
31
31
Pkg.add("Mimi")
32
32
````
33
33
34
+
## Mimi Registry
35
+
36
+
Several models currently use the Mimi framework, as listed in the section below. For convenience, several models are registered in the [MimiRegistry](https://github.com/anthofflab/Mimi.jl), and operate as julia packages. To use this feature, you first need to connect your julia installation with the central Mimi registry of Mimi models. This central registry is like a catalogue of models that use Mimi that is maintained by the Mimi project. To add this registry, run the following command at the julia package REPL:
Copy file name to clipboardExpand all lines: docs/src/index.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,23 @@ Pkg.add("Mimi")
14
14
15
15
For more complete setup instructions, follow the [Installation Guide](@ref).
16
16
17
+
18
+
## Mimi Registry
19
+
20
+
Several models currently use the Mimi framework, as listed in the section below. For convenience, several models are registered in the [MimiRegistry](https://github.com/anthofflab/Mimi.jl), and operate as julia packages. To use this feature, you first need to connect your julia installation with the central Mimi registry of Mimi models. This central registry is like a catalogue of models that use Mimi that is maintained by the Mimi project. To add this registry, run the following command at the julia package REPL:
-[Git](https://git-scm.com/downloads) and [Github](https://github.com)
10
10
11
11
If you have not yet prepared these, go back to the main tutorial page and follow the instructions for their download.
12
12
13
13
### Step 1. Download FUND
14
14
15
-
The first step in this process is downloading the FUND model. First, open your command line interface and navigate to the folder where you would like to download FUND.
15
+
The first step in this process is downloading the FUND model, which is now made easy with the Mimi registry. Assuming you have already done the one-time run of the following to connect your julia installation with the central Mimi registry of Mimi models
16
16
17
-
```
18
-
cd(<directory-path>) # directory-path is a placeholder for the string describing your desired file path
Next, clone the FUND repository from Github, enter the repository, and checkout the `next` branch, which holds the Julia version of FUND.
22
-
21
+
You simply need to add the FUND model with
23
22
```
24
-
git clone https://github.com/fund-model/fund.git
25
-
cd("fund")
26
-
git checkout next
23
+
add MimiFUND
27
24
```
28
-
You have now successfully downloaded FUND to your local machine.
29
25
30
26
### Step 2. Run FUND
31
27
32
28
The next step is to run FUND. If you wish to first get more aquainted with the model itself, take a look at the provided online documentation.
33
29
34
-
In order to run FUND, you will need to open a Julia REPL (here done with the alias `julia`) and navigate to the source code folder, labeled `src`.
30
+
In order to run FUND, you will need to have the packages `Distributions` and `StatsBase` installed, and if not do so by entering [Pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/index.html) by typing `]`, and then `add StatsBase` and `add Distributions`.
31
+
32
+
Now open a julia REPL and type
35
33
36
34
```
37
-
Julia
38
-
cd(<fund-directory-path>) # fund-directory-path is a placeholder for the string describing your the file path of the downloaded `fund` folder from Step 1.
35
+
using MimiFUND
39
36
```
40
-
41
-
Next, run the main fund file `fund.jl` (make sure to have the packages `Distributions` and `StatsBase` installed, and if not do so by entering [Pkg mode](https://docs.julialang.org/en/v1/stdlib/Pkg/index.html) by typing `]`, and then `add StatsBase` and `add Distributions`. This file defines a new [module](https://docs.julialang.org/en/v1/manual/modules/index.html) called `Fund`, which exports the function `getfund`, a function that returns a version of fund allowing for different user specifications. Note that in order to allow access to the module, we must call `using .Fund`, where `.Fund` is a shortcut for `Main.Fund`, since the `Fund` module is nested inside the `Main` module. After creating the model `m`, simply run the model using the `run` function.
37
+
to access the public API to FUND, which currently includes the function `getfund`, a function that returns a version of fund allowing for different user specifications.
-[Git](https://git-scm.com/downloads) and [Github](https://github.com)
12
12
13
13
If you have not yet prepared these, go back to the main tutorial page and follow the instructions for their download.
14
14
15
-
Futhermore, this tutorial uses the [DICE](https://github.com/anthofflab/mimi-dice-2010.jl) model as an example. Downloading `DICE` uses similar steps to those described for `FUND` in Tutorial 1 Steps 1 and 2, but are repeated in in Step 1 for clarity.
15
+
Futhermore, this tutorial uses the [DICE](https://github.com/anthofflab/mimi-dice-2010.jl) model as an example. Downloading `DICE` uses similar steps to those described for `FUND` in Tutorial 1 Steps 1 and 2.
16
16
17
17
## Introduction
18
18
@@ -40,37 +40,24 @@ If you wish to alter connections within an existing model, [`disconnect_param!`]
40
40
41
41
### Step 1. Download DICE
42
42
43
-
The first step in this process is downloading the DICE model. First, open your command line interface and navigate to the folder where you would like to download DICE.
43
+
The first step in this process is downloading the FUND model, which is now made easy with the Mimi registry. Assuming you have already done the one-time run of the following to connect your julia installation with the central Mimi registry of Mimi models
You have now successfully downloaded DICE to your local machine.
57
54
58
55
### Step 2. Run DICE
59
56
60
-
The next step is to run DICE. If you wish to first get more aquainted with the model itself, take a look at the provided online documentation.
61
-
62
-
In order to run DICE, you will need to open a Julia REPL (here done witht the alias `julia`) and navigate to the source code folder, labeled `src`.
63
-
64
-
```
65
-
Julia
66
-
cd(<dice-directory-path>) # <dice-directory-path> is a placeholder for the string describing your the file path of the downloaded `dice-2010` folder from Step 1.
67
-
```
68
-
69
-
Next, run the main fund file `dice2010.jl`. This file defines a new [module](https://docs.julialang.org/en/v1/manual/modules/index.html) called `Dice2010`, which exports the function `construct_dice`, a function that returns a version of dice allowing for user specification of parameters. Note that in order to allow access to the module, we must call `using .Dice2010`, where `.Dice2010` is a shortcut for `Main.Dice2010`, since the `Dice2010` module is nested inside the `Main` module. After creating the model `m`, simply run the model using the `run` function.
57
+
The next step is to run DICE. If you wish to first get more aquainted with the model itself, take a look at the provided online documentation. Now run DICE using the provided API for the package:
Copy file name to clipboardExpand all lines: docs/src/tutorials/tutorial_main.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,21 @@ To use the following tutorials, follow the steps below.
47
47
pkg> add Mimi
48
48
```
49
49
50
-
We also recommend that you frequently update your packages and requirements using the `update` command, which can be abbreviated `up`:
50
+
4. To access the models in the [MimiRegistry](https://github.com/anthofflab/Mimi.jl), you first need to connect your julia installation with the central Mimi registry of Mimi models. This central registry is like a catalogue of models that use Mimi that is maintained by the Mimi project. To add this registry, run the following command at the julia package REPL:
0 commit comments