Skip to content

Commit

Permalink
Switched off computation of SHA256 to reduce numerical costs for high…
Browse files Browse the repository at this point in the history
…-throughput study
  • Loading branch information
mkuehbach committed Jun 22, 2024
1 parent 5599700 commit 7d4a0f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pynxtools_em/subparsers/nxs_nion.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ def check_if_nionswift_project(self):
if self.verbose:
fp.seek(0, 2)
eof_byte_offset = fp.tell()
# get_sha256_of_file_content(fp)
print(
f"Expecting hfive: ___{file}___{magic}___{get_sha256_of_file_content(fp)}___{eof_byte_offset}___"
f"Expecting hfive: ___{file}___{magic}___{'0' * 32}___{eof_byte_offset}___"
)
key = file[file.rfind("/") + 1 :].replace(".h5", "")
if key not in self.hfive_file_dict:
Expand All @@ -174,7 +175,7 @@ def check_if_nionswift_project(self):
fp.seek(0, 2)
eof_byte_offset = fp.tell()
print(
f"Expecting ndata: ___{file}___{magic}___{get_sha256_of_file_content(fp)}___{eof_byte_offset}___"
f"Expecting ndata: ___{file}___{magic}___{'0' * 32}___{eof_byte_offset}___"
)
key = file[file.rfind("/") + 1 :].replace(".ndata", "")
if key not in self.ndata_file_dict:
Expand Down

0 comments on commit 7d4a0f3

Please sign in to comment.