Procházet zdrojové kódy

modify isvalid option

V1.2
Jeong Geol Kim před 3 roky
rodič
revize
aa6ed77431
1 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 5
    2
      modules/coordsi.py

+ 5
- 2
modules/coordsi.py Zobrazit soubor

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

Načítá se…
Zrušit
Uložit