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

Add subsystem interfaces #326

Merged
merged 4 commits into from
Feb 6, 2024
Merged

Conversation

daniel-thom
Copy link
Contributor

No description provided.

@@ -79,7 +79,7 @@ Remove a component from a subsystem.

Throws ArgumentError if the subsystem name or component is not stored.
"""
function remove_subsystem_component!(
function remove_component_from_subsystem!(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should be symmetric with add_component_to_subsystem!.

Copy link
Member

Choose a reason for hiding this comment

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

agreed

src/subsystems.jl Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5ead8c1) 79.56% compared to head (04bb396) 79.59%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #326      +/-   ##
==========================================
+ Coverage   79.56%   79.59%   +0.03%     
==========================================
  Files          53       53              
  Lines        4218     4230      +12     
==========================================
+ Hits         3356     3367      +11     
- Misses        862      863       +1     
Flag Coverage Δ
unittests 79.59% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/subsystems.jl 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

"""
Return true if the component is assigned to any subsystems.
"""
function is_assigned_to_subsystem(
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
function is_assigned_to_subsystem(
function is_assigned_to_a_subsystem(

or

Suggested change
function is_assigned_to_subsystem(
function is_assigned_subsystems(

Otherwise it could be confused with the query to wether something is attach to a specific subsystem

Copy link
Member

@jd-lara jd-lara left a comment

Choose a reason for hiding this comment

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

A couple of minor suggestions

@daniel-thom daniel-thom merged commit 6ac9430 into NREL-Sienna:main Feb 6, 2024
7 of 9 checks passed
@daniel-thom daniel-thom deleted the subsystems branch February 6, 2024 17:08
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.

2 participants