On Jul 15, 2005, at 6:00 PM, <[email protected]> wrote:
>
> Anyway, the short version of the question is: does anyone know how to 
> set a
> parameter for a constraint type when the python interface doesn't seem 
> to
> provide access to it? (here, for example the "ceiling" for NOE 
> constraints)
>
>


Try

xplor.command("""
    noe
       class *
       ceiling 1000.0
    end
""")

If you want to change just one class, you could change the asterisk 
above to
the class's name, or do something like

classname = "longrange"

xplor.command("""
    noe
       class %s
       ceiling 1000.0
    end
""" % classname)

and if you wanted to control what the ceiling value is from python,
you could do something like

noeCeiling = 42

xplor.command("""
    noe
       class *
       ceiling %f
    end
""" % noeCeiling)


Charles (and I) recommend "Learning Python", 2nd edition, from O'Reilly 
Press as a great way to get up to speed with Python.

--JK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1048 bytes
Desc: not available
Url : 
http://cake.cit.nih.gov/pipermail/xplor-nih/attachments/20050715/a25361bd/attachment.bin

Reply via email to