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
- starting to rename things FAD or FAD-Toolset instead of FAModel
- - conda environment yaml
- - pyproject.toml project name is 'fad-toolset', which will be reflected in pip installability
- CI_FAModel to CI_FAD
- a couple of minor changes to the README to help communicate these changes
Copy file name to clipboardExpand all lines: README.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,31 +44,32 @@ model structure, which is described more [here](./famodel/README.md).
44
44
45
45
FAD-Toolset is built entirely in Python. It is recommended that users familiarize themselves with Python and install Python onto their machine through Anaconda or Miniconda distributions.
46
46
47
-
The following describes the steps to set up a python virtual environment and install FAD-Toolset and all required dependencies into the environment.
47
+
The following describes the steps to set up a python virtual environment, install FAD-Toolset, and all install required dependencies into the environment.
48
48
49
-
First, a terminal such as the Anaconda Powershell Prompt, clone the GitHub repository to access the files. Navigate to a directory of your choice to download the repository and then navigate into the FAD-Toolset folder.
49
+
First, in a terminal such as the Anaconda Powershell Prompt, clone the GitHub repository to access the files. Navigate to a directory of your choice to download the repository and then navigate into the FAD-Toolset folder.
(base) YOUR_PATH\FAD-Toolset> conda activate fad-env # run `conda deactivate` to deactivate
60
61
(fad-env) YOUR_PATH\FAD-Toolset>
61
62
```
62
63
63
64
Within the new python virtual environment, we can install FAD-Toolset.
64
65
65
-
Use ```pip``` to install the contents of this folder. Ensure you are still within the FAD-Toolset main folder.
66
+
Use ```pip``` to install the contents of this folder. Ensure you are still within the root directory of FAD-Toolset.
66
67
67
68
```
68
69
(fad-env) YOUR_PATH\FAD-Toolset> pip install -e .
69
70
```
70
71
71
-
This command tells `pip` to look at the `pyproject.toml` file to install the FAD-Toolset program into the current virtual environment, along with all the dependencies listed in the `pyproject.toml` file. There is overlap between the python packages listed in the `pyproject.toml` and the `fad-env.yaml` file since the installation can be done by either or both of the package installation managers, `conda` and `pip`. Specific versions of packages like scipy are listed in the `pyproject.toml` file to ensure they get installed properly. The `-e` option allows users to make local changes to their FAD-Toolset files and have that be reflected in the FAD-Toolset installation.
72
+
This command tells `pip` to look at the `pyproject.toml` file to install the FAD-Toolset program into the current virtual environment, along with all the dependencies listed in the `pyproject.toml` file. There is overlap between the python packages listed in the `pyproject.toml` and the `fad-env.yaml` file since the installation can be done by either or both of the package installation managers, `conda` and `pip`. Specific versions of packages like scipy are listed in the `pyproject.toml` file to ensure they get installed properly. The `-e` option allows users to make local changes to their FAD-Toolset files and have those changes be reflected in the FAD-Toolset installation.
72
73
73
74
Lastly, we can test the installation by running `pytest` from the main FAD-Toolset directory.
74
75
@@ -81,7 +82,9 @@ you can install MoorPy with ```git clone https://github.com/NREL/MoorPy.git```
81
82
then navigate to the MoorPy folder and install with ```pip install .```.
82
83
Make sure your virtual enviroment is activated before installing MoorPy. -->
83
84
84
-
For future changes to dependencies like MoorPy or RAFT, as long as those changes come through a new release of the software and an updated version is listed on PyPI, users should manually re-install the dependencies to gather those new changes (`pip install moorpy`).
85
+
For future changes to dependencies like MoorPy or RAFT, as long as those changes come through a new release of the software and an updated version is listed on PyPI, users should manually re-install the dependencies in their virtual environment to gather those new changes (i.e., `pip install moorpy`).
86
+
87
+
FAD-Toolset is also pip installable and can be installed using `pip install fad-toolset`. The main source code folder in the repo is named `fad`, which is how classes and functions will be imported (i.e., `import fad.Project as Project` or `from fad.anchors.anchor import Anchor`).
0 commit comments