Skip to content

Commit 7f70c32

Browse files
committed
fix plotter
1 parent 337f101 commit 7f70c32

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

atf_plotter/scripts/plot.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import matplotlib as mpl
66
mpl.style.use('classic')
77

8-
from atf_msgs.msg import AtfResult, MetricResult
8+
from atf_msgs.msg import AtfResult, MetricResult, TestblockStatus
99
from atf_core import ATFConfigurationParser
1010

1111
import matplotlib.pyplot as plt
@@ -142,10 +142,8 @@ def plot_benchmark(self, style, sharey, hide_groundtruth, hide_min_max, filter_t
142142
yerr = [[0], [0]]
143143

144144
# set marker transparency (filled or transparent)
145-
if metric_result.started\
146-
and metric_result.finished\
147-
and (metric_result.groundtruth.result or not metric_result.groundtruth.available)\
148-
and metric_result.data.stamp != rospy.Time(0):
145+
if metric_result.status == TestblockStatus.SUCCEEDED\
146+
and (metric_result.groundtruth.result or not metric_result.groundtruth.available):
149147
markerfacecolor = None # plot filled marker
150148
else:
151149
markerfacecolor = 'None' # plot transparent marker

0 commit comments

Comments
 (0)