Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple_battery unit tests #64

Merged
merged 6 commits into from
Feb 6, 2024
Merged

simple_battery unit tests #64

merged 6 commits into from
Feb 6, 2024

Conversation

ZackTully
Copy link
Collaborator

@ZackTully ZackTully commented Jan 30, 2024

Unit tests for SimpleBattery module.

Resolves #53

Copy link
Collaborator

@misi9170 misi9170 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks for doing this @ZackTully ! If it's not too much to ask, would you do something similar for the HerculesWindBatteryController in WHOC? I already have a placeholder for that here. I also have some ideas for cleaning up the HerculesWindBatteryController a bit, but it would be great to have the tests in place before I/we do that

@ZackTully
Copy link
Collaborator Author

@misi9170 Sure! I'll take a look at it later today.

Zachary and others added 4 commits February 5, 2024 10:39
* Setting up example to work through.

* bugfix: fix old dummy name.

* Constructs fi object.

* appears to run as expected.

* Various updates for smoother running.

* Ruff.

* Remove gch yaml in favor of a default dictionary defined in floris_standin.py

* Undo ruff format, which fights with ruff.

* Tests for FlorisStandin.

* ruff

* Adding correct floris branch to github workflow for testing.

* try again...

* and again.

* ready to test external data.

* Test for external data built out and passing.

* ruff.

* Remove obselete handling.

* match reconfiguration of turbine package.

* add pip install instructions.

* ruff :(

* Standin power specified in kW; emulator uses correct actuator.

* Update test to reflect kW units.

* remove unused JoukowskyDisk information.

* Adding a comment explaining units in Floris power calculation

* Adjusting to meet Ruff standards

* Line shortened.

---------

Co-authored-by: Genevieve Starke <[email protected]>
Co-authored-by: jfrederik-nrel <[email protected]>
Copy link
Collaborator

@genevievestarke genevievestarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me, I'm just wondering why all the floris changes also show up as changed files for this pull request? Is it because of the Floris v4 update?

@misi9170
Copy link
Collaborator

misi9170 commented Feb 5, 2024

It looks good to me, I'm just wondering why all the floris changes also show up as changed files for this pull request? Is it because of the Floris v4 update?

That's a bit strange... I'll look into that a little, thanks for pointing that out @genevievestarke

@misi9170
Copy link
Collaborator

misi9170 commented Feb 6, 2024

@ZackTully @genevievestarke Ok that issues with the comparison is fixed. I'm going to review the corresponding PR on WHOC and then should be able to merge both.

@misi9170 misi9170 added the testing Implementing tests for features in the code label Feb 6, 2024
@genevievestarke
Copy link
Collaborator

Ok, great, sounds good!

@misi9170
Copy link
Collaborator

misi9170 commented Feb 6, 2024

@ZackTully Thanks for the updates; I'm going to go ahead and merge this and the companion on WHOC.

@misi9170 misi9170 merged commit 2b0536b into NREL:develop Feb 6, 2024
3 checks passed
@misi9170 misi9170 mentioned this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Implementing tests for features in the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants