Skip to content

Commit

Permalink
update subset to loop through values makes sure its accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jul 18, 2024
1 parent eb48451 commit 8592250
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions podaac/subsetter/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,10 +1160,11 @@ def test_access_sst_dtime_values(datafile):
**args
) as dataset:
# pylint: disable=pointless-statement
dataset['sst_dtime'].values
return True
for var_name in dataset.variables:
dataset[var_name].values
except (TypeError, ValueError, KeyError):
return False
return True


def subset(file_to_subset: str, bbox: np.ndarray, output_file: str,
Expand Down

0 comments on commit 8592250

Please sign in to comment.