Skip to content

Commit

Permalink
Refs #8587 Fix bad logic causing an exception to be incorrectly thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Jan 27, 2014
1 parent d3cc730 commit 5df917e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -247,7 +247,7 @@ def _read_data_from_file(self, file_name):

if ( frequencies.size == 0 ):
raise ValueError("Failed to load any frequencies from file.")
if ( raman_intensities.size == 0 and raman_intensities.size == 0 ):
if ( raman_intensities.size == 0 and ir_intensities.size == 0 ):
raise ValueError("Failed to load any intensities from file.")

return frequencies, ir_intensities, raman_intensities, weights
Expand Down

0 comments on commit 5df917e

Please sign in to comment.