Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Code for Analabs
RST Evaluation
Commits
e04add2d
Commit
e04add2d
authored
Jul 09, 2020
by
Michael Rudolf
Browse files
Fixed a bug that tried to fit VST tests containing non-finite data
parent
44181d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
RSTpicking/RST_Func.py
View file @
e04add2d
...
...
@@ -396,9 +396,19 @@ def fitfric(x, a, b):
# %%=====================VELOCITY STEPPING ANALYSIS============================
def
vst_analysis
(
data
):
mu_app
=
data
[
'shearstress'
]
/
data
[
'normalstress'
]
# Apparent friction
logvel
=
np
.
log10
(
data
[
'velocity'
])
# Remove nonfinite values for fitting
onlyfinite
=
np
.
isfinite
(
mu_app
)
mu_app
=
mu_app
[
onlyfinite
]
logvel
=
logvel
[
onlyfinite
]
onlyfinite
=
np
.
isfinite
(
logvel
)
mu_app
=
mu_app
[
onlyfinite
]
logvel
=
logvel
[
onlyfinite
]
pfit
,
pcov
=
curve_fit
(
fitfric
,
np
.
log10
(
data
[
'velocity'
])
,
logvel
,
mu_app
)
perr
=
2
*
np
.
sqrt
(
np
.
diag
(
pcov
))
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment