From 06d27978c2d74c7471cd840e8bd7822094ea5fb6 Mon Sep 17 00:00:00 2001
From: Coda Phillips <cphillips@sean.ssec.wisc.edu>
Date: Thu, 14 Jul 2016 16:18:45 -0500
Subject: [PATCH] Don't worry about whether the hatch was open before closing

---
 scene_checks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scene_checks.py b/scene_checks.py
index 828ef71..6883b46 100644
--- a/scene_checks.py
+++ b/scene_checks.py
@@ -24,7 +24,7 @@ def safing_check(frame, parameters):
     if not np.in1d(['hatchOpen','sceneMirrorPosition'], frame.columns).all():
         return frame
 
-    hatch_closing = (frame.hatchOpen == 1).shift(1)  & (frame.hatchOpen == -3)
+    hatch_closing = (frame.hatchOpen == -3)
     mirror_safing = (hatch_closing & frame.sceneMirrorPosition.isin([ord('H'), ord('A')]))
     frame['safing_check'] = mirror_safing * 1
     annotate_all(frame, mirror_safing, 'mirror likely safed during view')
-- 
GitLab