Skip to content

Commit

Permalink
Fix -9999 issue with ints
Browse files Browse the repository at this point in the history
  • Loading branch information
micah-prime committed Aug 15, 2024
1 parent fec931f commit f1dd9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowex_db/string_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def parse_none(value):
if isinstance(value, str):
if value.lower() in ['nan', 'none', '-9999', '-9999.0'] or not value:
result = None
elif isinstance(value, float):
elif isinstance(value, float) or isinstance(value, int):
if np.isnan(value) or value == -9999:
result = None

Expand Down

0 comments on commit f1dd9ae

Please sign in to comment.