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
|
Rev | Line | |
---|
[1e781ba] | 1 | import sys
|
---|
| 2 |
|
---|
[f3421e6] | 3 | from ammosreader.AmmosIFReader import AmmosIFReader
|
---|
[1e781ba] | 4 |
|
---|
[083cf10] | 5 | def main():
|
---|
[1e781ba] | 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()
|
---|
[6d0f203] | 16 | print("Frequencies", dat_file.container.frequencies())
|
---|
| 17 | print("Frame types:", dat_file.container.frame_types())
|
---|
[d62906b] | 18 | print("Total frame sizes:", sum(dat_file.container.frame_sizes()))
|
---|
[6d0f203] | 19 | print("Homogenic:", dat_file.container.is_homogenic())
|
---|
Note:
See
TracBrowser
for help on using the repository browser.