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

Feature/877 add battery capacity fault capability #879

Closed

Conversation

Yume27
Copy link

@Yume27 Yume27 commented Dec 19, 2024

  • Tickets addressed: bsk-877
  • Review: By commit
  • Merge strategy: Squash and Merge

Description

This added the capability to simulate a fault in the simpleBattery module that reduces the actual storage capacity without directly altering the stated capacity.

Verification

Added unit test to verify that

  1. Check if the battery capacity matches its nominal value when a fault occurs.
  2. Verify that the charged capacity does not exceed the faulted capacity or drop below zero.

Documentation

Updated rst file associated with simpleBattery module.

Future work

None

@Yume27 Yume27 added the enhancement New feature or request label Dec 19, 2024
@Yume27 Yume27 requested a review from a team as a code owner December 19, 2024 20:58
@schaubh
Copy link
Contributor

schaubh commented Dec 20, 2024

@Yume27 , your pre-commit test failed. Be sure to install the pre-commit support by reading https://avslab.github.io/basilisk/Support/Developer/CodingGuidlines.html. Look near the bottom for the link to CONTRIBUTING.md. It talks about how to include the checks, and how to many force check specific files if needed.

@Yume27 Yume27 force-pushed the feature/877-add-battery-capacity-fault-capability branch 3 times, most recently from 4f179b6 to bf15fb5 Compare January 21, 2025 19:54
Copy link
Contributor

@juan-g-bonilla juan-g-bonilla left a comment

Choose a reason for hiding this comment

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

Great PR! Left some really minor suggestions, but otherwise LGTM!

@Yume27 Yume27 force-pushed the feature/877-add-battery-capacity-fault-capability branch from bf15fb5 to 699dca5 Compare January 21, 2025 21:55
@schaubh schaubh force-pushed the feature/877-add-battery-capacity-fault-capability branch from 699dca5 to 7216864 Compare January 26, 2025 21:11
Copy link
Contributor

@schaubh schaubh left a comment

Choose a reason for hiding this comment

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

I'm good with this PR now. I moved the commit that added the new fault message declaration to the top of the stack. Otherwise, if someone pulls an earlier commit the code would not compile.
Also added a minor fix to another script to address matplotlib warning.

@Yume27 Yume27 closed this Jan 28, 2025
@Yume27 Yume27 reopened this Jan 28, 2025
@Yume27 Yume27 closed this Jan 28, 2025
@Yume27 Yume27 deleted the feature/877-add-battery-capacity-fault-capability branch January 28, 2025 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants