Bläddra i källkod

modify isvalid option

V1.2
Jeong Geol Kim 3 år sedan
förälder
incheckning
aa6ed77431
1 ändrade filer med 5 tillägg och 2 borttagningar
  1. 5
    2
      modules/coordsi.py

+ 5
- 2
modules/coordsi.py Visa fil

134
         top = threshold
134
         top = threshold
135
         bottom = -threshold
135
         bottom = -threshold
136
         for x in range(0, len(df)):
136
         for x in range(0, len(df)):
137
-            if bottom < df['acceleration'][x] < top:
138
-                df['isValid'][x] = 1
137
+            if df['frame'][x] != 0.0:
138
+                if bottom < df['acceleration'][x] < top:
139
+                    df['isValid'][x] = 1
140
+                else:
141
+                    df['isValid'][x] = 0
139
             else:
142
             else:
140
                 df['isValid'][x] = 0
143
                 df['isValid'][x] = 0
141
         return df
144
         return df

Laddar…
Avbryt
Spara