-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add Honduras structs #1158
Add Honduras structs #1158
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1158 +/- ##
==========================================
+ Coverage 84.62% 84.78% +0.16%
==========================================
Files 177 182 +5
Lines 8115 8346 +231
==========================================
+ Hits 6867 7076 +209
- Misses 1248 1270 +22
Flags with carried forward coverage won't be shown. Click here to find out more.
|
m = match(r"^\((\d+)\s*,\s*(\d+)\)$", _v) | ||
m2 = match(r"^\((\d+)\s*,\s*(\d+),\s*(\d+)\)$", _v) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jd-lara Any idea how to generalize this Regex for a tuple of n-length? The PIDGOV model and WPIDHY models have a tuple with three terms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do this for another time. For now this should be fine
@@ -153,3 +153,13 @@ function _calc_states(machine, shaft, avr, prime_mover, pss) | |||
get_states(pss), | |||
) | |||
end | |||
|
|||
function get_degov1_states(droop_flag::Int) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can put this in the code auto generator.
"""Get [`DEGOV1`](@ref) `ext`.""" | ||
get_ext(value::DEGOV1) = value.ext | ||
"""Get [`DEGOV1`](@ref) `states`.""" | ||
get_states(value::DEGOV1) = value.states |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_states(value::DEGOV1) = value.states | |
get_states(value::DEGOV1) = get_degov1_states(value) |
No description provided.