Revert "simplified array assignment for pullphotons"

This reverts commit e09c77c15cb428c50244e2ea95b902e51fa9cd97.