guix
Last change
on this file since 8285d99 was 8285d99, checked in by Enrico Schwass <ennoausberlin@…>, 21 months ago |
if name == "main" added
|
-
Property mode
set to
100644
|
File size:
554 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())
|
---|
[8285d99] | 20 |
|
---|
| 21 | if __name__ == "__main__":
|
---|
| 22 | main()
|
---|
Note:
See
TracBrowser
for help on using the repository browser.