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
e6f6a1f1
Verified
Commit
e6f6a1f1
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Fix scope of `value` variable
parent
ac829a3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#22780
failed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/building_blocks.jl
+5
-5
5 additions, 5 deletions
src/building_blocks.jl
with
5 additions
and
5 deletions
src/building_blocks.jl
+
5
−
5
View file @
e6f6a1f1
...
@@ -127,17 +127,17 @@ for variable_func in keys(variables)
...
@@ -127,17 +127,17 @@ for variable_func in keys(variables)
alt_var
,
forward
,
backward
,
_
=
alternative_variables
[
Variables
.$
variable_func
]
alt_var
,
forward
,
backward
,
_
=
alternative_variables
[
Variables
.$
variable_func
]
try
try
value
=
alt_var
(
bb
)
value
=
alt_var
(
bb
)
if
value
isa
Number
return
backward
(
value
)
elseif
value
isa
AbstractArray
{
<:
Number
}
return
backward
.
(
value
)
end
catch
e
catch
e
if
e
isa
VariableNotAvailable
if
e
isa
VariableNotAvailable
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
))
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
))
end
end
rethrow
()
rethrow
()
end
end
if
value
isa
Number
return
backward
(
value
)
elseif
value
isa
AbstractArray
{
<:
Number
}
return
backward
.
(
value
)
end
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
,
alt_var
))
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
,
alt_var
))
end
end
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
))
throw
(
VariableNotAvailable
(
typeof
(
bb
),
Variables
.$
variable_func
))
...
...
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