Skip to content

Commit 3483d22

Browse files
committed
fix failure on missing ON/OFF events
1 parent c52b2a4 commit 3483d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypop/extrae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def _get_roi_times(roi_prv):
177177
data = PRV(roi_prv)
178178
df = data.event
179179

180-
if df.empty:
180+
if df is None or df.empty:
181181
raise ExtraePRVNoOnOffEventsError("No valid Extrae ON-OFF bracket in trace")
182182

183183
# Get the first on and last off events

0 commit comments

Comments
 (0)