Skip to content

Commit

Permalink
Fixed review findings 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Oct 7, 2024
1 parent faa122c commit 514e59b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def upload_via_joblib(location: bfs.path.PathLike, object: Any):
joblib.dump(object, temp_file.name)
temp_file.flush()
temp_file.seek(0)
# location.write(temp_file) does not write any data to BFS. Probably
# because the NamedTemporaryFile is not seen as a file-like object.
location.write(temp_file.read())


Expand Down

0 comments on commit 514e59b

Please sign in to comment.