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