Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kalhankoul96 committed May 17, 2024
1 parent adf6e26 commit 084edae
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sam/onyx/generate_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,15 +515,13 @@ def convert_aha_glb_output_file(glbfile, output_dir, tiles, batches):
sp_line = line.strip().split(" ")
for sp_line_tok in sp_line:
sp_line_tok_stripped = sp_line_tok.strip()
if(sp_line_tok_stripped == ""):
if (sp_line_tok_stripped == ""):
continue
straightline.append(int(sp_line_tok_stripped, base=16))


# Now we have straightline having the items in order
# Now write them to the output



if 'mode_vals' in glbfile:
num_blocks = 1
else:
Expand Down Expand Up @@ -551,10 +549,9 @@ def convert_aha_glb_output_file(glbfile, output_dir, tiles, batches):
if tile == tiles:
tile = 0
batch = batch + 1
#TODO hardcoded value for now
sl_ptr = 32768*batch # size of glb
# TODO hardcoded value for now
sl_ptr = 32768 * batch # size of glb



def find_file_based_on_sub_string(files_dir, sub_string_list):
"""Return the file name in a directory, if the file name
Expand Down

0 comments on commit 084edae

Please sign in to comment.