Module redvox.tests.ios_value_test
Testing DataWindowArrow
Expand source code
"""
Testing DataWindowArrow
"""
import timeit
import numpy as np
from redvox.common.data_window import DataWindow
from redvox.common.data_window import DataWindowConfig
import redvox.common.date_time_utils as dt
import redvox.settings as settings
settings.set_parallelism_enabled(False)
if __name__ == "__main__":
mydir = "/Users/tyler/Documents/app_accel_test"
my_dw_config = DataWindowConfig(mydir)
s = timeit.default_timer()
my_dw = DataWindow("test_big_data", config=my_dw_config, debug=True)
e = timeit.default_timer()
print(f"data window make: {e-s} seconds")
for st in my_dw.stations():
print(st.id())
if st.has_barometer_data():
print(st.barometer_sensor().samples())
if st.has_accelerometer_data():
print(st.accelerometer_sensor().samples())