-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify logic to not throw error for singleton coordinates (with no bo…
…unds) (#313) * do not throw valuerror if coord length <= 1 in order to accommodate single timestep datasets; simply do not add bounds and warn user * update docstring * add test and ensure warning is suppressed * Refactor `add_missing_bounds()` - Update try and except statements to skip multidimensional or single dimension bounds - Reduce nesting for cleaner code - Update docstrings with explicit criteria on when bounds can be added for coordinates * Update tests/test_bounds.py * Add continue statement if bounds are found * Update xcdat/bounds.py Co-authored-by: Tom Vo <tomvothecoder@gmail.com>
- Loading branch information
1 parent
1469adf
commit 641b9f2
Showing
2 changed files
with
65 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters