AmmosSource
guix
| 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.size())
|
|---|
| 22 |
|
|---|
| 23 | # for each in dat_file.container.global_frames:
|
|---|
| 24 | # print(each)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.