hongbo-miao/hongbomiao.com

View on GitHub
hardware-in-the-loop/national-instruments/hm-tdms/src/main.py

Summary

Maintainability
A
0 mins
Test Coverage
from utils.convert_tdms_to_parquet import convert_tdms_to_parquet
from utils.generate_iot_tdms import generate_iot_tdms


def main(data_dirname: str, tdms_filename: str, row_count: int) -> None:
    generate_iot_tdms(data_dirname, tdms_filename, row_count)
    convert_tdms_to_parquet(data_dirname, tdms_filename)


if __name__ == "__main__":
    external_data_dirname = "data"
    external_tdms_filename = "iot.tdms"
    external_row_count = 1000000
    main(external_data_dirname, external_tdms_filename, external_row_count)