AmmosSource
guix
Last change
on this file since 38d2a8b was 38d2a8b, checked in by Enrico Schwass <ennoausberlin@…>, 3 years ago |
set endiness explicitly to little on every struct.unpack
|
-
Property mode
set to
100644
|
File size:
348 bytes
|
Line | |
---|
1 | #!/usr/bin/env python3
|
---|
2 |
|
---|
3 | import sys
|
---|
4 | import os
|
---|
5 |
|
---|
6 | from ammosreader.AmmosIFReader import AmmosIFReader
|
---|
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()
|
---|
20 | print(len(dat_file.data()))
|
---|
Note:
See
TracBrowser
for help on using the repository browser.