示例#1
0
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)

        self.__language = 'english'

        self.__args = parse_args()

        self.__intensity_rt = IntensityRT(args=self.__args,
                                          mode='flat',
                                          log=False,
                                          maximum_intensity='local',
                                          normalize_to='i_0',
                                          language='russian',
                                          t_left=150 * 10**-15,
                                          t_right=-150 * 10**-15,
                                          t_labels=['+100', '0', '-100'],
                                          r_right=200 * 10**-6,
                                          r_labels=['-150', '0', '+150'])

        self.__track = Track(args=self.__args,
                             language='english',
                             intensity=True)

        self.__df_propagation, self.__parameters = None, None
        self.__eps = 0.02
        self.__png_name = 'diffraction'

        self.__horizontal_line = 1 / 2
示例#2
0
import sys
sys.path.insert(0, '/'.join((sys.path[0].replace('\\', '/')).split('/')[:-2]))

from processing.core import parse_args, Track

args = parse_args()

track = Track(args=args, language='english', intensity=True)

track.process()