Skip to content

Commit 903c684

Browse files
committed
Breaking CI to merge from FAModel->FAD-Toolset
- 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
1 parent 6cba044 commit 903c684

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,32 @@ model structure, which is described more [here](./famodel/README.md).
4444

4545
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.
4646

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.
4848

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.
5050

5151
```
5252
(base) YOUR_PATH> git clone https://github.com/FloatingArrayDesign/FAD-Toolset.git
5353
(base) YOUR_PATH> cd FAD-Toolset
5454
```
55+
5556
Next, create a new python virtual environment with an environment name of your choice. We will use 'fad-env' as an example.
5657

5758
```
58-
(base) YOUR_PATH\FAD-Toolset> conda env create -n fad-env -f famodel-env.yaml
59+
(base) YOUR_PATH\FAD-Toolset> conda env create -n fad-env -f fad-env.yaml
5960
(base) YOUR_PATH\FAD-Toolset> conda activate fad-env # run `conda deactivate` to deactivate
6061
(fad-env) YOUR_PATH\FAD-Toolset>
6162
```
6263

6364
Within the new python virtual environment, we can install FAD-Toolset.
6465

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.
6667

6768
```
6869
(fad-env) YOUR_PATH\FAD-Toolset> pip install -e .
6970
```
7071

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.
7273

7374
Lastly, we can test the installation by running `pytest` from the main FAD-Toolset directory.
7475

@@ -81,7 +82,9 @@ you can install MoorPy with ```git clone https://github.com/NREL/MoorPy.git```
8182
then navigate to the MoorPy folder and install with ```pip install .```.
8283
Make sure your virtual enviroment is activated before installing MoorPy. -->
8384

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`).
8588

8689

8790

File renamed without changes.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "famodel"
6+
name = "fad-toolset"
77
version = "1.0.0"
88
description = "A floating array modeling library"
99
license = {file = "LICENSE"}
@@ -33,7 +33,7 @@ dependencies = [
3333
"geopandas>=0.10.0",
3434
"floris==4.2",
3535
"pytest>=6.0",
36-
"moorpy>=1.2.1",
36+
"moorpy>=1.3.0",
3737
"openraft>=2.0.3",
3838
"pyswarm",
3939
]
@@ -42,7 +42,7 @@ dependencies = [
4242
Homepage = "https://github.com/FloatingArrayDesign/FAD-Toolset"
4343

4444
[tool.setuptools]
45-
packages = ["famodel"]
45+
packages = ["fad"]
4646

4747
[tool.setuptools.package-data]
4848
"*" = ["*.txt", "*.md", "*.yaml"]

0 commit comments

Comments
 (0)