Script execution
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user