goal length of spacebands different between GUI and recipe?

Case number:845813-2004726
Topic:Game: Tools
Opened by:LociOiling
Status:Closed
Type:Question
Opened on:Sunday, January 21, 2018 - 06:27
Last modified:Wednesday, January 24, 2018 - 04:43

I noticed this discrepancy while updating the wiki. Not sure if it's new or not.

When you manually draw a band from a segment to a point in space, the band has a goal length of zero. That's what shows up in the GUI when you adjust the "length" (really goal length). The function band.GetGoalLength also reports zero.

It's different for bands added with band.Add. These end up with goal length of 3.5, just like segment-to-segment bands.

I had thought that band.Add created zero-length bands, just like drawing them manually. But I see at least some recipes set the goal length of spacebands to get a zero-length band.

Can someone tell we whether it's always been this way?

The following code snippet illustrates what I'm talking about. You can add a spaceband manually before running the snippet to compare and contrast.

band.Add ( 2, 1, 3, 20, 0, 0 ) 

for ii = 1, band.GetCount () do
    print ( "band " .. ii .. ", length = " .. band.GetLength ( ii ) .. ", goal length = " .. band.GetGoalLength ( ii ) )
end
(Sun, 01/21/2018 - 06:27  |  2 comments)


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

Susume says the goal length of a band.Add band has always been 3.5, while the goal length of a manual spaceband has always been zero. Good to know!

LociOiling's picture
User offline. Last seen 3 hours 33 min ago. Offline
Joined: 12/27/2012
Groups: Beta Folders
Status: Open » Closed

OK, I have updated and improved the band-related wiki pages:

http://foldit.wikia.com/wiki/Foldit_Lua_Function_band.Add
http://foldit.wikia.com/wiki/Foldit_Lua_Function_band.AddBetweenSegments
http://foldit.wikia.com/wiki/Spaceband

to include information about default strengths and lengths.

I still need to revisit:
http://foldit.wikia.com/wiki/Foldit_Lua_Function_band.AddToBandEndpoint
http://foldit.wikia.com/wiki/Band

and probably some others, but I'm closing this feedback.

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