Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
callumrollo committed Oct 31, 2024
1 parent 2ac2499 commit fb9b5f3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions glidertest/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,6 @@ def optics_first_check(ds, var='CHLA'):
This function returns plots and text
"""
_necessary_variables_check(ds, [var, 'TIME', 'DEPTH'])
if var not in ds.variables:
msg = f"{var} does not exist in the dataset. Make sure the spelling is correct or add this variable to your dataset"
raise ValueError(msg)
# Check how much negative data there is
neg_chl = np.round((len(np.where(ds[var] < 0)[0]) * 100) / len(ds[var]), 1)
if neg_chl > 0:
Expand Down

0 comments on commit fb9b5f3

Please sign in to comment.