Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
6a7e36ce
Verified
Commit
6a7e36ce
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
More robust finding of has_values
parent
1e85fa1d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/building_blocks.jl
+10
-2
10 additions, 2 deletions
src/building_blocks.jl
with
10 additions
and
2 deletions
src/building_blocks.jl
+
10
−
2
View file @
6a7e36ce
...
@@ -202,8 +202,16 @@ function owner_model(bb::BuildingBlock)
...
@@ -202,8 +202,16 @@ function owner_model(bb::BuildingBlock)
end
end
end
end
end
end
error
(
"Cannot find owner model of
$
bb"
)
error
(
"Cannot find owner model"
)
end
function
has_values
(
bb
::
BuildingBlock
)
try
return
has_values
(
owner_model
(
bb
))
catch
# return true for building blocks without a model
return
true
end
end
end
has_values
(
bb
::
BuildingBlock
)
=
has_values
(
owner_model
(
bb
))
end
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment