test_job_info.py 681 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
import os
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)))

import matplotlib.pyplot as plt
import numpy as np

import CFML_api

# Create list from string
print("========\nCreate job_info from string")
dat = [
'Title SrTiO3',
'Npatt 1',
Elisa Rebolini's avatar
Elisa Rebolini committed
15
'Patt_1 XRAY_2THE  1.54056    1.54056    1.00      0.0        135.0',
16
17
18
19
20
21
22
23
24
'UVWXY        0.025  -0.00020   0.01200   0.00150  0.00465',
'STEP         0.05 ',
'Backgd       50.000']

job_info = CFML_api.JobInfo(dat)
job_info.print_description()

job_info.range_2theta = (0.0, 12.0)

Elisa Rebolini's avatar
Elisa Rebolini committed
25
26
27
job_info.pattern_type = "NEUT_2THE"
job_info.lambda_ratio = 0.5

28
29
job_info.print_description()

Elisa Rebolini's avatar
Elisa Rebolini committed
30

31
#help(CFML_api.JobInfo)