AmmosSource
guix
Last change
on this file since 6d0f203 was 6d0f203, checked in by Enrico Schwass <ennoausberlin@…>, 3 years ago |
apply changes from Franks session
|
-
Property mode
set to
100644
|
File size:
554 bytes
|
Rev | Line | |
---|
[c2ca01e] | 1 | #!/usr/bin/env python3
|
---|
[e764b0e] | 2 |
|
---|
[1e781ba] | 3 | import sys
|
---|
| 4 | import os
|
---|
| 5 |
|
---|
[f3421e6] | 6 | from ammosreader.AmmosIFReader import AmmosIFReader
|
---|
[1e781ba] | 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()
|
---|
[6d0f203] | 20 | print("Frequencies", dat_file.container.frequencies())
|
---|
| 21 | print("Frame types:", dat_file.container.frame_types())
|
---|
| 22 | print("Frame sizes:", dat_file.container.frame_sizes())
|
---|
| 23 | print("Homogenic:", dat_file.container.is_homogenic())
|
---|
Note:
See
TracBrowser
for help on using the repository browser.