ccp4/DUI

Not possible to select `KB` model scaling from the simple tab

Closed this issue · 2 comments

KB is apparently the default, because it is first in dials.scale's option list.
image
But dials.scale does not actually set a default in its PHIL options. As a result, if you select KB, DUI assumes you mean "do the default", so you actually get physical (at least for MX data).

Quickest solution is probably to change the order of these so that "physical" is first:

box_mod = DefaultComboBox("model", ["KB", "array", "dose_decay", "physical"])

but in general this stuff is fragile

That's probably the wrong solution though. Better would be to prepend a dummy "Auto" option to the list.