source:
ammosreader/sample_scripts/iqdw_reader.py@
d41827e
Last change on this file since d41827e was 38d2a8b, checked in by , 3 years ago | |
---|---|
|
|
File size: 348 bytes |
Rev | Line | |
---|---|---|
[c2ca01e] | 1 | #!/usr/bin/env python3 |
[e764b0e] | 2 | |
[1e781ba] | 3 | import sys |
4 | import os | |
5 | ||
[f3421e6] | 6 | from ammosreader.AmmosIFReader import AmmosIFReader |
[1e781ba] | 7 | |
8 | if __name__ == '__main__': | |
9 | ||
10 | if len(sys.argv) != 2: | |
11 | sys.exit() | |
12 | ||
13 | file_name = sys.argv[1] | |
14 | ||
15 | print("File name:", file_name) | |
16 | ||
17 | dat_file = AmmosIFReader(file_name) | |
18 | ||
19 | dat_file.read_all_frames_left() | |
[2a9faed] | 20 | print(len(dat_file.data())) |
Note:
See TracBrowser
for help on using the repository browser.