This commit is contained in:
gac-x11ma
2021-01-27 16:05:28 +01:00
parent a5242bcaf4
commit 26abb23c10
8 changed files with 18 additions and 16 deletions
+4 -2
View File
@@ -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])