-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
built-in accessor documentation #3988
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
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0d808d4
ad a property-like descriptor that works both on objects and classes
keewis 8b60a2a
generate documentation for the plotting accessor methods
keewis fc0fe04
Merge branch 'master' into accessor-documentation
keewis 4f3780f
add a docstring to the custom property-like descriptor
keewis 001c8d0
use the accessor syntax in the main plotting section
keewis ee183b0
explain why we need a custom property class
keewis c96663f
rename the custom property to UncachedAccessor
keewis 261c69f
declare that __call__ wraps plot
keewis 6ba1b52
add accessor tests
keewis e904e65
Merge branch 'master' into accessor-documentation
keewis eb54df8
add the autosummary templates from pandas
keewis b2b5432
update the plotting section to use the accessor templates
keewis f6a3eaa
Merge branch 'master' into accessor-documentation
keewis c933365
remove the separate callable section
keewis a456bd1
fix the import order
keewis 08cb916
add the DataArray.str accessor as a new subsection
keewis 00fa2e6
Merge branch 'master' into accessor-documentation
keewis eaf95c4
add the datetime accessor to the main api page
keewis 494c4f1
move the plotting functions into the DataArray / Dataset sections
keewis 1e45275
remove the documentation of the accessor class itself
keewis 371bd0f
manually copy the docstring since functools.wraps does more than that
keewis 5cd9f12
also copy the annotations and mark __call__ as wrapping plot
keewis 7df8068
re-enable __slots__
keewis 6fb736b
update whats-new.rst
keewis 4940b53
Merge branch 'master' into accessor-documentation
dcherian 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ fullname }} | ||
{{ underline }} | ||
|
||
.. currentmodule:: {{ module.split('.')[0] }} | ||
|
||
.. autoaccessor:: {{ (module.split('.')[1:] + [objname]) | join('.') }} |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ fullname }} | ||
{{ underline }} | ||
|
||
.. currentmodule:: {{ module.split('.')[0] }} | ||
|
||
.. autoaccessorattribute:: {{ (module.split('.')[1:] + [objname]) | join('.') }} |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ fullname }} | ||
{{ underline }} | ||
|
||
.. currentmodule:: {{ module.split('.')[0] }} | ||
|
||
.. autoaccessorcallable:: {{ (module.split('.')[1:] + [objname]) | join('.') }}.__call__ |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ fullname }} | ||
{{ underline }} | ||
|
||
.. currentmodule:: {{ module.split('.')[0] }} | ||
|
||
.. autoaccessormethod:: {{ (module.split('.')[1:] + [objname]) | join('.') }} |
This file contains hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.