Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
openCARP
experiments
Commits
6559db80
Commit
6559db80
authored
Nov 12, 2020
by
Axel Loewe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip lines starting with '#' when reading restitution file
parent
897e34c5
Pipeline
#1583
passed with stage
in 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tutorials/01_EP_single_cell/02B_APD_restitution/run.py
tutorials/01_EP_single_cell/02B_APD_restitution/run.py
+3
-1
No files found.
tutorials/01_EP_single_cell/02B_APD_restitution/run.py
View file @
6559db80
...
...
@@ -212,7 +212,6 @@ from datetime import date
from
carputils
import
settings
from
carputils
import
tools
from
matplotlib
import
pyplot
import
matplotlib.pyplot
as
plt
import
numpy
as
np
def
parser
():
...
...
@@ -271,6 +270,7 @@ def plotResults(di,apd,xmin,xmax,ymin,ymax,webgui,idExp):
f
.
write
(
'%s
\n
'
%
(
value2
))
else
:
# Plot APD vs DI
import
matplotlib.pyplot
as
plt
fig
=
pyplot
.
figure
()
ax
=
fig
.
add_subplot
(
1
,
1
,
1
)
...
...
@@ -295,6 +295,8 @@ def visualize(job, args):
diffdi
=
0
diffapd
=
0
for
line
in
lines
:
if
line
[
0
]
==
"#"
:
continue
p
=
line
.
split
()
if
int
(
cnt
)
>
int
(
0
):
diffdi
=
float
(
di
[
int
(
cnt
)
-
1
])
-
float
(
p
[
5
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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