Skip to content

Commit

Permalink
added support for multiple tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kalhankoul96 committed Jan 8, 2024
1 parent 768f5fa commit 50cd072
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions sam/onyx/generate_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,17 +440,20 @@ def create_matrix_from_point_list(name, pt_list, shape) -> MatrixGenerator:
return mg


def convert_aha_glb_output_file(glbfile, output_dir):
def convert_aha_glb_output_file(glbfile, output_dir, tiles):

glbfile_s = os.path.basename(glbfile).rstrip(".txt")

files = []
if 'mode_vals' in glbfile:
# num_blocks = 1
files = [f"{output_dir}/{glbfile_s}"]
for i in range(tiles):
files.append(f"{output_dir}/{glbfile_s}_tile{i}")
else:
# num_blocks = 2
files = [f"{output_dir}/{glbfile_s}_seg",
f"{output_dir}/{glbfile_s}_crd"]
for i in range(tiles):
files.append(f"{output_dir}/{glbfile_s}_seg_tile{i}")
files.append(f"{output_dir}/{glbfile_s}_crd_tile{i}")

straightline = []

Expand Down
2 changes: 1 addition & 1 deletion sam/onyx/hw_nodes/read_scanner_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def configure(self, attributes):
lookup = 1
elif attributes['mode'].strip('"') == 'vals':
# stop_lvl = 0
lookup = 0
lookup = 1
else:
lookup = 0
block_mode = int(attributes['type'].strip('"') == 'fiberwrite')
Expand Down

0 comments on commit 50cd072

Please sign in to comment.