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