Skip to content

Commit

Permalink
Fix bug where floats would be read as integers
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftysevendegreesofrad committed Apr 1, 2021
1 parent 30eed90 commit 2681b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arcscripts/sdna_environment.py
Expand Up @@ -352,11 +352,11 @@ def GetCount(self,filename):

@staticmethod
def _sf_field_to_type(letter):
if letter=="F" or letter=="O":
if letter=="F" or letter=="O" or letter=="N":
return float
if letter=="L":
return bool
if letter=="N" or letter=="I" or letter=="+":
if letter=="I" or letter=="+":
return int
if letter=="C" or letter=="D" or letter=="M":
return str
Expand Down

0 comments on commit 2681b6f

Please sign in to comment.