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