-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
328 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
title: "Building FIAT" | ||
--- | ||
|
||
To build FIAT as an executable/ binary, it is required to clone the FIAT repository to your local drive. | ||
This required [git](https://git-scm.com/) to be installed on your local machine. | ||
|
||
```bash | ||
git clone [email protected]:Deltares/Delft-FIAT.git | ||
``` | ||
|
||
Besides git, a python installation/ environment with the necessary packages is needed. | ||
It is recommended to use [miniforge3](../general/conda.qmd) for this purpose. | ||
|
||
::: {.panel-tabset} | ||
|
||
## Windows | ||
|
||
- Create a yml for a seperate **build** environment: | ||
|
||
```bash | ||
python make_env.py build | ||
``` | ||
|
||
- Create the environment with mamba. This time, FIAT will be automatically installed with the environment: | ||
|
||
```bash | ||
mamba env create -f environment.yml | ||
``` | ||
|
||
- Go to the .build/ directory and execute the win64.bat script: | ||
|
||
```bash | ||
cd ./.build | ||
|
||
win64.bat | ||
``` | ||
|
||
That's it. | ||
A FIAT application will be located in the `{root}/bin/Release` folder. | ||
|
||
## Linux | ||
|
||
- Create a yml for a seperate **build** environment: | ||
|
||
```bash | ||
python make_env.py build | ||
``` | ||
|
||
- Create the environment with mamba. This time, FIAT will be automatically installed with the environment: | ||
|
||
```bash | ||
mamba env create -f environment.yml | ||
``` | ||
|
||
- Set the rights of the shell script and exexute it: | ||
|
||
```bash | ||
chmod u+x .build/linux64.sh | ||
|
||
.build/linux64.sh | ||
``` | ||
|
||
That's it. | ||
A FIAT application will be located in the `{root}/bin/Release` folder | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Development install" | ||
--- | ||
|
||
This is for those who wish to contribute to the development of FIAT. | ||
|
||
- First, clone the FIAT repository on Github into a local directory of choice: | ||
|
||
```bash | ||
cd ~/{your path} | ||
|
||
git clone https://github.com/Deltares/Delft-FIAT.git fiat | ||
``` | ||
|
||
- Create a new development environment. Make sure you either have tomli or tomllib (build-in with Python 3.11) in your base enviroment. Go into your cloned FIAT repository folder and create the environment file by running the *make_env.py* script: | ||
|
||
```bash | ||
cd ~/{your path}/fiat | ||
|
||
python make_env.py dev | ||
``` | ||
|
||
- Then, create and activate the new environment in conda: | ||
|
||
```bash | ||
conda env create -f environment.yml | ||
|
||
conda activate fiat_dev | ||
``` | ||
|
||
- To install all the required dependencies, run: | ||
|
||
```bash | ||
pip install -e . | ||
``` | ||
|
||
There you go. FIAT is now installed on your local machine for development purposes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.