Commit 45173840 authored by Alessandro Mirone's avatar Alessandro Mirone

correction to the current normalisation end to the double-flat-field-correction

parent cd409ed6
This diff is collapsed.
......@@ -2061,16 +2061,22 @@ Units are pixels per projection.
DOUBLERUN4DFF=0
if DOUBLEFFCORRECTION:
dname = os.path.dirname(OUTPUT_FILE)
dd_path = os.path.join( dname,"pyhst_dff_%.2f.edf"%FF2_SIGMA)
print( " CONTROLLO ", dd_path)
if not os.path.exists(dd_path):
DOUBLEFFCORRECTION = 0
DOUBLEFFCORRECTION_ONTHEFLY = 1
DOUBLERUN4DFF = 1
END_VOXEL_3 = START_VOXEL_3
if not isinstance(DOUBLEFFCORRECTION, basestring) :
dname = os.path.dirname(OUTPUT_FILE)
dd_path = os.path.join( dname,"pyhst_dff_%.2f.edf"%FF2_SIGMA)
print( " CONTROLLO ", dd_path)
if not os.path.exists(dd_path):
DOUBLEFFCORRECTION = 0
DOUBLEFFCORRECTION_ONTHEFLY = 1
DOUBLERUN4DFF = 1
END_VOXEL_3 = START_VOXEL_3
else:
DOUBLEFFCORRECTION = dd_path
else:
DOUBLEFFCORRECTION = dd_path
DOUBLEFFCORRECTION = DOUBLEFFCORRECTION
DOUBLEFFCORRECTION_ONTHEFLY = 0
if LT_KNOWN_REGIONS_FILE != "":
......@@ -2986,7 +2992,9 @@ def create_arrays_space_as_dictionary(proj_reading_dict):
ffcorr =numpy.zeros([ P.NUM_IMAGE_2, P.NUM_IMAGE_1 ],"f")
if( Parameters.TAKE_LOGARITHM):
ffcorr[:] = numpy.exp(-ffcorr)
ffcorr[:] = numpy.exp(+ffcorr)
else:
ffcorr[:] = -ffcorr
......
......@@ -405,17 +405,16 @@ def do_pyhst():
if DOCUDA:
CUDA={'include':[]}
CUDA .update(locate_cuda())
CUDA["arch"] = [ # "-gencode", "arch=compute_20,code=compute_20",
"-gencode", "arch=compute_30,code=compute_30" ,
"-gencode", "arch=compute_50,code=compute_50"
]
CUDA["arch"] = [ "-gencode", "arch=compute_20,code=compute_20",
"-gencode", "arch=compute_30,code=compute_30" ,
"-gencode", "arch=compute_50,code=compute_50"
]
# print( CUDA)
CUDA["Xptxas"] = [" ", " -Xptxas=-v"]
def build_Cspace():
"""
Define how to build the main Cspace C extension
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment