This commit is contained in:
@@ -45,6 +45,8 @@ max_index=0
|
||||
max_index=0
|
||||
|
||||
def get_image_file_name(cycle=-1, frame_index=0, short_name=False):
|
||||
global max_index
|
||||
if (METHOD == "Two_Pol") and (SEQUENCE == "A") and (frame_index<2) and ((cycle%2)==0): #Swapped
|
||||
frame_index = 0 if frame_index else 1
|
||||
root = "" if short_name else (data_path + "/")
|
||||
#prefix = get_context().setup.expandPath("i{seq}%03d" + "_" + ("%d" % frame_index))
|
||||
@@ -127,11 +129,11 @@ try:
|
||||
#time.sleep(1)
|
||||
|
||||
if (METHOD == "Two_Pol") or (METHOD == "Two_Energies"):
|
||||
if (METHOD == "Two_Energies") or (SEQUENCE == "B") or ((cycle%2)==1):
|
||||
if (METHOD == "Two_Energies") or (SEQUENCE == "B") or ((cycle%2)==1):
|
||||
print "Divide first frame by second"
|
||||
frames.append(frames[0].copy())
|
||||
frames[2].div(frames[1])
|
||||
else:
|
||||
else:
|
||||
print "Divide second frame by first"
|
||||
frames.append(frames[1].copy())
|
||||
frames[2].div(frames[0])
|
||||
|
||||
Reference in New Issue
Block a user