Script execution

This commit is contained in:
x07maop
2015-08-25 10:07:18 +02:00
parent 0b7434ec5b
commit 202cb7214e

View File

@@ -23,7 +23,7 @@ controller.dataManager.setScanStrategy(Strategy())
def getPars(element):
f = open(controller.setup.getConfigPath() + '/energy_scan.properties')
try:
for line in inputfile:
for line in f:
tokens = line.split("=")
if tokens[0] == str(element):
tokens = tokens[1].split(";")
@@ -62,3 +62,6 @@ class SimulatedEnergyReadback(Readable):
sim_energy = SimulatedEnergy()
sim_energy_readback = SimulatedEnergyReadback()
print getPars("Fe")