This commit is contained in:
1 parent
a5242bcaf4
commit
26abb23c10
8 files changed
+18
-16
No files matched your search
@@ -45,6 +45,8 @@ 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))
|
||||
abs_index=run_index + frame_index
|
||||
@@ -127,11 +129,11 @@ try:
|
||||
|
||||
if (METHOD == "Two_Pol") or (METHOD == "Two_Energies"):
|
||||
if (METHOD == "Two_Energies") or (SEQUENCE == "B") or ((cycle%2)==1):
|
||||
#print "Divide first frame by second"
|
||||
print "Divide first frame by second"
|
||||
frames.append(frames[0].copy())
|
||||
frames[2].div(frames[1])
|
||||
else:
|
||||
#print "Divide second frame by first"
|
||||
print "Divide second frame by first"
|
||||
frames.append(frames[1].copy())
|
||||
frames[2].div(frames[0])
|
||||
save_image_file(frames[2],cycle, 2)
|
||||
|
||||
Reference in new issue
Block a user