Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <geky@geky.net>2022-11-10 08:04:22 +0300
committerChristopher Haster <geky@geky.net>2022-11-15 22:38:13 +0300
commit6fce9e51568a280116b519fe986e171a2b34bd5c (patch)
treedca5c43e6737951e1dc2a154ca697d046fe300b5
parent559e17466053e8bb49002d3dcdaa1c158ae9c1fc (diff)
Changed plotmpl.py/plot.py to not treat missing values as discontinuities
-rwxr-xr-xscripts/plot.py11
-rwxr-xr-xscripts/plotmpl.py11
2 files changed, 10 insertions, 12 deletions
diff --git a/scripts/plot.py b/scripts/plot.py
index a163b7e..d2e6401 100755
--- a/scripts/plot.py
+++ b/scripts/plot.py
@@ -479,12 +479,11 @@ def dataset(results, x=None, y=None, define=[]):
# find ys
if y is not None:
if y not in r:
- y_ = None
- else:
- try:
- y_ = dat(r[y])
- except ValueError:
- y_ = None
+ continue
+ try:
+ y_ = dat(r[y])
+ except ValueError:
+ continue
else:
y_ = None
diff --git a/scripts/plotmpl.py b/scripts/plotmpl.py
index bdb3c34..5228652 100755
--- a/scripts/plotmpl.py
+++ b/scripts/plotmpl.py
@@ -230,12 +230,11 @@ def dataset(results, x=None, y=None, define=[]):
# find ys
if y is not None:
if y not in r:
- y_ = None
- else:
- try:
- y_ = dat(r[y])
- except ValueError:
- y_ = None
+ continue
+ try:
+ y_ = dat(r[y])
+ except ValueError:
+ continue
else:
y_ = None