-
Notifications
You must be signed in to change notification settings - Fork 0
/
specs.py
92 lines (70 loc) · 2.16 KB
/
specs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import sys
class Input:
""" Class to store arguments from command line input. All variable values set by argparse in input_proc.py. """
# Command line arguments
input_file_name = ''
output_file_name = ''
# Variables for storing the input file stuff.
input_file_content = []
input_file_length = 0
# Run program to not make .pyc
sys.dont_write_bytecode = True
class Molecule:
""" Class of variables which stores info about each species used for plotting. """
# Info about each species input from user.
number = []
name = []
energy = []
above_state = []
max_energy = 0
min_energy = 0
# Total number of each of the lower and raised species
species_count = 0
ground_species_count = 0
above_species_count = 0
# Lists that define how each of the species connect to one another
connection_type = 'default'
left_connection = []
right_connection = []
connection_count = 0
# Endpoints for the horizontal lines
left_endpt = []
right_endpt = []
class PlotParameter:
""" Class of variables that help format the axes of the plot. """
# Parameters for axes set-up
y_axis_top_lim = 0
y_axis_bot_lim = 0
y_axis_top_extend = 2.5
y_axis_bot_extend = 2.5
y_axis_label = "$\Delta$H$_{0K}$ (kcal mol$^{-1}$)"
x_axis_right_lim = 0
x_axis_right_extend = 0.75
x_axis_label = ''
# Parameters for name and energy labels
name_vshift = 0
name_vshift_scale_fact = 0.015
name_font_size = 16
name_latex_format = 'off'
energy_vshift = 0
energy_vshift_scale_fact = 0.045
energy_font_size = 14
# Parameters to draw lines for each species
species_line_spacing = 1.15
species_line_length = 0.50
species_line_width = 4.5
species_line_color = 'k'
connection_line_width = 1.5
connection_line_color = 'k'
# Y-Tick Parameters
tick_min = -50.0
tick_max = 50.0
tick_intvl = 5.0
class OutFileParameter:
""" Variables specify what the format of the output file that is generated. """
ext = 'pdf'
name = 'surface'
width = 16
height = 9
dpi = 1000
sys.dont_write_bytecode = True