-
Notifications
You must be signed in to change notification settings - Fork 11
/
example.py
38 lines (31 loc) · 1.23 KB
/
example.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
####################################################################
# Type: SCRIPT #
# #
# Description: This is a script skeleton. #
####################################################################
from hcal_teststand import *
from hcal_teststand.hcal_teststand import teststand
import sys
# CLASSES:
# /CLASSES
# FUNCTIONS:
# /FUNCTIONS
# MAIN:
if __name__ == "__main__":
name = ""
if len(sys.argv) == 1:
name = "904"
elif len(sys.argv) == 2:
name = sys.argv[1]
else:
name = "904"
print "\nYou've just run a script that's a skeleton for making your own script.\n"
# Initialize a teststand object:
ts = teststand(name) # This object stores the teststand configuration and has a number of useful methods.
# ts.update() # Set version info in each component.
# Print out some information about the teststand:
ts.Print()
# print ">> The teststand you're using is named {0}.".format(ts.name)
# print ">> The BE crate and uHTR organization for the teststand is below:\n{0}".format(ts.be)
# print ">> The FE crate and QIE card organization for the teststand is below:\n{0}".format(ts.fe)
# /MAIN