Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
run: |
conda activate test-env
python3 -m pip install --upgrade pip
pip3 install gmsh pygmsh coveralls pytest pytest-cov
pip3 install gmsh pygmsh coveralls pytest
pip3 install .

# run all tests & coverage
- name: Run Test
shell: bash -l {0}
run: pytest --cov=wecopttool --cov-report=xml
run: coverage run -m pytest

# upload coverage data
- name: Upload coverage data to coveralls.io
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
run: |
conda activate test-env
python3 -m pip install --upgrade pip
pip3 install gmsh pygmsh coveralls pytest pytest-cov
pip3 install gmsh pygmsh coveralls pytest
pip3 install .

# run all tests & coverage
- name: Run Test
shell: bash -l {0}
run: pytest --cov=wecopttool --cov-report=xml
run: coverage run -m pytest

# upload coverage data
- name: Upload coverage data to coveralls.io
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial_2_AquaHarmonics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
"y = np.arange(-1*torque_max, 1.0*torque_max, 5)\n",
"X, Y = np.meshgrid(x, y)\n",
"Z = power_loss(X, Y).copy()/1e3\n",
"Z[np.abs(X*Y) > power_max] = np.NaN # cut off area outside of power limit\n",
"Z[np.abs(X*Y) > power_max] = np.nan # cut off area outside of power limit\n",
"\n",
"fig = plt.figure(figsize=plt.figaspect(0.4))\n",
"ax = [fig.add_subplot(1, 2, 1, projection=\"3d\"),\n",
Expand Down
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "wecopttool"
version = "3.2.0"
version = "3.2.1"
description = "WEC Design Optimization Toolbox"
readme = "README.md"
authors = [
Expand All @@ -19,7 +19,7 @@ classifiers = [
"Operating System :: OS Independent",
]
dependencies = [
"numpy>=1.20, <2.0",
"numpy>=1.20",
"scipy",
"xarray",
"jax",
Expand Down Expand Up @@ -50,3 +50,8 @@ geometry = [
"gmsh",
"pygmsh",
]

[tool.coverage.run]
source = [
"wecopttool",
]
Loading