AmmosSource
guix
Last change
on this file since d62906b was d62906b, checked in by Enrico Schwass <ennoausberlin@…>, 3 years ago |
more info methods inside container added
|
-
Property mode
set to
100644
|
File size:
531 bytes
|
Line | |
---|
1 | import sys
|
---|
2 |
|
---|
3 | from ammosreader.AmmosIFReader import AmmosIFReader
|
---|
4 |
|
---|
5 | if __name__ == '__main__':
|
---|
6 |
|
---|
7 | if len(sys.argv) != 2:
|
---|
8 | sys.exit()
|
---|
9 |
|
---|
10 | file_name = sys.argv[1]
|
---|
11 |
|
---|
12 | print("File name:", file_name)
|
---|
13 |
|
---|
14 | dat_file = AmmosIFReader(file_name)
|
---|
15 |
|
---|
16 | dat_file.read_all_frames_left()
|
---|
17 | print("Frequencies", dat_file.container.frequencies())
|
---|
18 | print("Frame types:", dat_file.container.frame_types())
|
---|
19 | print("Total frame sizes:", sum(dat_file.container.frame_sizes()))
|
---|
20 | print("Homogenic:", dat_file.container.is_homogenic())
|
---|
Note:
See
TracBrowser
for help on using the repository browser.