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
0df2002e
Unverified
Commit
0df2002e
authored
7 months ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Remove outdated qvec3, slew_rate3, and gradient_strength3 functions
parent
eb4a2be8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/variables.jl
+0
-20
0 additions, 20 deletions
src/variables.jl
with
0 additions
and
20 deletions
src/variables.jl
+
0
−
20
View file @
0df2002e
...
...
@@ -453,26 +453,6 @@ function (var::AlternateVariable)(args...; kwargs...)
end
for
base_fn
in
[
:
qval
,
:
gradient_strength
,
:
slew_rate
]
fn3
=
Symbol
(
String
(
base_fn
)
*
"3"
)
@eval
function
$fn3
(
bb
::
AbstractBlock
,
args
...
;
kwargs
...
)
if
hasmethod
(
get_gradient
,
(
typeof
(
bb
),
))
return
$
fn3
(
get_gradient
(
bb
),
args
...
;
kwargs
...
)
else
value
=
$
base_fn
(
bb
,
args
...
;
kwargs
...
)
if
value
isa
Number
&&
iszero
(
value
)
return
zero
(
SVector
{
3
,
Float64
})
elseif
value
isa
AbstractVector
return
value
else
return
value
.*
gradient_orientation
(
bb
)
end
end
end
@eval
$
fn3
(
nt
::
NamedTuple
,
args
...
;
kwargs
...
)
=
map
(
v
->
$
fn3
(
v
,
args
...
;
kwargs
...
),
nt
)
end
"""
set_simple_constraints!(block, kwargs)
...
...
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