Skip to content
Snippets Groups Projects
Commit 74ed3375 authored by André Offringa's avatar André Offringa
Browse files

Fix all python examples

parent 96a1df94
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -8,7 +8,8 @@ ntimes = 1000
npol = 2
aoflagger = aof.AOFlagger()
strategy = aoflagger.make_strategy(aof.TelescopeId.Generic, 0, 150e6, 1, 4e3)
path = aoflagger.find_strategy_file(aof.TelescopeId.Generic)
strategy = aoflagger.load_strategy_file(path)
data = aoflagger.make_image_set(ntimes, nch, npol*2)
# Several consecutive values at the same frequency are increased
......@@ -27,7 +28,7 @@ for imgindex in range(npol*2):
data.set_image_buffer(imgindex, values)
flags = aoflagger.run(strategy, data)
flags = strategy.run(data)
flagvalues = flags.get_buffer()
flagvalues = flagvalues*1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment