Exemple #1
0
 def __init__(self):
     Plugin.__init__(self)
     self.images = None
     self.output_format = "edf"
     self.output_file = "toto.edf"
     self.filter = "mean" #Todo: average_percentil_20-80
     self.cutoff = None
Exemple #2
0
Fichier : id15.py Projet : kif/dahu
    def __init__(self):
        """
        """
        Plugin.__init__(self)
        self.queue_in = Queue()
        self.queue_out = Queue()
        self.queue_saver = None
        self.quit_event = Event()
        self.pool = []
        self.raw_saver = None

        self.ai = None  # this is the azimuthal integrator to use
        self.npt = 2000
        self.npt_azim = 256
        self.input_files = []
        self.method = "full_ocl_csr"
        self.unit = "q_nm^-1"
        self.output_file = None
        self.mask = None
        self.wavelength = None
        self.polarization_factor = None
        self.do_SA = False
        self.dummy = None
        self.delta_dummy = None
        self.norm = 1
        self.error_model = None  # "poisson"
        self.save_raw = None
        self.raw_nxs = None
        self.raw_ds = None
        self.raw_compression = None
        self.integration_method = "integrate1d"
        self.sigma_clip_thresold = 3
        self.sigma_clip_max_iter = 5
        self.medfilt1d_percentile = (10, 90)
Exemple #3
0
 def __init__(self):
     Plugin.__init__(self)
     self.images = None
     self.output_format = "edf"
     self.output_file = "toto.edf"
     self.filter = "mean"  #Todo: average_percentil_20-80
     self.cutoff = None
Exemple #4
0
    def __init__(self):
        """
        """
        Plugin.__init__(self)
        self.queue_in = Queue()
        self.queue_out = Queue()
        self.queue_saver = None
        self.quit_event = Event()
        self.pool = []
        self.raw_saver = None

        self.ai = None  # this is the azimuthal integrator to use
        self.npt = 2000
        self.npt_azim = 256
        self.input_files = []
        self.method = "full_ocl_csr"
        self.unit = "q_nm^-1"
        self.output_file = None
        self.mask = None
        self.wavelength = None
        self.polarization_factor = None
        self.do_SA = False
        self.dummy = None
        self.delta_dummy = None
        self.norm = 1
        self.error_model = None  # "poisson"
        self.save_raw = None
        self.raw_nxs = None
        self.raw_ds = None
        self.raw_compression = None
        self.integration_method = "integrate1d"
        self.sigma_clip_thresold = 3
        self.sigma_clip_max_iter = 5
        self.medfilt1d_percentile = (10, 90)
Exemple #5
0
 def __init__(self):
     """
     """
     Plugin.__init__(self)
     self.ai = None  # this is the azimuthal integrator to use
     self.dest_dir = None
     self.ntp = 1000
     self.input_files = []
     self.monitor_values = None
     self.method = "full_ocl_csr"
     self.unit = "q_nm^-1"
     self.output_files = []
Exemple #6
0
 def __init__(self):
     Plugin.__init__(self)
     self.cycle = None
     self.c216 = None
     self.hdf5 = None
     self.hdf5_filename = None
     self.entry = None
     self.instrument = None
     self.group = None
     self.tfg_grp = None
     self.mcs_grp = None
     self.input2 = {}
Exemple #7
0
 def __init__(self):
     Plugin.__init__(self)
     self.cycle = None
     self.c216 = None
     self.hdf5 = None
     self.hdf5_filename = None
     self.entry = None
     self.instrument = None
     self.group = None
     self.tfg_grp = None
     self.mcs_grp = None
     self.input2 = {}
Exemple #8
0
 def __init__(self):
     """
     """
     Plugin.__init__(self)
     self.shared = None
     self.strOutputFile = None
     self.ai = None #this is the azimuthal integrator to use
     self.data = None
     self.mask = None
     self.nbPt = None
     self.dummy = None
     self.delta_dummy = None
     self.npaOut = None
Exemple #9
0
Fichier : xpcs.py Projet : kif/dahu
 def __init__(self):
     Plugin.__init__(self)
     self.start_time = get_isotime()
     self.nxs = None  # output data file
     self.dataset = None
     self.shape = None  # shape of every image
     self.nframes = None  # Number of input frames
     self.qmask = None  # contains the numpy array with the qmask
     self.unit = "q_nm^-1"
     self.ai = None
     self.correlator_name = None
     self.result_filename = None
     self.timestep = None
Exemple #10
0
 def __init__(self):
     Plugin.__init__(self)
     self.buffer_files = []
     self.sample_file = None
     self.nxs = None
     self.output_file = None
     self.ai = None
     self.npt = None
     self.poni = None
     self.mask = None
     self.energy = None
     self.sample_juice = None
     self.buffer_juices = []
