Skip to content

Conversation

lrennels
Copy link
Collaborator

@lrennels lrennels commented Jun 2, 2020

Make small changes to allow a call to explore(m) on a model that contains composite components. For now this will only display the namespaces of the top level components, and will not dive into the sub-components of a composite component.

#711

Return a DatumDef for `item` in the given component `comp_def`.
"""
function datumdef(comp_def::ComponentDef, item::Symbol)
function datumdef(comp_def::AbstractComponentDef, item::Symbol)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ckingdon95 do you see a downside to doing it this way (generalizing to one signature for all AbstractComponentDef types instead of making a separate method for a CompositeComponentDef? All tests pass, but you have a better sense of the theory behind this so I want to make sure I'm not breaking something.

@codecov
Copy link

codecov bot commented Jun 2, 2020

Codecov Report

Merging #711 into master will increase coverage by 0.10%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #711      +/-   ##
==========================================
+ Coverage   80.05%   80.16%   +0.10%     
==========================================
  Files          38       38              
  Lines        2858     2858              
==========================================
+ Hits         2288     2291       +3     
+ Misses        570      567       -3     
Flag Coverage Δ
#unittests 80.16% <ø> (+0.10%) ⬆️
Impacted Files Coverage Δ
src/core/model.jl 81.81% <ø> (ø)
src/core/defs.jl 83.03% <0.00%> (+0.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c904608...9d68ba2. Read the comment docs.

@lrennels lrennels merged commit dbec056 into master Jun 6, 2020
@lrennels lrennels deleted the explorer branch June 6, 2020 21:34
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