New ScreenPanel
This commit is contained in:
14
script/test35.py
Executable file
14
script/test35.py
Executable file
@@ -0,0 +1,14 @@
|
||||
tutorial_path = "src/main/assembly/help/Tutorial/"
|
||||
run(tutorial_path+"00_devices")
|
||||
|
||||
class FitnessFunction(ReadonlyRegisterBase):
|
||||
def doRead(self):
|
||||
return 1000.0 - (math.pow(ao1.take()-18, 2) + math.pow(ao2.take()-6, 2))
|
||||
|
||||
add_device(FitnessFunction("fitness"), True)
|
||||
|
||||
#a= lscan(ao1, (wf1), 5, 0, 0.1)
|
||||
#a= lscan(ao1, (wf1), 0, 5, 0.1)
|
||||
r = ascan([ao1, ao2], fitness, [0.0,0.0], [21.0,21.0], [1.1, 1.1], title = "Fitness")
|
||||
s= 1.1
|
||||
r = ascan([ao1, ao2], fitness, [0.0,0.0], [4.0,4.0], [s, s], title = "Fitness")
|
||||
Reference in New Issue
Block a user