It looks like we have been doing so for 2 years. It is now broken because the change in r15182 on appionlib.appionLoop2.py.
The way before:
elif self.params['norejects'] is True and apDatabase.getImgCompleteStatus(imgdata) is False:
and then
elif self.params['bestimages'] is True and apDatabase.getImgCompleteStatus(imgdata) is not True:
now it is more like:
elif self.params['norejects'] is True:
if apDatabase.getImgCompleteStatus(imgdata) is False:
else:
and then
elif self.params['bestimages'] is True:
if apDatabase.getImgCompleteStatus(imgdata) is False:
else:
In the new code if norejects is True and bestimage is True, the elif for bestimages will not be reached.
I think it is better to fix myamiweb part any way, so I did so in r15210 and leave appionlib.appionLoop2.py alone for the new feature.
This a bug after 2.1 release
test:
1. Put one image in the exemplar list
1. Use any myamiweb pages that uses the loop, such as runDogPicker.py and choose to process Exemplar and keep images only.
2. Click Just show commands, the flag --no-rejects should not be there. You should see --best-images flag,
3. Run this command and make sure that only the image in the exemplar list is processed by following its progress,