Skip to content

Commit

Permalink
Merge pull request #151 from cedadev/issue/150/missing-opendap
Browse files Browse the repository at this point in the history
fixing bug in check for int64
  • Loading branch information
Richard Smith authored Feb 7, 2022
2 parents fa7624f + 8eaa0e8 commit c20692b
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 c20692b

Please sign in to comment.