Skip to content

Commit

Permalink
Merge pull request #219 from DanielWatkins/master
Browse files Browse the repository at this point in the history
corrected bug where na_values were bypassed
  • Loading branch information
dopplershift authored Apr 12, 2018
2 parents fcec69d + 30ac361 commit 7a332b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion siphon/simplewebservice/igra2.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ def _get_fwf_params(self):
def _cdec(power=1):
"""Make a function to convert string 'value*10^power' to float."""
def _cdec_power(val):
return float(val) / 10**power
if val in ['-9999', '-8888', '-99999']:
return np.nan
else:
return float(val) / 10**power
return _cdec_power

def _cflag(val):
Expand Down

0 comments on commit 7a332b6

Please sign in to comment.