Skip to content

Commit

Permalink
fix(wea): fix incorrect check for stat with no optical data
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Mackey committed Nov 29, 2018
1 parent 577ccc1 commit 100c77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ladybug/wea.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def from_stat_file(cls, statfile, timestep=1, is_leap_year=False):

# check to be sure the stat file does not have missing tau values
def check_missing(opt_data, data_name):
if opt_data is []:
if opt_data == []:
raise ValueError('Stat file contains no optical data.')
for i, x in enumerate(opt_data):
if x is None:
Expand Down

0 comments on commit 100c77e

Please sign in to comment.