Skip to content

Commit

Permalink
Proper casting
Browse files Browse the repository at this point in the history
  • Loading branch information
joanpc committed Sep 18, 2016
1 parent ea5da32 commit 22ce61a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion noaweather/EasyDref.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,13 @@ def set_f(self, value):
self.value_f = value

def get_f(self):
return self.cast(self.value_f)
if self.isarray:
vals = []
for item in self.value_f:
vals.append(self.cast(item))
return vals
else:
return self.value_f

def rset_f(self, value):

Expand Down

0 comments on commit 22ce61a

Please sign in to comment.