Skip to content

Commit

Permalink
Update logging message when non-level data is identified. However, co…
Browse files Browse the repository at this point in the history
…mment it out as it really is for testing only, user doesn't need to see this information unless debugging.
  • Loading branch information
BecCowley committed Dec 13, 2023
1 parent 8b393d5 commit d13f05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wodpy/wodnc.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ def is_level_data(self, data_key):
if data_key not in self.r.rootgrp.variables.keys():
return False
if len(self.r.rootgrp.variables[data_key].dimensions) == 0:
logging.warning(data_key + ' not level data.')
# logging.warning(data_key + ' is not level data and of zero size.')
return False
if '_obs' in self.r.rootgrp.variables[data_key].dimensions[0]:
# per level data should have a *_obs dimension
return True
else:
logging.warning(data_key + ' not level data.')
# logging.warning(data_key + ' is not level data.')
return False

def show_profile_metadata(self):
Expand Down

0 comments on commit d13f05a

Please sign in to comment.