Skip to content

Commit

Permalink
fixing bug in check for int64
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmith013 committed Feb 7, 2022
1 parent fa7624f commit 8eaa0e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def build_entry(self, hit, params, base_url):
# Add opendap link to netCDF files
if source['info'].get('format') == 'NetCDF':
# Check if any of the values are of int64 type. Dap cannot serve int64
int64 = any([phenom.get('dtype') for phenom in source['info'].get('phenomena', [])])
int64 = any([phenom.get('dtype') == 'int64' for phenom in source['info'].get('phenomena', [])])

if not int64:
entry['properties']['links']['related'].append(
Expand Down

0 comments on commit 8eaa0e8

Please sign in to comment.