Check that the file was opened correctly before trying to get a histogram from it. (We will probably be running over non-consecutive runs of data at times)