Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions nmrglue/fileio/pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1792,10 +1792,23 @@ def __init__(self, filemask, order=(0, 1, 2), fcheck=False):
# find the length of the third dimension
f3 = "FDF" + str(int(dic["FDDIMORDER3"]))
quadrature_factor = [2, 1][int(dic[f3 + 'QUADFLAG'])]

#Checking whether "nmrPipe -fn EXT ..." has been applied to z-dim or not.
#If EXT has been applied, FDF*XN is not zero.
#If z-dim is in time-domain, data-size given by FDF*X1 and FDF*XN has to be doubled.
if dic[f3 + 'FTFLAG']:
lenZ = int(dic[f3 + 'FTSIZE'] * quadrature_factor)

if int(dic[f3 + 'XN']) == 0:
lenZ = int(dic[f3 + 'FTSIZE'] * quadrature_factor)
else:
lenZ = int(dic[f3 + 'XN']) - int(dic[f3 + 'X1']) + 1

else:
lenZ = int(dic[f3 + 'TDSIZE'] * quadrature_factor)
if int(dic[f3 + 'XN']) == 0:
lenZ = int(dic[f3 + 'TDSIZE'] * quadrature_factor)
else:
lenZ = 2*(int(dic[f3 + 'XN']) - int(dic[f3 + 'X1']) + 1)

fshape.insert(0, lenZ) # insert as leading size of fshape

# check that all files exist if fcheck is set
Expand Down