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
2ba62b2c
Verified
Commit
2ba62b2c
authored
11 months ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Fix second_der calculation
parent
2ac53c3f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23674
failed
11 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/pulses/generic_pulses.jl
+3
-0
3 additions, 0 deletions
src/components/pulses/generic_pulses.jl
with
3 additions
and
0 deletions
src/components/pulses/generic_pulses.jl
+
3
−
0
View file @
2ba62b2c
...
...
@@ -113,6 +113,9 @@ function split_timestep(gp::GenericPulse, precision)
max_second_der
=
0.
for
index
in
2
:
length
(
arr
)
-
1
poly
=
fit
(
gp
.
time
[
index
-
1
:
index
+
1
],
arr
[
index
-
1
:
index
+
1
])
if
iszero
(
length
(
poly
.
coeffs
))
continue
end
second_der
=
abs
(
poly
.
coeffs
[
end
])
if
second_der
>
max_second_der
max_second_der
=
second_der
...
...
This diff is collapsed.
Click to expand it.
Michiel Cottaar
@ndcn0236
mentioned in commit
7c5518cf
·
11 months ago
mentioned in commit
7c5518cf
mentioned in commit 7c5518cfd258741e483303834a4348b89c284d03
Toggle commit list
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