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