Skip to content

Commit

Permalink
Merge pull request #323 from jonwright/master
Browse files Browse the repository at this point in the history
Do not create a temporary string (it slows down writing on windows)
  • Loading branch information
kif authored Jul 24, 2019
2 parents 88649ac + 6ff0689 commit 52d41f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabio/edfimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def get_edf_block(self, force_type=None, fit2dMode=False):

# Then update static headers freshly deleted
header_keys.insert(0, "Size")
header["Size"] = len(data.tostring())
header["Size"] = data.nbytes
header_keys.insert(0, "HeaderID")
header["HeaderID"] = "EH:%06d:000000:000000" % (self.index + fit2dMode)
header_keys.insert(0, "Image")
Expand Down

0 comments on commit 52d41f0

Please sign in to comment.