From 202cb7214e9c88e88d2a1f3a27ef616d95d98537 Mon Sep 17 00:00:00 2001 From: x07maop Date: Tue, 25 Aug 2015 10:07:18 +0200 Subject: [PATCH] Script execution --- script/local.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 5873094..3050ef7 100644 --- a/script/local.py +++ b/script/local.py @@ -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") \ No newline at end of file