Skip to content

Conversation

@jtgrasb
Copy link
Collaborator

@jtgrasb jtgrasb commented Jan 10, 2025

Description

This PR resolves #154 by removing functions from the waves class and instead uses the latest version of wavespectra to generate the spectrum and wave energy density array, efth. The omnidirectional_spectrum, spectrum, pierson_moskowitz_spectrum, jonswap_spectrum, spread_cos2s, general_spectrum, pierson_moskowitz_params are all now handled by wavespectra. The testing for these functions has also been removed.

Note that wavespectra's frequency spectrum creation methods leave off direction, but I added a check to add it in when creating the wave elevation and instructions for how to add it in manually for the pioneer tutorial.

@coveralls
Copy link

coveralls commented Jan 29, 2025

Pull Request Test Coverage Report for Build 14526635351

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 3 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 93.779%

Files with Coverage Reduction New Missed Lines %
tests/test_waves.py 2 98.92%
Totals Coverage Status
Change from base Build 14526562359: -0.3%
Covered Lines: 2653
Relevant Lines: 2829

💛 - Coveralls

@dtgaebe dtgaebe self-requested a review February 11, 2025 16:04
@cmichelenstrofer cmichelenstrofer self-requested a review April 17, 2025 22:21
@jtgrasb jtgrasb merged commit 103866e into sandialabs:dev Apr 29, 2025
21 of 58 checks passed
michaelcdevin pushed a commit to michaelcdevin/WecOptTool that referenced this pull request Jun 18, 2025
* compare waves from wavespectra

* Remove extra wave functions and update tutorials

* Update test waves

* Revert nrealizations

* Require wavespectra 4.0+

* Update to new version of mambaforge

* Revert mambaforge

* Use wavespectra for tests

* Fix variable input

* Remove direction message
michaelcdevin pushed a commit to michaelcdevin/WecOptTool that referenced this pull request Jun 18, 2025
* compare waves from wavespectra

* Remove extra wave functions and update tutorials

* Update test waves

* Revert nrealizations

* Require wavespectra 4.0+

* Update to new version of mambaforge

* Revert mambaforge

* Use wavespectra for tests

* Fix variable input

* Remove direction message
michaelcdevin pushed a commit to michaelcdevin/WecOptTool that referenced this pull request Jun 18, 2025
* compare waves from wavespectra

* Remove extra wave functions and update tutorials

* Update test waves

* Revert nrealizations

* Require wavespectra 4.0+

* Update to new version of mambaforge

* Revert mambaforge

* Use wavespectra for tests

* Fix variable input

* Remove direction message
jtgrasb added a commit to jtgrasb/WecOptTool that referenced this pull request Aug 20, 2025
* compare waves from wavespectra

* Remove extra wave functions and update tutorials

* Update test waves

* Revert nrealizations

* Require wavespectra 4.0+

* Update to new version of mambaforge

* Revert mambaforge

* Use wavespectra for tests

* Fix variable input

* Remove direction message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants