Actions
Bug #1294
closedDivsion by zero error in runMakeStack2.php
Start date:
05/10/2011
Due date:
% Done:
0%
Estimated time:
Affected Version:
Appion/Leginon 2.1.0
Show in known bugs:
No
Workaround:
Description
runMakeStack2.php fails to calculate the pixel size on manually collected images. It runs into an error when determining the default boxsize because it is trying to divide by zero. It displays 2 ugly warnings on the stack creation web form and sets boxsize to 4 pixels.
Warning: Division by zero in /srv/www/html/betamyamiweb/processing/runMakeStack2.php on line 383 Warning: Division by zero in /srv/www/html/betamyamiweb/processing/runMakeStack2.php on line 385
This doesn't prevent the user from changing the boxsize and still creating a stack, but I think the getPixelSizeFromImgId function in particledata.inc needs to find the pixel size in a better way that doesn't fail on manually collected leginon data.
Actions