bugfix in run.py array location section, modified and refactored code into new function in bcd_phot: array_location_setup
bugfix in run.py array location section, modified and refactored code into new function in bcd_phot: array_location_setup