nanmean Lego fix: AM

Signed-off-by: Andrew McKinney <mckinney@neuro.duke.edu>