Exemple #11
0
 def __init__(self):
     """
     """
     Plugin.__init__(self)
     self.shared = None
     self.strOutputFile = None
     self.ai = None  #this is the azimuthal integrator to use
     self.data = None
     self.mask = None
     self.nbPt = None
     self.dummy = None
     self.delta_dummy = None
     self.npaOut = None
Exemple #12
0
 def __init__(self):
     Plugin.__init__(self)
     self.cycle = None
     self.c216 = None
     self.nxs = None
     self.hdf5_filename = None
     self.entry = None
     self.instrument = None
     self.group = None
     self.tfg_grp = None
     self.mcs_grp = None
     self.input2 = {}
     if "TANGO_HOST" not in os.environ:
         raise RuntimeError("No TANGO_HOST defined")
Exemple #13
0
 def __init__(self):
     Plugin.__init__(self)
     self.sample = None
     self.ispyb = None
     self.input_file = None
     self._input_frames = None
     self.output_file = None
     self.nxs = None
     self.nb_frames = None
     self.ai = None
     self.npt = 1000
     self.unit = pyFAI.units.to_unit("q_nm^-1")
     # self.polarization_factor = 0.9 --> constant
     self.poni = self.mask = None
     self.energy = None
     #self.method = IntegrationMethod.select_method(1, "no", "csr", "opencl")[0] -> constant
     self.monitor_values = None
     self.normalization_factor = None
Exemple #14
0
 def __init__(self):
     """
     """
     Plugin.__init__(self)
     self.ai = None  # this is the azimuthal integrator to use
     self.dest_dir = None
     self.json_data = None
     self.ntp = 3000
     self.input_files = []
     self.method = "full_ocl_csr"
     self.unit = "q_nm^-1"
     self.output_files = []
     self.mask = ""
     self.wavelength = None
     self.dummy = -1
     self.delta_dummy = 0
     self.polarization_factor = None
     self.do_SA = False
     self.norm = 1e12
Exemple #15
0
 def __init__(self):
     Plugin.__init__(self)
     self.ai = None
     self.distortion = None
     self.workers = {}
     self.output_ds = {}  # output datasets
     self.dest = None  # output directory
     self.I1 = None  # beam stop diode values
     self.t = None  # time of the start of the frame. Same shape as self.I1
     self.nframes = None
     self.to_save = [
         "raw", "ave"
     ]  # by default only raw image and averaged one is saved
     self.input_nxs = None
     self.metadata_nxs = None
     self.images_ds = None
     self.metadata_plugin = None
     self.metadata = {}
     self.npt1_rad = None
     self.npt2_rad = None
     self.npt2_azim = None
     self.dark = None
     self.dark_filename = None
     self.flat_filename = None
     self.flat = None
     self.mask_filename = None
     self.distortion_filename = None
     self.output_hdf5 = {}
     self.dist = 1.0
     self.absolute_solid_angle = None
     self.in_shape = None
     self.scaling_factor = 1.0
     self.correct_solid_angle = True
     self.correct_I1 = True
     self.dummy = None
     self.delta_dummy = None
     self.unit = "q_nm^-1"
     self.polarization = None
     self.cache_ai = None
     self.cache_dis = None
     self.variance_formula = None
     self.variance_function = lambda data, dark: None
Exemple #16
0
 def __init__(self):
     Plugin.__init__(self)
     self.ai = None
     self.distotion_cor = None
     self.distotion_norm = None
     self.workers = {}
     self.output_ds = {}  # output datasets
     self.dest = None  # output directory
     self.I1 = None  # beam stop diode values
     self.t = None  # time of the start of the frame. Same shape as self.I1
     self.nframes = None
     self.to_save = ["raw", "ave"]  # by default only raw image and averaged one is saved
     self.input_nxs = None
     self.metadata_nxs = None
     self.images_ds = None
     self.metadata_plugin = None
     self.metadata = {}
     self.npt1_rad = None
     self.npt2_rad = None
     self.npt2_azim = None
     self.dark = None
     self.dark_filename = None
     self.flat_filename = None
     self.flat = None
     self.mask_filename = None
     self.distortion_filename = None
     self.output_hdf5 = {}
     self.dist = 1.0
     self.absolute_solid_angle = None
     self.in_shape = None
     self.scaling_factor = 1.0
     self.correct_solid_angle = True
     self.correct_I1 = True
     self.dummy = None
     self.delta_dummy = None
     self.unit = "q_nm^-1"
     self.polarization = None
Exemple #17
0
 def __init__(self):
     Plugin.__init__(self)
     self.input_ds = None
     self.output_ds = None
     self.distortion = None
Exemple #18
0
 def __init__(self):
     Plugin.__init__(self)
     self.input_metadata = None
     self.plugins = {"metadata":Metadata()}
Exemple #19
0
 def __init__(self):
     Plugin.__init__(self)
     self.input_metadata = None
     self.plugins = {"metadata": Metadata()}
Exemple #20
0
 def __init__(self):
     Plugin.__init__(self)
     self.input_ds = None
     self.output_ds = None
     self.distortion = None