Skip to content

Commit 7bf8d16

Browse files
committed
debug cbf test 3
1 parent b26a756 commit 7bf8d16

File tree

2 files changed

+190
-283
lines changed

2 files changed

+190
-283
lines changed

GSASII/imports/G2img_CBF.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def GetCbfData(self,filename):
5959
stream = stream.decode('latin-1')
6060
starter = '\x0c\x1a\x04\xd5'
6161
imageBeg = stream.find(starter)+4
62-
print('\\r\\n in header','\r\n' in header, 'size',imageBeg)
6362
head = stream[:imageBeg]
63+
print('\\r\\n in head','\r\n' in head, 'size',imageBeg)
6464
term = '\r\n' #CR-LF
6565
if term in head:
6666
pass
@@ -92,7 +92,7 @@ def GetCbfData(self,filename):
9292
det2theta = float(fields[2])
9393
if compImageSize is None:
9494
print('CBF failed to read header')
95-
print(header)
95+
print(head)
9696
return
9797

9898
nxy = sizexy[0]*sizexy[1]

0 commit comments

Comments
 (0)