Skip to content
Snippets Groups Projects
Commit 4fc0a3d4 authored by Thomas Uram's avatar Thomas Uram
Browse files

Fix

parent 739eb105
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ for L in lins:
f.close()
a=parse_file(sys.argv[1], use_cpp=True)
print('import numpy as np')
print('LGalaxiesStruct = np.dtype([')
for i in a.ext[0].type.decls:
try:
......@@ -62,6 +63,10 @@ for i in a.ext[0].type.decls:
print(i)
print('])')
print("""if __name__ == '__main__':
print('struct size:',LGalaxiesStruct.itemsize)
""")
"""
Decl(name='sfh_numbins',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment