AmmosSource
guix
|
Last change
on this file since 1f67b03 was c2ca01e, checked in by Enrico Schwass <ennoausberlin@…>, 3 years ago |
|
fix shebang in iqdw_reader.py
|
-
Property mode
set to
100644
|
|
File size:
444 bytes
|
| Line | |
|---|
| 1 | #!/usr/bin/env python3
|
|---|
| 2 |
|
|---|
| 3 | import sys
|
|---|
| 4 | import os
|
|---|
| 5 | sys.path.append('../src/')
|
|---|
| 6 |
|
|---|
| 7 | from ammosreader.AmmosIFReader import AmmosIFReader
|
|---|
| 8 |
|
|---|
| 9 | if __name__ == '__main__':
|
|---|
| 10 |
|
|---|
| 11 | if len(sys.argv) != 2:
|
|---|
| 12 | sys.exit()
|
|---|
| 13 |
|
|---|
| 14 | file_name = sys.argv[1]
|
|---|
| 15 |
|
|---|
| 16 | print("File name:", file_name)
|
|---|
| 17 |
|
|---|
| 18 | dat_file = AmmosIFReader(file_name)
|
|---|
| 19 |
|
|---|
| 20 | dat_file.read_all_frames_left()
|
|---|
| 21 | print(dat_file.container)
|
|---|
| 22 |
|
|---|
| 23 | for each in dat_file.container.global_frames:
|
|---|
| 24 | print(each)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.