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
16 changes: 15 additions & 1 deletion packages/dtocean-hydrodynamics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,20 @@ poetry run ruff
poetry run pyright src
```

The above tests can be run across all compatible Python versions using
[tox](https://tox.wiki/) and [tox-uv](https://github.com/tox-dev/tox-uv). To
install:

```sh
poetry install --with test --with test-extras --with audit --with tox
```

To run the tests:

```sh
poetry run tox
```

## Contributing

Please see the [dtocean](https://github.com/DTOcean/dtocean) GitHub repository
Expand All @@ -144,7 +158,7 @@ for contributing guidelines.
## Credits

This package was initially created as part of the [EU DTOcean project](
https://www.dtoceanplus.eu/About-DTOceanPlus/History) by:
https://cordis.europa.eu/project/id/608597) by:

* Francesco Ferri at [Aalborg University](https://www.en.aau.dk/)
* Pau Mercade Ruiz at [Aalborg University](https://www.en.aau.dk/)
Expand Down
2 changes: 1 addition & 1 deletion packages/dtocean-hydrodynamics/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ numpy = "^2.3.5"
pandas = "^3.0.1"
pyopengl = "^3.1.7"
scikit-learn = "^1.6.0"
scipy = "^1.14.1"
scipy = "^1.17.0"
shapely = "^2.0.6"
polite-config = { path = "../polite-config", develop = true }
contourpy = "^1.3.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ def test_tidal_interface_entry_fail(

with pytest.raises(ValueError):
interface.connect(debug_entry=True)
interface.connect(debug_entry=True)


def test_convert_results(outputs_wp2_wave):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def is_enabled():
assert main_window.form_power is not None
assert main_window.form_power.isEnabled()

qtbot.waitUntil(is_enabled)
qtbot.waitUntil(is_enabled, timeout=30000)

return run_nehom_path / "hydrodynamic"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ def test_calculate_again(
def is_enabled():
assert form_hyd_calculated.btn_calculate_t2.isEnabled()

qtbot.waitUntil(is_enabled)
qtbot.waitUntil(is_enabled, timeout=30000)
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading