WHOIGit / nes-lter-ims

NES-LTER information system components
MIT License
5 stars 0 forks source link

change nut lat check from 'NA' to NaN #124

Closed joannekoch closed 5 months ago

joannekoch commented 5 months ago

https://nes-lter-data.whoi.edu/api/nut/ar61a ep was throwing this error because empty lat values were changed from 'NA' to NaN:

raise ValueError('Point coordinates must be finite. %r has been passed neslter | ValueError: Point coordinates must be finite. (nan, nan, 0.0) has been passed as coordinates.

Use pd.isna to check for NaN values.