Ticket #20115: ra_bug.py

File ra_bug.py, 343 bytes (added by Tom Goddard, 10 hours ago)

Run this Python after opening ra_bug.cxs to produce the wrong Render by Attribute histogram.

Line 
1from chimerax.core.commands import run
2rba_gui = run(session, 'ui tool show "Render/Select by Attribute"')
3rba_gui.configure(models = [session.models[0]], target = 'residues', tab = 'render', attr_name = 'mutation_score', level_info = [(-0.21, 'blue'), (0.186, 'white'), (0.581, 'white'), (0.977, 'red')], render_type = rba_gui.RENDER_COLORS)