Skip to content

Commit

Permalink
Fix hash value conversion bug in general_utils.py and add default arg…
Browse files Browse the repository at this point in the history
…ument to get_or_create_install_folder in setup_utils.py
  • Loading branch information
aelmiger committed Feb 9, 2024
1 parent 017910a commit ad67437
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syclops/utility/general_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def hash_vector(vector):
hash_digest = hash_object.digest()[:8]

# Convert the first 8 bytes of the hash to a 64-bit integer
hash_value = int.from_bytes(hash_digest, byteorder='big')
hash_value = int.from_bytes(hash_digest, byteorder='big', signed=True)

return hash_value

Expand Down
2 changes: 1 addition & 1 deletion syclops/utility/setup_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def install_blender(version: str, install_dir: Path) -> None:
# Clean up
dest_file.unlink()

def get_or_create_install_folder(install_folder_path: str) -> Path:
def get_or_create_install_folder(install_folder_path: str = None) -> Path:
"""
Get the install folder from the config file, or ask the user for a folder.
Expand Down

0 comments on commit ad67437

Please sign in to comment.