-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate cftime_range() in favor of date_range(use_cftime=True) #10024
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
fc954de
Deprecate cftime_range() and some refactoring
7affcc6
updated whats-new.rst
87f0cde
Add deprecation warning to cftime_range()
635aa2c
Merge branch 'main' into cftime_deprecation
Maddogghoek 392c092
- Update cftime_range example to expect deprecation warning.
f6677eb
Merge branch 'cftime_deprecation' of https://github.com/maddogghoek/x…
5b162fc
Merge branch 'main' into cftime_deprecation
Maddogghoek dec7df5
Update whats-new.rst
Maddogghoek 003edc8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a072f1b
always import core.types.InclusionOptions
e0cfdaa
Merge branch 'cftime_deprecation' of https://github.com/maddogghoek/x…
9bf05e2
fix check of InclusiveOptions Literal check
49a249f
remove dead code
62df181
- Replace calls to cftime_range in core and unit tests
7938bb7
ignore deprecation warnings in test_cftime_offsets.py
7fbff45
- Update cftime_range doctest to ignore deprecation warning.
7324f25
- Fix test_cftime_or_date_range_invalid_inclusive_value for cases where
da4d9f5
update weather-climate.rst to use date_range rather than deprecated c…
d500e79
only check inclusive argument when not already type checked to avoid …
9b45bc8
skip invalid inclusion value if type checking is turned on
f68277e
remove unneeded ignore arg type comments
2fa10f6
s/Illegal/Invalid/ in error message for cftime_range
Maddogghoek 7c4f77b
Merge branch 'main' into cftime_deprecation
Maddogghoek 0e5ee06
Update doc/whats-new.rst
Maddogghoek 7409c1b
remove accidentally included documenation artifact
882c53e
Merge branch 'main' into cftime_deprecation
Maddogghoek 7765d91
update to use data_range instead of cftime_range
Maddogghoek eb87222
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 899f123
remove "bug fix" for #9886
Maddogghoek 12a5c65
fix documentation typo
Maddogghoek 6e7444a
update backwards compatibility section example to use xarray.core.uti…
3adf065
update cftime_range deprecation warning to use emit_user_level_warnin…
40222b8
add "linear" to internal generate_date_range* function names per code…
16ca397
clean up cftime_range docum
Maddogghoek 0004584
replace deprecated cftime_range with date_range(use_cftime=True) for …
1076dab
Merge branch 'cftime_deprecation' of https://github.com/maddogghoek/x…
fec6a99
copy and update cftime_range() documentation notes to date_range() (#…
d611fbc
remove erroneous "stacklevel" argument from emit_user_level_warning c…
acfcaf7
fix test_invalid_date_range_cftime_inputs to catch expected exception…
a0acfd3
Merge branch 'main' into cftime_deprecation
Maddogghoek 8bf8160
improve invalid input error message for date_range()
Maddogghoek 773a7b2
reformat deprecation note
Maddogghoek 3971ce0
Minor documentation improvement for date_range()
Maddogghoek 8e43215
Fix date_range() documentation
Maddogghoek 5043c85
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 4d75b40
remove long url from date_range() documentation
Maddogghoek 9c70c6a
Merge branch 'main' into cftime_deprecation
Maddogghoek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for updating this in the contributing guide!