Reactivate old behavior.FilterDisabled() and related commands

Case number:699969-2006371
Topic:General
Opened by:Bruno Kestemont
Status:Open
Type:Suggestion
Opened on:Sunday, January 6, 2019 - 12:58
Last modified:Monday, January 7, 2019 - 16:31

Hi,

See comment here:
https://fold.it/portal/node/2005568#comment-38048

Many recipes used these commands. It's a hard work to translate everything to new filter commands.

Many old recipes turn very slow now for design puzzles because of this.

(Sun, 01/06/2019 - 12:58  |  1 comment)


Joined: 09/24/2012
Groups: Go Science

Well for correcting the old recipes, there is the solution to add this to the recipes:

--copy this at the early beginning of the recipe.

--START Translate old filter functions in order to keep original recipe code. By Bruno Kestemont 7/1/2019

function behavior.GetFiltersDisabled()

return not filter.AreAllEnabled()

end

function behavior.SetFiltersDisabled(disabling)
local disabling = disabling or true
if disabling then
filter.DisableAll() --Disables all filters
else
filter.EnableAll() --Enables all filters
end
end

function behavior.SetSlowFiltersDisabled(disabling)
if disabling then
filter.DisableAll() --Disables all filters
else
filter.EnableAll() --Enables all filters
end
end

--END Translate old filter functions in order to keep original recipe code

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