Wiggle Power Function in Lua Scripting and GUI Recipes

Case number:699969-996831
Topic:General
Opened by:wisky
Status:Closed
Type:Suggestion
Opened on:Sunday, February 2, 2014 - 20:16
Last modified:Monday, July 8, 2019 - 13:41

Title says it all.

Wiggle power needs a function implemented in both Lua and GUI scripts/recipes.

(Sun, 02/02/2014 - 20:16  |  7 comments)


Joined: 05/28/2012

adding a gui and lua function would be nice.

jeff101's picture
User offline. Last seen 1 day 13 hours ago. Offline
Joined: 04/20/2012
Groups: Go Science

Bump

Joined: 09/24/2012
Groups: Go Science

A function SetWigglePower and a function GetWigglePower

This would help building recipes:

-with strategies jumping from low to High/Medium and reverse at end game, or Auto and Low at begin game
(now we must do it manually, which takes time)

-partly solving the following problems (the recipe can "reset" to the desired starting point):
http://fold.it/portal/node/997804 on default WP
http://fold.it/portal/node/998050 on current WP display
http://fold.it/portal/node/996896 on current WP display

-partly solving the following problem (recipe can write in notes)
https://fold.it/portal/node/997263 on remembering latest WP

-testing different WP combinations for best final results and/or learning on the best WP strategies

Joined: 09/24/2012
Groups: Go Science

and recipes solving this problem:
http://fold.it/portal/node/997521 on "changing the default Now or ..."

jeff101's picture
User offline. Last seen 1 day 13 hours ago. Offline
Joined: 04/20/2012
Groups: Go Science

When you implement this with LUA functions like SetWigglePower and GetWigglePower, please make a big announcement about it.

LociOiling's picture
User offline. Last seen 5 hours 53 min ago. Offline
Joined: 12/27/2012
Groups: Beta Folders

As proposed for the 2014/8/19 devchat:

First, it seems counterproductive to have some functions that are only accessible through one channel. If you can change something in the user interface, you should be able to change it through a script as well.

Second, not really a wishlist item, but has something happened to auto wiggle power? Auto didn't get a good reputation at the start, but I've recently had encouraging results, including a successful solo on CASP puzzle 957, which spent a long time on auto, by mistake. (See point #1 - script control.)

Joined: 09/24/2012
Groups: Go Science
Status: Open » Closed

It's implemented.

behavior.SetWigglePower(a/l/m/h)
behavior.HighPowerAllowed()
behavior.GetWigglePower()

Here is a small script that uses it:

-- START Wiggle Power Setting stuff
function DisplayLongWigglePower ()
local PowerSetting = behavior.GetWigglePower()
local result = ""
if PowerSetting == "l" then result = "Low"
elseif PowerSetting == "m" then result = "Medium"
elseif PowerSetting == "h" then result = "High"
elseif PowerSetting == "a" then result = "Auto"
end
return result
end
OriginalWPowerSetting= DisplayLongWigglePower ()
print(OriginalWPowerSetting .. " Wiggle Power")

function CheckWP() -- including Alarm Dialog
if OriginalWPowerSetting == "Low" or OriginalWPowerSetting == "Auto" then
local ask=dialog.CreateDialog("Wiggle Power is ".. OriginalWPowerSetting)
ask.l1=dialog.AddLabel("Are you sure ?")
ask.continue=dialog.AddButton("Continue",1)
ask.stop=dialog.AddButton("Cancel",0)
askresult=dialog.Show(ask)
if askresult < 1 then return false end
end
return true
end

-- STOP Wiggle Power Setting stuff

Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons