Skip to content

Commit

Permalink
fix: track main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
zonca committed Dec 3, 2024
1 parent e1e2929 commit f4869a0
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "kaitai_struct_compiler"]
path = kaitai_struct_compiler
url = https://github.com/det-lab/kaitai_struct_compiler
branch = ManasviGoyal/kaitai_awkward_target
branch = main
73 changes: 73 additions & 0 deletions awkward_kaitai.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"folders": [
{
"path": "kaitai_struct_compiler"
},
{
"path": "."
}
],
"settings": {
"files.watcherExclude": {
"**/target": true
},
"files.associations": {
"iostream": "cpp",
"any": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"complex": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"map": "cpp",
"set": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"cinttypes": "cpp",
"typeinfo": "cpp",
"variant": "cpp"
}
}
}
7 changes: 6 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Welcome to MkDocs
# Katai struct awkward runtime



For full documentation visit [mkdocs.org](https://www.mkdocs.org).

Expand All @@ -15,3 +17,6 @@ For full documentation visit [mkdocs.org](https://www.mkdocs.org).
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.

## Development

18 changes: 18 additions & 0 deletions kaitai-print-layout.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from __future__ import annotations

import sys

sys.path.append("local")
import awkward_kaitai
import numpy as np

testcase = sys.argv[1]

reader = awkward_kaitai.Reader(f"test_artifacts/lib{testcase}.so")
if testcase == "scdms":
testcase = "scdms_v_two_trigger"
from glob import glob
data_filenames = glob(f"example_data/data/{testcase}.*")
assert len(data_filenames) == 1
awkward_array = reader.load(data_filenames[0])
print(awkward_array.layout)

0 comments on commit f4869a0

Please sign in to comment.