source:
ammosreader/sample_scripts/iqdw_reader.py@
229ffb8
Last change on this file since 229ffb8 was c2ca01e, checked in by , 3 years ago | |
---|---|
|
|
File size: 444 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() | |
21 | print(dat_file.container) | |
[4180d6a] | 22 | |
23 | for each in dat_file.container.global_frames: | |
24 | print(each) |
Note:
See TracBrowser
for help on using the repository browser.