Skip to content

Commit

Permalink
helper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmonteiro committed Sep 2, 2024
1 parent 0733533 commit b8bfe0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tercen/util/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,10 @@ def image_file_to_df(file_path):

output_str = []

for fpath in file_path:
with open(fpath, mode="rb") as f:
fc = f.read()
output_str.append([base64.b64encode(fc)])
# for fpath in file_path:
with open(file_path, mode="rb") as f:
fc = f.read()
output_str.append([base64.b64encode(fc)])


o = output_str[0][0]
Expand Down
1 change: 1 addition & 0 deletions tercen/util/helper_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def traverse(self, obj, target, targetAttr=None):
if targetAttr is None:
self.foundList.append(attrVal)
else:
#CHeck if being called
self.foundList.append(getattr(attrVal, targetAttr))
else:
try:
Expand Down

0 comments on commit b8bfe0e

Please sign in to comment.