repo
stringclasses
10 values
instance_id
stringlengths
18
32
html_url
stringlengths
41
55
feature_patch
stringlengths
805
8.42M
test_patch
stringlengths
548
207k
doc_changes
listlengths
0
92
version
stringclasses
57 values
base_commit
stringlengths
40
40
PASS2PASS
listlengths
0
3.51k
FAIL2PASS
listlengths
0
5.17k
augmentations
dict
mask_doc_diff
listlengths
0
92
problem_statement
stringlengths
0
54.8k
sphinx-doc/sphinx
sphinx-doc__sphinx-7314
https://github.com/sphinx-doc/sphinx/pull/7314
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py index a9196d3a67e..23be0a00aa1 100644 --- a/sphinx/ext/apidoc.py +++ b/sphinx/ext/apidoc.py @@ -175,6 +175,7 @@ def create_package_file(root: str, master_package: str, subroot: str, py_files: 'separatemodules': opts.separatemodules, 'automodule_...
diff --git a/tests/test_ext_apidoc.py b/tests/test_ext_apidoc.py index a37527a026d..e8d923b71b1 100644 --- a/tests/test_ext_apidoc.py +++ b/tests/test_ext_apidoc.py @@ -121,15 +121,16 @@ def test_pep_0420_enabled_separate(make_app, apidoc): with open(outdir / 'a.b.c.rst') as f: rst = f.read() - a...
[]
3.0
504d261f2fe5477c0226e1c7b2bbd20f0806ffda
[ "tests/test_ext_apidoc.py::test_private", "tests/test_ext_apidoc.py::test_namespace_package_file", "tests/test_ext_apidoc.py::test_package_file_without_submodules", "tests/test_ext_apidoc.py::test_subpackage_in_toc", "tests/test_ext_apidoc.py::test_trailing_underscore", "tests/test_ext_apidoc.py::test_pac...
[ "tests/test_ext_apidoc.py::test_package_file_separate", "tests/test_ext_apidoc.py::test_package_file", "tests/test_ext_apidoc.py::test_pep_0420_enabled_separate" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[]
sphinx-doc/sphinx
sphinx-doc__sphinx-7234
https://github.com/sphinx-doc/sphinx/pull/7234
diff --git a/CHANGES b/CHANGES index 15c4f376c72..3263f9fb5cd 100644 --- a/CHANGES +++ b/CHANGES @@ -58,6 +58,7 @@ Features added * #6830: autodoc: consider a member private if docstring contains ``:meta private:`` in info-field-list * #7165: autodoc: Support Annotated type (PEP-593) +* #2815: autodoc: Support sin...
diff --git a/tests/roots/test-ext-autodoc/target/singledispatch.py b/tests/roots/test-ext-autodoc/target/singledispatch.py new file mode 100644 index 00000000000..c33d001b1c1 --- /dev/null +++ b/tests/roots/test-ext-autodoc/target/singledispatch.py @@ -0,0 +1,19 @@ +from functools import singledispatch + + +@singledisp...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 15c4f376c72..3263f9fb5cd 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -58,6 +58,7 @@ Features added\n * #6830: autodoc: consider a member private if docstring contains\n ``:meta pr...
3.0
0e89979355c6c88adb960a7272c633d5afd34e67
[ "tests/test_autodoc.py::test_get_doc", "tests/test_autodoc.py::test_autodoc_exception", "tests/test_autodoc.py::test_autodoc_warnings", "tests/test_autodoc.py::test_partialmethod", "tests/test_autodoc.py::test_autodoc_c_module", "tests/test_autodoc.py::test_attrgetter_using", "tests/test_autodoc.py::tes...
[ "tests/test_autodoc.py::test_singledispatch" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "singledispatchmethod" } ] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 15c4f376c72..3263f9fb5cd 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -58,6 +58,7 @@ Features added\n * #<PRID>: autodoc: consider a member private if docstring contains\n ``:meta ...
diff --git a/CHANGES b/CHANGES index 15c4f376c72..3263f9fb5cd 100644 --- a/CHANGES +++ b/CHANGES @@ -58,6 +58,7 @@ Features added * #<PRID>: autodoc: consider a member private if docstring contains ``:meta private:`` in info-field-list * #<PRID>: autodoc: Support Annotated type (PEP-593) +* #<PRID>: autodoc: Suppo...
sphinx-doc/sphinx
sphinx-doc__sphinx-7831
https://github.com/sphinx-doc/sphinx/pull/7831
diff --git a/CHANGES b/CHANGES index a5aa1ed312e..21c8cf1a14f 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,9 @@ Deprecated Features added -------------- +* #7807: autodoc: Show detailed warning when type_comment is mismatched with its + signature + Bugs fixed ---------- @@ -22,6 +25,7 @@ Bugs fixed * #7802...
diff --git a/tests/roots/test-ext-autodoc/target/wrappedfunction.py b/tests/roots/test-ext-autodoc/target/wrappedfunction.py index ea872f08682..0bd2d206994 100644 --- a/tests/roots/test-ext-autodoc/target/wrappedfunction.py +++ b/tests/roots/test-ext-autodoc/target/wrappedfunction.py @@ -1,8 +1,15 @@ -# for py32 or abo...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex a5aa1ed312e..21c8cf1a14f 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -15,6 +15,9 @@ Deprecated\n Features added\n --------------\n \n+* #7807: autodoc: Show detailed warning when ty...
3.1
b56772102e138b0a5d83f02e0031eb075c854921
[ "tests/test_ext_autodoc_autofunction.py::test_builtin_function", "tests/test_ext_autodoc_autofunction.py::test_callable", "tests/test_ext_autodoc_autofunction.py::test_wrapped_function", "tests/test_ext_autodoc_autofunction.py::test_decorated", "tests/test_ext_autodoc_autofunction.py::test_methoddescriptor"...
[ "tests/test_ext_autodoc_autofunction.py::test_wrapped_function_contextmanager" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "contextlib" } ] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex a5aa1ed312e..21c8cf1a14f 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -15,6 +15,9 @@ Deprecated\n Features added\n --------------\n \n+* #<PRID>: autodoc: Show detailed warning when ...
diff --git a/CHANGES b/CHANGES index a5aa1ed312e..21c8cf1a14f 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,9 @@ Deprecated Features added -------------- +* #<PRID>: autodoc: Show detailed warning when type_comment is mismatched with its + signature + Bugs fixed ---------- @@ -22,6 +25,7 @@ Bugs fixed * #<P...
sphinx-doc/sphinx
sphinx-doc__sphinx-7064
https://github.com/sphinx-doc/sphinx/pull/7064
diff --git a/CHANGES b/CHANGES index a16ce6b8cd5..3050f69d584 100644 --- a/CHANGES +++ b/CHANGES @@ -161,6 +161,8 @@ Features added * #6966: graphviz: Support ``:class:`` option * #6696: html: ``:scale:`` option of image/figure directive not working for SVG images (imagesize-1.2.0 or above is required) +* #7025: h...
diff --git a/tests/roots/test-search/nosearch.rst b/tests/roots/test-search/nosearch.rst new file mode 100644 index 00000000000..9aa48b3745f --- /dev/null +++ b/tests/roots/test-search/nosearch.rst @@ -0,0 +1,7 @@ +:nosearch: + +nosearch +======== + +zfs +latex diff --git a/tests/test_search.py b/tests/test_search.py i...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex a16ce6b8cd5..3050f69d584 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -161,6 +161,8 @@ Features added\n * #6966: graphviz: Support ``:class:`` option\n * #6696: html: ``:scale:`` opt...
3.0
56eca39cbb378544efbbba930829cd6f0ac318ef
[ "tests/test_search.py::test_IndexBuilder", "tests/test_search.py::test_stemmer_does_not_remove_short_words", "tests/test_search.py::test_search_index_gen_zh", "tests/test_search.py::test_IndexBuilder_lookup", "tests/test_search.py::test_objects_are_escaped" ]
[ "tests/test_search.py::test_nosearch" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex a16ce6b8cd5..3050f69d584 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -161,6 +161,8 @@ Features added\n * #<PRID>: graphviz: Support ``:class:`` option\n * #<PRID>: html: ``:scale:``...
diff --git a/CHANGES b/CHANGES index a16ce6b8cd5..3050f69d584 100644 --- a/CHANGES +++ b/CHANGES @@ -161,6 +161,8 @@ Features added * #<PRID>: graphviz: Support ``:class:`` option * #<PRID>: html: ``:scale:`` option of image/figure directive not working for SVG images (imagesize-1.2.0 or above is required) +* #<PR...
sphinx-doc/sphinx
sphinx-doc__sphinx-7515
https://github.com/sphinx-doc/sphinx/pull/7515
diff --git a/CHANGES b/CHANGES index 8ee3fd09253..60ec69e07f2 100644 --- a/CHANGES +++ b/CHANGES @@ -24,6 +24,7 @@ Features added :confval:`suppress_warnings` * C, added scope control directives, :rst:dir:`c:namespace`, :rst:dir:`c:namespace-push`, and :rst:dir:`c:namespace-pop`. +* #2044: autodoc: Suppress defa...
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index dd474536d3a..3907e34657d 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1032,14 +1032,12 @@ def test_instance_attributes(app): '', ' .. py:attribute:: InstAttCls.ia1', ' :module: target', - ' ...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 8ee3fd09253..60ec69e07f2 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -24,6 +24,7 @@ Features added\n :confval:`suppress_warnings`\n * C, added scope control directives, :rst:dir:`...
3.1
12cb90c3fa5451e2c99100d8ce1d4d0a8bb7f527
[ "tests/test_autodoc.py::test_get_doc", "tests/test_autodoc.py::test_singledispatch", "tests/test_autodoc.py::test_autodoc_exception", "tests/test_autodoc.py::test_autodoc_warnings", "tests/test_autodoc.py::test_partialmethod", "tests/test_autodoc.py::test_autodoc_c_module", "tests/test_autodoc.py::test_...
[ "tests/test_autodoc.py::test_autodoc_typed_instance_variables", "tests/test_autodoc.py::test_instance_attributes" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 8ee3fd09253..60ec69e07f2 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -24,6 +24,7 @@ Features added\n :confval:`suppress_warnings`\n * C, added scope control directives, :rst:dir:`...
diff --git a/CHANGES b/CHANGES index 8ee3fd09253..60ec69e07f2 100644 --- a/CHANGES +++ b/CHANGES @@ -24,6 +24,7 @@ Features added :confval:`suppress_warnings` * C, added scope control directives, :rst:dir:`c:namespace`, :rst:dir:`c:namespace-push`, and :rst:dir:`c:namespace-pop`. +* #<PRID>: autodoc: Suppress de...
sphinx-doc/sphinx
sphinx-doc__sphinx-7473
https://github.com/sphinx-doc/sphinx/pull/7473
diff --git a/doc/usage/extensions/autodoc.rst b/doc/usage/extensions/autodoc.rst index 60cde1ac739..36be7568b13 100644 --- a/doc/usage/extensions/autodoc.rst +++ b/doc/usage/extensions/autodoc.rst @@ -154,6 +154,21 @@ inserting them into the page source under a suitable :rst:dir:`py:module`, .. versionadded:: 3...
diff --git a/tests/roots/test-ext-autodoc/target/private.py b/tests/roots/test-ext-autodoc/target/private.py index 38f27666354..a39ce085eca 100644 --- a/tests/roots/test-ext-autodoc/target/private.py +++ b/tests/roots/test-ext-autodoc/target/private.py @@ -3,3 +3,9 @@ def private_function(name): :meta private: ...
[ { "path": "doc/usage/extensions/autodoc.rst", "old_path": "a/doc/usage/extensions/autodoc.rst", "new_path": "b/doc/usage/extensions/autodoc.rst", "metadata": "diff --git a/doc/usage/extensions/autodoc.rst b/doc/usage/extensions/autodoc.rst\nindex 60cde1ac739..36be7568b13 100644\n--- a/doc/usage/exte...
3.1
2fac698e764ac28dec86844624f4ac415ea11a37
[ "tests/test_ext_autodoc_private_members.py::test_private_field_and_private_members" ]
[ "tests/test_ext_autodoc_private_members.py::test_private_field" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/usage/extensions/autodoc.rst", "old_path": "a/doc/usage/extensions/autodoc.rst", "new_path": "b/doc/usage/extensions/autodoc.rst", "metadata": "diff --git a/doc/usage/extensions/autodoc.rst b/doc/usage/extensions/autodoc.rst\nindex 60cde1ac739..36be7568b13 100644\n--- a/doc/usage/exte...
diff --git a/doc/usage/extensions/autodoc.rst b/doc/usage/extensions/autodoc.rst index 60cde1ac739..36be7568b13 100644 --- a/doc/usage/extensions/autodoc.rst +++ b/doc/usage/extensions/autodoc.rst @@ -154,6 +154,21 @@ inserting them into the page source under a suitable :rst:dir:`py:module`, .. versionadded:: 3...
sphinx-doc/sphinx
sphinx-doc__sphinx-7487
https://github.com/sphinx-doc/sphinx/pull/7487
diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py index ac4c7ed4bd5..a0728edfc45 100644 --- a/sphinx/ext/autodoc/__init__.py +++ b/sphinx/ext/autodoc/__init__.py @@ -1062,30 +1062,15 @@ def document_members(self, all_members: bool = False) -> None: def add_directive_header(self, sig: s...
diff --git a/tests/test_autodoc.py b/tests/test_autodoc.py index dd474536d3a..8e23291f38d 100644 --- a/tests/test_autodoc.py +++ b/tests/test_autodoc.py @@ -1604,6 +1604,21 @@ def test_singledispatch(): ] +@pytest.mark.usefixtures('setup_test') +def test_singledispatch_autofunction(): + options = {} + ac...
[]
3.1
85ae035d61dfe9e6fb0b22f247b7655ac4d5146c
[ "tests/test_autodoc.py::test_get_doc", "tests/test_autodoc.py::test_singledispatch", "tests/test_autodoc.py::test_autodoc_exception", "tests/test_autodoc.py::test_autodoc_warnings", "tests/test_autodoc.py::test_partialmethod", "tests/test_autodoc.py::test_autodoc_c_module", "tests/test_autodoc.py::test_...
[ "tests/test_autodoc.py::test_singledispatch_autofunction" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[]
sphinx-doc/sphinx
sphinx-doc__sphinx-7748
https://github.com/sphinx-doc/sphinx/pull/7748
diff --git a/CHANGES b/CHANGES index 6c2761c53e8..70cb5dcbd36 100644 --- a/CHANGES +++ b/CHANGES @@ -49,6 +49,7 @@ Features added * #7143: autodoc: Support final classes and methods * #7384: autodoc: Support signatures defined by ``__new__()``, metaclasses and builtin base classes +* #2106: autodoc: Support multip...
diff --git a/tests/roots/test-ext-autodoc/target/docstring_signature.py b/tests/roots/test-ext-autodoc/target/docstring_signature.py index 2e5499770c3..244109629bc 100644 --- a/tests/roots/test-ext-autodoc/target/docstring_signature.py +++ b/tests/roots/test-ext-autodoc/target/docstring_signature.py @@ -17,3 +17,9 @@ d...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 6c2761c53e8..70cb5dcbd36 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -49,6 +49,7 @@ Features added\n * #7143: autodoc: Support final classes and methods\n * #7384: autodoc: Support ...
3.1
9988d5ce267bf0df4791770b469431b1fb00dcdd
[ "tests/test_ext_autodoc_configs.py::test_autodoc_docstring_signature", "tests/test_ext_autodoc_configs.py::test_autodoc_inherit_docstrings", "tests/test_ext_autodoc_configs.py::test_autodoc_typehints_none", "tests/test_ext_autodoc_configs.py::test_autoclass_content_init", "tests/test_ext_autodoc_configs.py:...
[ "tests/test_ext_autodoc_configs.py::test_autoclass_content_and_docstring_signature_both", "tests/test_ext_autodoc_configs.py::test_autoclass_content_and_docstring_signature_init" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 6c2761c53e8..70cb5dcbd36 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -49,6 +49,7 @@ Features added\n * #<PRID>: autodoc: Support final classes and methods\n * #<PRID>: autodoc: Supp...
diff --git a/CHANGES b/CHANGES index 6c2761c53e8..70cb5dcbd36 100644 --- a/CHANGES +++ b/CHANGES @@ -49,6 +49,7 @@ Features added * #<PRID>: autodoc: Support final classes and methods * #<PRID>: autodoc: Support signatures defined by ``__new__()``, metaclasses and builtin base classes +* #<PRID>: autodoc: Support ...
sphinx-doc/sphinx
sphinx-doc__sphinx-7384
https://github.com/sphinx-doc/sphinx/pull/7384
diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py index 027fb08698a..f8e4be99972 100644 --- a/sphinx/ext/autodoc/__init__.py +++ b/sphinx/ext/autodoc/__init__.py @@ -13,7 +13,7 @@ import importlib import re import warnings -from inspect import Parameter +from inspect import Parameter, Sign...
diff --git a/tests/roots/test-ext-autodoc/target/typehints.py b/tests/roots/test-ext-autodoc/target/typehints.py index 4503d41e4f5..1a70eca67fc 100644 --- a/tests/roots/test-ext-autodoc/target/typehints.py +++ b/tests/roots/test-ext-autodoc/target/typehints.py @@ -37,6 +37,26 @@ def tuple_args(x: Tuple[int, Union[int, ...
[]
3.1
ee4c7d3a68734a6cbfc787d9b9e80cd5c260fdcb
[ "tests/test_ext_autodoc.py::test_imported_partialfunction_should_not_shown_without_imported_members", "tests/test_util_inspect.py::test_isfunction", "tests/test_ext_autodoc.py::test_py_module", "tests/test_util_inspect.py::test_signature_from_str_invalid", "tests/test_ext_autodoc.py::test_autodoc_member_ord...
[ "tests/test_ext_autosummary.py::test_autosummary_generate", "tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature", "tests/test_ext_autodoc.py::test_autodoc_ignore_module_all", "tests/test_ext_autodoc_configs.py::test_autoclass_content_both", "tests/test_ext_autodoc_configs.py::test_autodoc_t...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[]
sphinx-doc/sphinx
sphinx-doc__sphinx-7167
https://github.com/sphinx-doc/sphinx/pull/7167
diff --git a/CHANGES b/CHANGES index 4cf7b4a0b61..4a2b0726adc 100644 --- a/CHANGES +++ b/CHANGES @@ -45,6 +45,7 @@ Features added * #6830: autodoc: consider a member private if docstring contains ``:meta private:`` in info-field-list * #6558: glossary: emit a warning for duplicated glossary entry +* #3106: domain:...
diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 25ef876444a..342c214adcd 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -1261,11 +1261,18 @@ def test_html_inventory(app): with open(app.outdir / 'objects.inv', 'rb') as f: invdata = InventoryFile.load(f, 'http...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 4cf7b4a0b61..4a2b0726adc 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -45,6 +45,7 @@ Features added\n * #6830: autodoc: consider a member private if docstring contains\n ``:meta pr...
3.0
bc14e8fd37e0e8ff8303f8741a9ce2033ac40a88
[ "tests/test_build_html.py::test_html5_output[markup.html-expect63]", "tests/test_build_html.py::test_html5_output[markup.html-expect43]", "tests/test_build_html.py::test_numfig_with_numbered_toctree[index.html-expect12]", "tests/test_build_html.py::test_html5_output[index.html-expect146]", "tests/test_build...
[ "tests/test_build_html.py::test_html_inventory" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 4cf7b4a0b61..4a2b0726adc 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -45,6 +45,7 @@ Features added\n * #<PRID>: autodoc: consider a member private if docstring contains\n ``:meta ...
diff --git a/CHANGES b/CHANGES index 4cf7b4a0b61..4a2b0726adc 100644 --- a/CHANGES +++ b/CHANGES @@ -45,6 +45,7 @@ Features added * #<PRID>: autodoc: consider a member private if docstring contains ``:meta private:`` in info-field-list * #<PRID>: glossary: emit a warning for duplicated glossary entry +* #<PRID>: d...
sphinx-doc/sphinx
sphinx-doc__sphinx-7561
https://github.com/sphinx-doc/sphinx/pull/7561
diff --git a/CHANGES b/CHANGES index 4c97b1dc80e..cfbd400dfbb 100644 --- a/CHANGES +++ b/CHANGES @@ -41,6 +41,7 @@ Features added ``:meta public:`` in info-field-list * #7487: autodoc: Allow to generate docs for singledispatch functions by py:autofunction +* #7143: autodoc: Support final classes and methods * #...
diff --git a/tests/roots/test-ext-autodoc/target/final.py b/tests/roots/test-ext-autodoc/target/final.py new file mode 100644 index 00000000000..ff78442e7c2 --- /dev/null +++ b/tests/roots/test-ext-autodoc/target/final.py @@ -0,0 +1,14 @@ +import typing +from typing import final + + +@typing.final +class Class: + ""...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 4c97b1dc80e..cfbd400dfbb 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -41,6 +41,7 @@ Features added\n ``:meta public:`` in info-field-list\n * #7487: autodoc: Allow to generate doc...
3.1
f388114d10753a201b961a2b440601667da615d6
[ "tests/test_autodoc.py::test_get_doc", "tests/test_domain_py.py::test_pydata", "tests/test_pycode_parser.py::test_comment_picker_basic", "tests/test_domain_py.py::test_pydata_signature_old", "tests/test_autodoc.py::test_autodoc_special_members", "tests/test_domain_py.py::test_domain_py_xrefs", "tests/te...
[ "tests/test_domain_py.py::test_pyclass_options", "tests/test_domain_py.py::test_pymethod_options" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "finals" }, { "type": "field", "name": "finals" }, { "type": "fi...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 4c97b1dc80e..cfbd400dfbb 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -41,6 +41,7 @@ Features added\n ``:meta public:`` in info-field-list\n * #<PRID>: autodoc: Allow to generate d...
diff --git a/CHANGES b/CHANGES index 4c97b1dc80e..cfbd400dfbb 100644 --- a/CHANGES +++ b/CHANGES @@ -41,6 +41,7 @@ Features added ``:meta public:`` in info-field-list * #<PRID>: autodoc: Allow to generate docs for singledispatch functions by py:autofunction +* #<PRID>: autodoc: Support final classes and methods ...
sphinx-doc/sphinx
sphinx-doc__sphinx-6969
https://github.com/sphinx-doc/sphinx/pull/6969
diff --git a/CHANGES b/CHANGES index 46fe00fa9dc..2b56608455f 100644 --- a/CHANGES +++ b/CHANGES @@ -42,6 +42,7 @@ Deprecated * ``sphinx.testing.path.Path.text()`` * ``sphinx.testing.path.Path.bytes()`` * ``sphinx.util.inspect.getargspec()`` +* ``sphinx.writers.latex.LaTeXWriter.format_docclass()`` Features added...
diff --git a/tests/roots/test-latex-theme/conf.py b/tests/roots/test-latex-theme/conf.py new file mode 100644 index 00000000000..196307ae6c8 --- /dev/null +++ b/tests/roots/test-latex-theme/conf.py @@ -0,0 +1,2 @@ +latex_theme = 'custom' +latex_theme_path = ['theme'] diff --git a/tests/roots/test-latex-theme/index.rst ...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 46fe00fa9dc..2b56608455f 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -42,6 +42,7 @@ Deprecated\n * ``sphinx.testing.path.Path.text()``\n * ``sphinx.testing.path.Path.bytes()``\n * `...
3.0
39a191294e615af6465e347b8e31ae2f76d51653
[ "tests/test_build_latex.py::test_latex_additional_settings_for_language_code", "tests/test_build_latex.py::test_latex_toplevel_sectioning_is_part", "tests/test_build_latex.py::test_image_in_section", "tests/test_build_latex.py::test_latex_glossary", "tests/test_build_latex.py::test_latex_toplevel_sectioning...
[ "tests/test_build_latex.py::test_latex_theme" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "ThemeError" }, { "type": "file", "name": "sphinx/builders/latex/theming.py" ...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 46fe00fa9dc..2b56608455f 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -42,6 +42,7 @@ Deprecated\n * ``sphinx.testing.path.Path.text()``\n * ``sphinx.testing.path.Path.bytes()``\n * `...
diff --git a/CHANGES b/CHANGES index 46fe00fa9dc..2b56608455f 100644 --- a/CHANGES +++ b/CHANGES @@ -42,6 +42,7 @@ Deprecated * ``sphinx.testing.path.Path.text()`` * ``sphinx.testing.path.Path.bytes()`` * ``sphinx.util.inspect.getargspec()`` +* ``sphinx.writers.latex.LaTeXWriter.format_docclass()`` Features added...
sphinx-doc/sphinx
sphinx-doc__sphinx-7716
https://github.com/sphinx-doc/sphinx/pull/7716
diff --git a/CHANGES b/CHANGES index 76341235314..8c09f876c4a 100644 --- a/CHANGES +++ b/CHANGES @@ -51,6 +51,7 @@ Features added builtin base classes * #2106: autodoc: Support multiple signatures on docstring * #4422: autodoc: Support GenericAlias in Python 3.7 or above +* #3610: autodoc: Support overloaded funct...
diff --git a/tests/roots/test-ext-autodoc/target/overload.py b/tests/roots/test-ext-autodoc/target/overload.py new file mode 100644 index 00000000000..da43d32ebb6 --- /dev/null +++ b/tests/roots/test-ext-autodoc/target/overload.py @@ -0,0 +1,88 @@ +from typing import Any, overload + + +@overload +def sum(x: int, y: int...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 76341235314..8c09f876c4a 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -51,6 +51,7 @@ Features added\n builtin base classes\n * #2106: autodoc: Support multiple signatures on docstr...
3.1
c063c9c0fe383a20da613448d1f606b9635773b9
[ "tests/test_util_inspect.py::test_isfunction", "tests/test_ext_autodoc.py::test_autodoc_ignore_module_all", "tests/test_pycode_parser.py::test_comment_picker_basic", "tests/test_ext_autodoc.py::test_py_module", "tests/test_util_inspect.py::test_signature_from_str_invalid", "tests/test_pycode_parser.py::te...
[ "tests/test_pycode_parser.py::test_typing_overload_from_import", "tests/test_pycode_parser.py::test_typing_overload_import_as", "tests/test_util_inspect.py::test_signature_from_ast", "tests/test_ext_autodoc.py::test_overload", "tests/test_pycode_parser.py::test_typing_overload_from_import_as", "tests/test...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "overloads" }, { "type": "function", "name": "signature_from_ast" }, {...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 76341235314..8c09f876c4a 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -51,6 +51,7 @@ Features added\n builtin base classes\n * #<PRID>: autodoc: Support multiple signatures on docs...
diff --git a/CHANGES b/CHANGES index 76341235314..8c09f876c4a 100644 --- a/CHANGES +++ b/CHANGES @@ -51,6 +51,7 @@ Features added builtin base classes * #<PRID>: autodoc: Support multiple signatures on docstring * #<PRID>: autodoc: Support GenericAlias in Python 3.7 or above +* #<PRID>: autodoc: Support overloaded...
sphinx-doc/sphinx
sphinx-doc__sphinx-7142
https://github.com/sphinx-doc/sphinx/pull/7142
diff --git a/doc/theming.rst b/doc/theming.rst index e2ef1fcf2ac..6a154affdfe 100644 --- a/doc/theming.rst +++ b/doc/theming.rst @@ -63,6 +63,11 @@ Python :mod:`ConfigParser` module) and has the following structure: highlighting. This can be overridden by the user in the :confval:`pygments_style` config value. ...
diff --git a/tests/roots/test-theming/test_theme/test-theme/theme.conf b/tests/roots/test-theming/test_theme/test-theme/theme.conf index b7518bc9cd3..2ad2c33e128 100644 --- a/tests/roots/test-theming/test_theme/test-theme/theme.conf +++ b/tests/roots/test-theming/test_theme/test-theme/theme.conf @@ -1,3 +1,4 @@ [theme...
[ { "path": "doc/theming.rst", "old_path": "a/doc/theming.rst", "new_path": "b/doc/theming.rst", "metadata": "diff --git a/doc/theming.rst b/doc/theming.rst\nindex e2ef1fcf2ac..6a154affdfe 100644\n--- a/doc/theming.rst\n+++ b/doc/theming.rst\n@@ -63,6 +63,11 @@ Python :mod:`ConfigParser` module) and h...
3.0
2b6f06b6228e35564ea789188ae4d47fad3f776e
[ "tests/test_build_html.py::test_html5_output[markup.html-expect63]", "tests/test_build_html.py::test_html5_output[markup.html-expect43]", "tests/test_build_html.py::test_numfig_with_numbered_toctree[index.html-expect12]", "tests/test_build_html.py::test_html5_output[index.html-expect146]", "tests/test_build...
[ "tests/test_build_html.py::test_html_dark_pygments_style_default", "tests/test_theming.py::test_dark_style" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "dark_highlighter" } ] }
[ { "path": "doc/theming.rst", "old_path": "a/doc/theming.rst", "new_path": "b/doc/theming.rst", "metadata": "diff --git a/doc/theming.rst b/doc/theming.rst\nindex e2ef1fcf2ac..6a154affdfe 100644\n--- a/doc/theming.rst\n+++ b/doc/theming.rst\n@@ -63,6 +63,11 @@ Python :mod:`ConfigParser` module) and h...
diff --git a/doc/theming.rst b/doc/theming.rst index e2ef1fcf2ac..6a154affdfe 100644 --- a/doc/theming.rst +++ b/doc/theming.rst @@ -63,6 +63,11 @@ Python :mod:`ConfigParser` module) and has the following structure: highlighting. This can be overridden by the user in the :confval:`pygments_style` config value. ...
sphinx-doc/sphinx
sphinx-doc__sphinx-7492
https://github.com/sphinx-doc/sphinx/pull/7492
diff --git a/CHANGES b/CHANGES index f44c9c4877e..8aa598df26a 100644 --- a/CHANGES +++ b/CHANGES @@ -24,6 +24,8 @@ Features added * C, added scope control directives, :rst:dir:`c:namespace`, :rst:dir:`c:namespace-push`, and :rst:dir:`c:namespace-pop`. * #7466: autosummary: headings in generated documents are not t...
diff --git a/tests/roots/test-ext-autosummary/index.rst b/tests/roots/test-ext-autosummary/index.rst index c52e96ed9b2..2dc90b53802 100644 --- a/tests/roots/test-ext-autosummary/index.rst +++ b/tests/roots/test-ext-autosummary/index.rst @@ -5,6 +5,7 @@ .. autosummary:: :toctree: generated + :caption: An autosu...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex f44c9c4877e..8aa598df26a 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -24,6 +24,8 @@ Features added\n * C, added scope control directives, :rst:dir:`c:namespace`,\n :rst:dir:`c:nam...
3.1
5ed890122bfd6c5a0fa96774c074468922eeaea5
[ "tests/test_ext_autosummary.py::test_import_by_name", "tests/test_ext_autosummary.py::test_autosummary_generate_overwrite1", "tests/test_ext_autosummary.py::test_autosummary_skip_member", "tests/test_ext_autosummary.py::test_invalid_autosummary_generate", "tests/test_ext_autosummary.py::test_autosummary_lat...
[ "tests/test_ext_autosummary.py::test_empty_autosummary_generate", "tests/test_ext_autosummary.py::test_autosummary_generate" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex f44c9c4877e..8aa598df26a 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -24,6 +24,8 @@ Features added\n * C, added scope control directives, :rst:dir:`c:namespace`,\n :rst:dir:`c:nam...
diff --git a/CHANGES b/CHANGES index f44c9c4877e..8aa598df26a 100644 --- a/CHANGES +++ b/CHANGES @@ -24,6 +24,8 @@ Features added * C, added scope control directives, :rst:dir:`c:namespace`, :rst:dir:`c:namespace-push`, and :rst:dir:`c:namespace-pop`. * #<PRID>: autosummary: headings in generated documents are not...
sphinx-doc/sphinx
sphinx-doc__sphinx-7788
https://github.com/sphinx-doc/sphinx/pull/7788
diff --git a/CHANGES b/CHANGES index 38a06251650..274ee9f5f31 100644 --- a/CHANGES +++ b/CHANGES @@ -52,6 +52,7 @@ Features added * #2106: autodoc: Support multiple signatures on docstring * #4422: autodoc: Support GenericAlias in Python 3.7 or above * #3610: autodoc: Support overloaded functions +* #7722: autodoc: ...
diff --git a/tests/roots/test-ext-autodoc/target/typevar.py b/tests/roots/test-ext-autodoc/target/typevar.py new file mode 100644 index 00000000000..9c6b0eab0bb --- /dev/null +++ b/tests/roots/test-ext-autodoc/target/typevar.py @@ -0,0 +1,15 @@ +from typing import TypeVar + +#: T1 +T1 = TypeVar("T1") + +T2 = TypeVar("T...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 38a06251650..274ee9f5f31 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -52,6 +52,7 @@ Features added\n * #2106: autodoc: Support multiple signatures on docstring\n * #4422: autodoc: S...
3.1
63dd120dc542264de286950f3df09f408e3cba75
[ "tests/test_ext_autodoc.py::test_parse_name", "tests/test_ext_autodoc.py::test_autodoc_GenericAlias", "tests/test_ext_autodoc.py::test_singledispatch", "tests/test_ext_autodoc.py::test_autodoc_ignore_module_all", "tests/test_ext_autodoc.py::test_autodoc_descriptor", "tests/test_ext_autodoc.py::test_autodo...
[ "tests/test_ext_autodoc.py::test_autodoc_TypeVar" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 38a06251650..274ee9f5f31 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -52,6 +52,7 @@ Features added\n * #<PRID>: autodoc: Support multiple signatures on docstring\n * #<PRID>: autodo...
diff --git a/CHANGES b/CHANGES index 38a06251650..274ee9f5f31 100644 --- a/CHANGES +++ b/CHANGES @@ -52,6 +52,7 @@ Features added * #<PRID>: autodoc: Support multiple signatures on docstring * #<PRID>: autodoc: Support GenericAlias in Python 3.7 or above * #<PRID>: autodoc: Support overloaded functions +* #<PRID>: a...
sphinx-doc/sphinx
sphinx-doc__sphinx-8035
https://github.com/sphinx-doc/sphinx/pull/8035
diff --git a/CHANGES b/CHANGES index eadace6dcd4..79efd2c8df0 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ Incompatible changes Deprecated ---------- +* ``sphinx.ext.autodoc.merge_special_members_option()`` * ``sphinx.writers.texinfo.TexinfoWriter.desc`` * C, parsing of pre-v3 style type directives and ro...
diff --git a/tests/test_ext_autodoc_private_members.py b/tests/test_ext_autodoc_private_members.py index f4cadd3a543..9d7ff487a03 100644 --- a/tests/test_ext_autodoc_private_members.py +++ b/tests/test_ext_autodoc_private_members.py @@ -60,3 +60,24 @@ def test_private_field_and_private_members(app): ' :meta ...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex eadace6dcd4..79efd2c8df0 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -10,6 +10,7 @@ Incompatible changes\n Deprecated\n ----------\n \n+* ``sphinx.ext.autodoc.merge_special_members_...
3.2
5e6da19f0e44a0ae83944fb6ce18f18f781e1a6e
[ "tests/test_ext_autodoc_private_members.py::test_private_field_and_private_members", "tests/test_ext_autodoc_private_members.py::test_private_field" ]
[ "tests/test_ext_autodoc_private_members.py::test_private_members" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex eadace6dcd4..79efd2c8df0 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -10,6 +10,7 @@ Incompatible changes\n Deprecated\n ----------\n \n+* ``sphinx.ext.autodoc.merge_special_members_...
diff --git a/CHANGES b/CHANGES index eadace6dcd4..79efd2c8df0 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,7 @@ Incompatible changes Deprecated ---------- +* ``sphinx.ext.autodoc.merge_special_members_option()`` * ``sphinx.writers.texinfo.TexinfoWriter.desc`` * C, parsing of pre-v3 style type directives and ro...
sphinx-doc/sphinx
sphinx-doc__sphinx-7546
https://github.com/sphinx-doc/sphinx/pull/7546
diff --git a/CHANGES b/CHANGES index bebfc55007f..cd6c247aa47 100644 --- a/CHANGES +++ b/CHANGES @@ -41,6 +41,8 @@ Features added caption to the toctree * #248, #6040: autosummary: Add ``:recursive:`` option to autosummary directive to generate stub files recursively +* #4030: autosummary: Add :confval:`autosumm...
diff --git a/tests/roots/test-templating/_templates/autosummary/class.rst b/tests/roots/test-templating/_templates/autosummary/class.rst index 7f153617361..6f505649c5d 100644 --- a/tests/roots/test-templating/_templates/autosummary/class.rst +++ b/tests/roots/test-templating/_templates/autosummary/class.rst @@ -3,6 +3,...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex bebfc55007f..cd6c247aa47 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -41,6 +41,8 @@ Features added\n caption to the toctree\n * #248, #6040: autosummary: Add ``:recursive:`` optio...
3.1
cec31c75d8f38d9bfbde39ead60da106bd39c641
[ "tests/test_ext_autosummary.py::test_empty_autosummary_generate", "tests/test_ext_autosummary.py::test_import_by_name", "tests/test_ext_autosummary.py::test_autosummary_generate_overwrite1", "tests/test_ext_autosummary.py::test_autosummary_recursive", "tests/test_ext_autosummary.py::test_autosummary_skip_me...
[ "tests/test_templating.py::test_autosummary_context" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex bebfc55007f..cd6c247aa47 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -41,6 +41,8 @@ Features added\n caption to the toctree\n * #<PRID>, #6040: autosummary: Add ``:recursive:`` op...
diff --git a/CHANGES b/CHANGES index bebfc55007f..cd6c247aa47 100644 --- a/CHANGES +++ b/CHANGES @@ -41,6 +41,8 @@ Features added caption to the toctree * #<PRID>, #6040: autosummary: Add ``:recursive:`` option to autosummary directive to generate stub files recursively +* #<PRID>: autosummary: Add :confval:`aut...
sphinx-doc/sphinx
sphinx-doc__sphinx-8026
https://github.com/sphinx-doc/sphinx/pull/8026
diff --git a/CHANGES b/CHANGES index 2b54e9170be..d686d297d81 100644 --- a/CHANGES +++ b/CHANGES @@ -33,6 +33,7 @@ Features added * #7902: html theme: Add a new option :confval:`globaltoc_maxdepth` to control the behavior of globaltoc in sidebar * #7840: i18n: Optimize the dependencies check on bootstrap +* #7768:...
diff --git a/tests/test_util_i18n.py b/tests/test_util_i18n.py index e6e828efafd..7e3a7e2c99b 100644 --- a/tests/test_util_i18n.py +++ b/tests/test_util_i18n.py @@ -90,6 +90,8 @@ def test_format_date(): @pytest.mark.xfail(os.name != 'posix', reason="Path separators don't match on windows") def test_get_filename_for...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 2b54e9170be..d686d297d81 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -33,6 +33,7 @@ Features added\n * #7902: html theme: Add a new option :confval:`globaltoc_maxdepth` to control\n...
3.2
4f56fad7b7f5c71ffa734fd6a7a53b399a728f41
[ "tests/test_util_i18n.py::test_catalog_info_for_sub_domain_file_and_path", "tests/test_util_i18n.py::test_catalog_outdated", "tests/test_util_i18n.py::test_CatalogRepository", "tests/test_util_i18n.py::test_catalog_info_for_file_and_path", "tests/test_util_i18n.py::test_catalog_write_mo" ]
[ "tests/test_util_i18n.py::test_get_filename_for_language" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 2b54e9170be..d686d297d81 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -33,6 +33,7 @@ Features added\n * #<PRID>: html theme: Add a new option :confval:`globaltoc_maxdepth` to control...
diff --git a/CHANGES b/CHANGES index 2b54e9170be..d686d297d81 100644 --- a/CHANGES +++ b/CHANGES @@ -33,6 +33,7 @@ Features added * #<PRID>: html theme: Add a new option :confval:`globaltoc_maxdepth` to control the behavior of globaltoc in sidebar * #<PRID>: i18n: Optimize the dependencies check on bootstrap +* #<...
sphinx-doc/sphinx
sphinx-doc__sphinx-8025
https://github.com/sphinx-doc/sphinx/pull/8025
diff --git a/CHANGES b/CHANGES index d8a3cb915a7..c6d99836362 100644 --- a/CHANGES +++ b/CHANGES @@ -42,6 +42,8 @@ Features added * #7768: i18n: :confval:`figure_language_filename` supports ``docpath`` token * #5208: linkcheck: Support checks for local links * #5090: setuptools: Link verbosity to distutils' -v and -...
diff --git a/doc/usage/extensions/doctest.rst b/doc/usage/extensions/doctest.rst index 33d6cf01661..0fe9b535dc5 100644 --- a/doc/usage/extensions/doctest.rst +++ b/doc/usage/extensions/doctest.rst @@ -67,7 +67,7 @@ a comma-separated list of group names. default set of flags is specified by the :confval:`doctest_def...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex d8a3cb915a7..c6d99836362 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -42,6 +42,8 @@ Features added\n * #7768: i18n: :confval:`figure_language_filename` supports ``docpath`` token\n ...
3.2
fcf63a20cd065ed5b6f57817cc3f2c6545122ef1
[ "tests/test_transforms_post_transforms_code.py::test_trim_doctest_flags_disabled" ]
[ "tests/test_transforms_post_transforms_code.py::test_trim_doctest_flags_html", "tests/test_transforms_post_transforms_code.py::test_trim_doctest_flags_latex" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex d8a3cb915a7..c6d99836362 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -42,6 +42,8 @@ Features added\n * #<PRID>: i18n: :confval:`figure_language_filename` supports ``docpath`` token\...
diff --git a/CHANGES b/CHANGES index d8a3cb915a7..c6d99836362 100644 --- a/CHANGES +++ b/CHANGES @@ -42,6 +42,8 @@ Features added * #<PRID>: i18n: :confval:`figure_language_filename` supports ``docpath`` token * #<PRID>: linkcheck: Support checks for local links * #<PRID>: setuptools: Link verbosity to distutils' -v...
sphinx-doc/sphinx
sphinx-doc__sphinx-7762
https://github.com/sphinx-doc/sphinx/pull/7762
diff --git a/CHANGES b/CHANGES index 76341235314..51839ff6972 100644 --- a/CHANGES +++ b/CHANGES @@ -82,6 +82,8 @@ Features added * #7596: py domain: Change a type annotation for variables to a hyperlink * #7582: napoleon: a type for attribute are represented like type annotation * #7734: napoleon: overescaped trail...
diff --git a/tests/test_build_linkcheck.py b/tests/test_build_linkcheck.py index 54bde6b6858..d1fec550f7b 100644 --- a/tests/test_build_linkcheck.py +++ b/tests/test_build_linkcheck.py @@ -124,3 +124,36 @@ def test_auth(app, status, warning): assert c_kwargs['auth'] == 'authinfo2' else: ...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 76341235314..51839ff6972 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -82,6 +82,8 @@ Features added\n * #7596: py domain: Change a type annotation for variables to a hyperlink\n * #7...
3.1
c063c9c0fe383a20da613448d1f606b9635773b9
[ "tests/test_build_linkcheck.py::test_auth", "tests/test_build_linkcheck.py::test_anchors_ignored", "tests/test_build_linkcheck.py::test_defaults_json" ]
[ "tests/test_build_linkcheck.py::test_linkcheck_request_headers" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 76341235314..51839ff6972 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -82,6 +82,8 @@ Features added\n * #<PRID>: py domain: Change a type annotation for variables to a hyperlink\n * ...
diff --git a/CHANGES b/CHANGES index 76341235314..51839ff6972 100644 --- a/CHANGES +++ b/CHANGES @@ -82,6 +82,8 @@ Features added * #<PRID>: py domain: Change a type annotation for variables to a hyperlink * #<PRID>: napoleon: a type for attribute are represented like type annotation * #<PRID>: napoleon: overescaped...
sphinx-doc/sphinx
sphinx-doc__sphinx-7463
https://github.com/sphinx-doc/sphinx/pull/7463
diff --git a/CHANGES b/CHANGES index 4c983abafa4..9bb47a4e7a8 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,9 @@ Dependencies Incompatible changes -------------------- +* #4826: py domain: The structure of python objects is changed. A boolean value + is added to indicate that the python object is canonical one ...
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py index 5a1d73cfe66..6f91323a6e3 100644 --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -192,20 +192,22 @@ def find_obj(modname, prefix, obj_name, obj_type, searchmode=0): assert (find_obj(None, None, 'NONEXISTANT', 'class') == []) ...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 4c983abafa4..9bb47a4e7a8 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -10,6 +10,9 @@ Dependencies\n Incompatible changes\n --------------------\n \n+* #4826: py domain: The structure...
4.0
f393d216255140d7dbd684de2f08dbeee4faaf02
[ "tests/test_domain_py.py::test_resolve_xref_for_properties", "tests/test_domain_py.py::test_pyfunction_signature_full", "tests/test_domain_py.py::test_parse_annotation", "tests/test_domain_py.py::test_pydata_signature_old", "tests/test_environment.py::test_env_relfn2path", "tests/test_domain_py.py::test_d...
[ "tests/test_domain_py.py::test_pyfunction", "tests/test_domain_py.py::test_pydecorator_signature", "tests/test_domain_py.py::test_pydata", "tests/test_domain_py.py::test_pydecoratormethod_signature", "tests/test_domain_py.py::test_pyclass_options", "tests/test_domain_py.py::test_pystaticmethod", "tests/...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 4c983abafa4..9bb47a4e7a8 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -10,6 +10,9 @@ Dependencies\n Incompatible changes\n --------------------\n \n+* #<PRID>: py domain: The structu...
diff --git a/CHANGES b/CHANGES index 4c983abafa4..9bb47a4e7a8 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,9 @@ Dependencies Incompatible changes -------------------- +* #<PRID>: py domain: The structure of python objects is changed. A boolean value + is added to indicate that the python object is canonical on...
sphinx-doc/sphinx
sphinx-doc__sphinx-7979
https://github.com/sphinx-doc/sphinx/pull/7979
diff --git a/CHANGES b/CHANGES index 38c18256d95..1f2d2f56901 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,7 @@ Incompatible changes * #4826: py domain: The structure of python objects is changed. A boolean value is added to indicate that the python object is canonical one +* #7784: i18n: The msgid for alt te...
diff --git a/tests/roots/test-intl/xx/LC_MESSAGES/figure.po b/tests/roots/test-intl/xx/LC_MESSAGES/figure.po index 449b15e3f3e..64bbdf763db 100644 --- a/tests/roots/test-intl/xx/LC_MESSAGES/figure.po +++ b/tests/roots/test-intl/xx/LC_MESSAGES/figure.po @@ -37,19 +37,17 @@ msgstr "BLOCK" msgid "image url and alt" msgs...
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 38c18256d95..1f2d2f56901 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -12,6 +12,7 @@ Incompatible changes\n \n * #4826: py domain: The structure of python objects is changed. A bool...
4.0
82a149f4f33ad3f36d96590b58006e64c6bada59
[ "tests/test_intl.py::test_text_inconsistency_warnings", "tests/test_intl.py::test_text_glossary_term", "tests/test_intl.py::test_xml_warnings", "tests/test_intl.py::test_image_glob_intl_using_figure_language_filename", "tests/test_intl.py::test_text_definition_terms", "tests/test_intl.py::test_xml_role_xr...
[ "tests/test_intl.py::test_text_figure_captions" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "CHANGES", "old_path": "a/CHANGES", "new_path": "b/CHANGES", "metadata": "diff --git a/CHANGES b/CHANGES\nindex 38c18256d95..1f2d2f56901 100644\n--- a/CHANGES\n+++ b/CHANGES\n@@ -12,6 +12,7 @@ Incompatible changes\n \n * #<PRID>: py domain: The structure of python objects is changed. A bo...
diff --git a/CHANGES b/CHANGES index 38c18256d95..1f2d2f56901 100644 --- a/CHANGES +++ b/CHANGES @@ -12,6 +12,7 @@ Incompatible changes * #<PRID>: py domain: The structure of python objects is changed. A boolean value is added to indicate that the python object is canonical one +* #<PRID>: i18n: The msgid for al...
pydata/xarray
pydata__xarray-7225
https://github.com/pydata/xarray/pull/7225
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 0cc18cc7279..9e1dc20b0db 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v2023.07.1 (unreleased) New Features ~~~~~~~~~~~~ + +- Visually group together coordinates with the same indexes in the index section of the text repr (:pull:`72...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py index bf5f7d0bdc5..7670b77322c 100644 --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -218,31 +218,70 @@ def test_attribute_repr(self) -> None: assert "\n" not in newlines assert "\t" not in t...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 0cc18cc7279..9e1dc20b0db 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,9 @@ v2023.07.1 (unreleased)\n \...
2308
2bf15f8d29251c94471da89a177814ed09cf8d20
[ "xarray/tests/test_formatting.py::TestFormatting::test_diff_attrs_repr_with_array", "xarray/tests/test_formatting.py::TestFormatting::test_array_repr_variable", "xarray/tests/test_formatting.py::TestFormatting::test_format_timestamp_out_of_bounds", "xarray/tests/test_formatting.py::test_large_array_repr_lengt...
[ "xarray/tests/test_formatting.py::TestFormatting::test_index_repr_grouping[names3]", "xarray/tests/test_formatting.py::TestFormatting::test_index_repr_grouping[names1]", "xarray/tests/test_formatting.py::TestFormatting::test_index_repr_grouping[names2]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "line" } ] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 0cc18cc7279..9e1dc20b0db 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,9 @@ v2023.07.1 (unreleased)\n \...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 0cc18cc7279..9e1dc20b0db 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v2023.07.1 (unreleased) New Features ~~~~~~~~~~~~ + +- Visually group together coordinates with the same indexes in the index section of the text repr (:pull:`<P...
pydata/xarray
pydata__xarray-7368
https://github.com/pydata/xarray/pull/7368
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 1a2b1d11747..527bdcdede2 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -9,17 +9,40 @@ .. autosummary:: :toctree: generated/ + Coordinates.from_pandas_multiindex + Coordinates.get + Coordinates.items + Coordinates.keys + Coordinate...
diff --git a/xarray/testing.py b/xarray/testing.py index 47e7dca81ae..6a8bb04f170 100644 --- a/xarray/testing.py +++ b/xarray/testing.py @@ -8,6 +8,7 @@ import pandas as pd from xarray.core import duck_array_ops, formatting, utils +from xarray.core.coordinates import Coordinates from xarray.core.dataarray import D...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 1a2b1d11747..527bdcdede2 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -9,17 +9,40 @@\n .. autosummary::\n...
2308
6b1ff6d13bf360df786500dfa7d62556d23e6df9
[]
[ "xarray/tests/test_dataarray.py::TestReduce1D::test_argmin[datetime]", "xarray/tests/test_variable.py::TestIndexVariable::test_getitem_with_mask", "xarray/tests/test_variable.py::TestVariable::test_object_conversion", "xarray/tests/test_dataarray.py::TestDataArray::test__title_for_slice_truncate", "xarray/t...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "TypeError" }, { "type": "field", "name": "deep" }, { "type": "f...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 1a2b1d11747..527bdcdede2 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -9,17 +9,40 @@\n .. autosummary::\n...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 1a2b1d11747..527bdcdede2 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -9,17 +9,40 @@ .. autosummary:: :toctree: generated/ + Coordinates.from_pandas_multiindex + Coordinates.get + Coordinates.items + Coordinates.keys + Coordinate...
pydata/xarray
pydata__xarray-7891
https://github.com/pydata/xarray/pull/7891
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 5c0d3c3c843..76ddae654a0 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,10 @@ New Features - Added support for multidimensional initial guess and bounds in :py:meth:`DataArray.curvefit` (:issue:`7768`, :pull:`7821`). By `András Gunyhó <...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index e3138a32716..de013c684cb 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -4571,6 +4571,48 @@ def sine(t, a, f, p): bounds={"a": (0, DataArray([1], coords={"foo": [1]}))}, ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 5c0d3c3c843..76ddae654a0 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,10 @@ New Features\n \n - Added ...
2306
276b6bf22fdd5d6abeb6236b8e3c63e63049d44a
[ "xarray/tests/test_dataarray.py::TestDataArray::test_pad_stat_length[stat_length2-minimum]", "xarray/tests/test_dataarray.py::TestReduce1D::test_min[float]", "xarray/tests/test_dataarray.py::TestDataArray::test_quantile[None-None-q2-False]", "xarray/tests/test_dataarray.py::TestDataArray::test_from_multiindex...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_curvefit_ignore_errors[False]", "xarray/tests/test_dataarray.py::TestDataArray::test_curvefit_ignore_errors[True]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 5c0d3c3c843..76ddae654a0 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,10 @@ New Features\n \n - Added ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 5c0d3c3c843..76ddae654a0 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,10 @@ New Features - Added support for multidimensional initial guess and bounds in :py:meth:`DataArray.curvefit` (:issue:`<PRID>`, :pull:`<PRID>`). By `<NAME>`_. +...
pydata/xarray
pydata__xarray-7821
https://github.com/pydata/xarray/pull/7821
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 1c8564ff9ae..9b23b9fea58 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -23,6 +23,8 @@ v2023.05.1 (unreleased) New Features ~~~~~~~~~~~~ +- Added support for multidimensional initial guess and bounds in :py:meth:`DataArray.curvefit` (:issue:`7768`,...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 263653e992e..aac967807d1 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -4399,7 +4399,7 @@ def exp_decay(t, n0, tau=1): da = da.chunk({"x": 1}) fit = da.curvefit( - ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 1c8564ff9ae..9b23b9fea58 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -23,6 +23,8 @@ v2023.05.1 (unreleased)\n N...
2306
f45eb733b97e0a20f2981b6b20e8e8dcc815e529
[ "xarray/tests/test_dataarray.py::TestDataArray::test_pad_stat_length[stat_length2-minimum]", "xarray/tests/test_dataarray.py::TestReduce1D::test_min[float]", "xarray/tests/test_dataarray.py::TestDataArray::test_quantile[None-None-q2-False]", "xarray/tests/test_dataarray.py::TestDataArray::test_from_multiindex...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_curvefit_multidimensional_guess[False]", "xarray/tests/test_dataarray.py::TestDataArray::test_curvefit_helpers", "xarray/tests/test_dataarray.py::TestDataArray::test_curvefit_multidimensional_guess[True]", "xarray/tests/test_dataarray.py::TestDataArray::tes...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 1c8564ff9ae..9b23b9fea58 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -23,6 +23,8 @@ v2023.05.1 (unreleased)\n N...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 1c8564ff9ae..9b23b9fea58 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -23,6 +23,8 @@ v2023.05.1 (unreleased) New Features ~~~~~~~~~~~~ +- Added support for multidimensional initial guess and bounds in :py:meth:`DataArray.curvefit` (:issue:`<PRID>...
pydata/xarray
pydata__xarray-7989
https://github.com/pydata/xarray/pull/7989
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 3740a5a44f1..a23883338b0 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,10 @@ v2023.07.1 (unreleased) New Features ~~~~~~~~~~~~ +- Allow creating Xarray objects where a multidimensional variable shares its name + with a dimension. Exampl...
diff --git a/xarray/testing.py b/xarray/testing.py index b6a88135ee1..80c73430312 100644 --- a/xarray/testing.py +++ b/xarray/testing.py @@ -364,14 +364,13 @@ def _assert_dataset_invariants(ds: Dataset, check_default_indexes: bool): assert all( ds._dims[k] == v.sizes[k] for v in ds._variables.values() for...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 3740a5a44f1..a23883338b0 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,10 @@ v2023.07.1 (unreleased)\n ...
2308
a47ff4ed7ff6d6a5a16d0e604bdb120557c42e13
[ "xarray/tests/test_variable.py::TestIndexVariable::test_getitem_with_mask", "xarray/tests/test_variable.py::TestVariable::test_object_conversion", "xarray/tests/test_dataset.py::TestDataset::test_reset_index_drop_dims", "xarray/tests/test_dataset.py::TestDataset::test_setitem_using_list_errors[var_list2-data2...
[ "xarray/tests/test_dataset.py::TestDataset::test_constructor", "xarray/tests/test_variable.py::TestVariable::test_as_variable" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 3740a5a44f1..a23883338b0 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,10 @@ v2023.07.1 (unreleased)\n ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 3740a5a44f1..a23883338b0 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,10 @@ v2023.07.1 (unreleased) New Features ~~~~~~~~~~~~ +- Allow creating Xarray objects where a multidimensional variable shares its name + with a dimension. Exampl...
pydata/xarray
pydata__xarray-7635
https://github.com/pydata/xarray/pull/7635
diff --git a/doc/api.rst b/doc/api.rst index d180aa66d25..34d6558ed55 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -632,6 +632,7 @@ DataArray methods DataArray.from_iris DataArray.from_series DataArray.to_cdms2 + DataArray.to_dask_dataframe DataArray.to_dataframe DataArray.to_dataset DataArra...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 6f6286d4325..263653e992e 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -3245,6 +3245,39 @@ def test_to_dataframe_0length(self) -> None: assert len(actual) == 0 assert_array_equal(ac...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex d180aa66d25..34d6558ed55 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -632,6 +632,7 @@ DataArray methods\n DataArray.from_iris\n DataArray.from_seri...
2305
087ebbb78668bdf5d2d41c3b2553e3f29ce75be1
[ "xarray/tests/test_dataarray.py::TestDataArray::test_pad_stat_length[stat_length2-minimum]", "xarray/tests/test_dataarray.py::TestReduce1D::test_min[float]", "xarray/tests/test_dataarray.py::TestDataArray::test_quantile[None-None-q2-False]", "xarray/tests/test_dataarray.py::TestDataArray::test_from_multiindex...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_to_dask_dataframe" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex d180aa66d25..34d6558ed55 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -632,6 +632,7 @@ DataArray methods\n DataArray.from_iris\n DataArray.from_seri...
diff --git a/doc/api.rst b/doc/api.rst index d180aa66d25..34d6558ed55 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -632,6 +632,7 @@ DataArray methods DataArray.from_iris DataArray.from_series DataArray.to_cdms2 + DataArray.to_dask_dataframe DataArray.to_dataframe DataArray.to_dataset DataArra...
pydata/xarray
pydata__xarray-7739
https://github.com/pydata/xarray/pull/7739
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index bfc040eb271..0a262585a41 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -102,6 +102,10 @@ New Features - Added ability to save ``DataArray`` objects directly to Zarr using :py:meth:`~xarray.DataArray.to_zarr`. (:issue:`7692`, :pull:`7693`) . By ...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index dcbfd42c9f1..a27fb4defb9 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -6,7 +6,7 @@ from collections.abc import Hashable from copy import deepcopy from textwrap import dedent -from typing import A...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex bfc040eb271..0a262585a41 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -102,6 +102,10 @@ New Features\n - Added a...
2305
a54d5b3fe2dac8a77a4952a33d443e09e77587bf
[ "xarray/tests/test_dataarray.py::TestReduce2D::test_argmin_dim[datetime]", "xarray/tests/test_dataarray.py::TestDataArray::test_align_copy", "xarray/tests/test_dataarray.py::TestDataArray::test_to_dataframe_multiindex", "xarray/tests/test_dataset.py::TestDataset::test_update", "xarray/tests/test_dataset.py:...
[ "xarray/tests/test_dataset.py::TestDataset::test_to_and_from_dict[array-True]", "xarray/tests/test_dataarray.py::TestDataArray::test_to_and_from_dict[True-array-False]", "xarray/tests/test_dataarray.py::TestDataArray::test_to_and_from_dict[False-array-True]", "xarray/tests/test_dataarray.py::TestDataArray::te...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex bfc040eb271..0a262585a41 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -102,6 +102,10 @@ New Features\n - Added a...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index bfc040eb271..0a262585a41 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -102,6 +102,10 @@ New Features - Added ability to save ``DataArray`` objects directly to Zarr using :py:meth:`~xarray.DataArray.to_zarr`. (:issue:`<PRID>`, :pull:`<PRID>`) . ...
pydata/xarray
pydata__xarray-7147
https://github.com/pydata/xarray/pull/7147
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 8d7d0ec672c..3b923862473 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ New Features - Add scatter plot for datarrays. Scatter plots now also supports 3d plots with the z argument. (:pull:`6778`) By `Jimmy Westling <https://github...
diff --git a/xarray/tests/test_conventions.py b/xarray/tests/test_conventions.py index 3ee6699fced..cc18272be72 100644 --- a/xarray/tests/test_conventions.py +++ b/xarray/tests/test_conventions.py @@ -475,3 +475,9 @@ def test_scalar_units() -> None: actual = conventions.decode_cf_variable("t", var) assert_i...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 8d7d0ec672c..3b923862473 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,9 @@ New Features\n - Add scatte...
2210
9f390f50718ee94237084cbc1badb66f9a8083d6
[ "xarray/tests/test_conventions.py::TestCFEncodedDataStore::test_ondisk_after_print", "xarray/tests/test_conventions.py::TestCFEncodedDataStore::test_roundtrip_string_data", "xarray/tests/test_conventions.py::TestDecodeCF::test_decode_cf_datetime_transition_to_invalid", "xarray/tests/test_conventions.py::TestC...
[ "xarray/tests/test_conventions.py::test_decode_cf_error_includes_variable_name" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 8d7d0ec672c..3b923862473 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,9 @@ New Features\n - Add scatte...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 8d7d0ec672c..3b923862473 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ New Features - Add scatter plot for datarrays. Scatter plots now also supports 3d plots with the z argument. (:pull:`<PRID>`) By `<NAME>`_. +- Include the var...
pydata/xarray
pydata__xarray-7689
https://github.com/pydata/xarray/pull/7689
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 04013d545c3..73e1e54f9bc 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -234,6 +234,7 @@ Variable.dims Variable.dtype Variable.encoding + Variable.reset_encoding Variable.imag Variable.nbytes Variable.ndim diff --git a/doc...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 378d471ba6b..4ffa95e16e6 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -278,6 +278,25 @@ def test_encoding(self) -> None: self.dv.encoding = expected2 assert expected2 is not self.d...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 04013d545c3..73e1e54f9bc 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -234,6 +234,7 @@\n Variable.dims...
2304
e79eaf5acdcda62f27ce81f08e7e71839887d3d1
[ "xarray/tests/test_dataarray.py::TestReduce1D::test_argmin[datetime]", "xarray/tests/test_variable.py::TestIndexVariable::test_getitem_with_mask", "xarray/tests/test_variable.py::TestVariable::test_object_conversion", "xarray/tests/test_dataarray.py::TestDataArray::test__title_for_slice_truncate", "xarray/t...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_reset_encoding", "xarray/tests/test_dataset.py::TestDataset::test_reset_encoding", "xarray/tests/test_variable.py::TestVariable::test_reset_encoding", "xarray/tests/test_variable.py::TestVariableWithDask::test_reset_encoding", "xarray/tests/test_variable....
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 04013d545c3..73e1e54f9bc 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -234,6 +234,7 @@\n Variable.dims...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 04013d545c3..73e1e54f9bc 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -234,6 +234,7 @@ Variable.dims Variable.dtype Variable.encoding + Variable.reset_encoding Variable.imag Variable.nbytes Variable.ndim diff --git a/do...
pydata/xarray
pydata__xarray-7284
https://github.com/pydata/xarray/pull/7284
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b8a2f47bcf8..48113862c67 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,7 +21,9 @@ v2022.11.1 (unreleased) New Features ~~~~~~~~~~~~ - +- Enable using `offset` and `origin` arguments in :py:meth:`DataArray.resample` + and :py:meth:`Dataset.res...
diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index 075393e84e7..d28f4594559 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -1385,3 +1385,9 @@ def test_date_range_like_errors(): match="'source' must be a 1D array of datetim...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b8a2f47bcf8..48113862c67 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,7 +21,9 @@ v2022.11.1 (unreleased)\n \...
2212
78b27ecce58c5fe74a75a11c69fd48b5a7a8da61
[ "xarray/tests/test_cftime_offsets.py::test_rollforward[360_day-<MonthBegin: n=2>-(1, 3, 2)-(1, 4)]", "xarray/tests/test_cftime_offsets.py::test_add_year_end_onOffset[standard-(1, 1)-()-<YearEnd: n=1, month=2>-(1, 2)-()]", "xarray/tests/test_cftime_offsets.py::test_add_year_end[all_leap-(1, 1, 1)-<YearEnd: n=1, ...
[ "xarray/tests/test_cftimeindex_resample.py::test_resample[31-None-left-None-7A-MAY->85M]", "xarray/tests/test_cftimeindex_resample.py::test_resample[None-5S-left-left-7A-MAY->3A-MAY]", "xarray/tests/test_cftimeindex_resample.py::test_resample[31-None-right-right-6H->12H]", "xarray/tests/test_cftimeindex_resam...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "Timestamp" }, { "type": "field", "name": "cftime" }, { "type": ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b8a2f47bcf8..48113862c67 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,7 +21,9 @@ v2022.11.1 (unreleased)\n \...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b8a2f47bcf8..48113862c67 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,7 +21,9 @@ v2022.11.1 (unreleased) New Features ~~~~~~~~~~~~ - +- Enable using `offset` and `origin` arguments in :py:meth:`DataArray.resample` + and :py:meth:`Dataset.res...
pydata/xarray
pydata__xarray-7523
https://github.com/pydata/xarray/pull/7523
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 04013d545c3..54580ac1d9b 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -483,7 +483,6 @@ backends.NetCDF4DataStore.is_remote backends.NetCDF4DataStore.lock - backends.NetCDF4BackendEntrypoint.available backends.NetCDF4BackendEntrypo...
diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index 12e101a475d..2b1e76774ca 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -5023,7 +5023,7 @@ def test_scipy_entrypoint(tmp_path: Path) -> None: assert entrypoint.guess_can_open("something-local.nc") ...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 04013d545c3..54580ac1d9b 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -483,7 +483,6 @@\n backends.NetC...
2304
44488288fd8309e3468ee45a5f7408d75a21f493
[ "xarray/tests/test_plugins.py::test_remove_duplicates_warnings", "xarray/tests/test_plugins.py::test_broken_plugin", "xarray/tests/test_plugins.py::test_remove_duplicates", "xarray/tests/test_plugins.py::test_build_engines", "xarray/tests/test_plugins.py::test_list_engines", "xarray/tests/test_plugins.py:...
[ "xarray/tests/test_plugins.py::test_refresh_engines" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "EntryPoints" }, { "type": "field", "name": "cache_clear" } ] }
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 04013d545c3..54580ac1d9b 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -483,7 +483,6 @@\n backends.NetC...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 04013d545c3..54580ac1d9b 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -483,7 +483,6 @@ backends.NetCDF4DataStore.is_remote backends.NetCDF4DataStore.lock - backends.NetCDF4BackendEntrypoint.available backends.NetCDF4BackendEntrypo...
pydata/xarray
pydata__xarray-7052
https://github.com/pydata/xarray/pull/7052
diff --git a/ci/requirements/min-all-deps.yml b/ci/requirements/min-all-deps.yml index 8ff322ee6a4..1a2307aee5e 100644 --- a/ci/requirements/min-all-deps.yml +++ b/ci/requirements/min-all-deps.yml @@ -3,10 +3,10 @@ channels: - conda-forge - nodefaults dependencies: - # MINIMUM VERSIONS POLICY: see doc/installin...
diff --git a/xarray/tests/__init__.py b/xarray/tests/__init__.py index 08afdffc3b1..8d6b8f11475 100644 --- a/xarray/tests/__init__.py +++ b/xarray/tests/__init__.py @@ -4,7 +4,6 @@ import platform import warnings from contextlib import contextmanager, nullcontext -from typing import Any from unittest import mock #...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 30bc9f858f2..18c2539c04e 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -330,11 +330,6 @@\n plot.scatter...
2211
ddccd5c538220ab7b8fdab390c64e29be97ee00b
[]
[ "xarray/tests/test_plot.py::TestContour::test_xyincrease_defaults", "xarray/tests/test_plot.py::TestSurface::test_complex_raises_typeerror", "xarray/tests/test_plot.py::TestSurface::test_seaborn_palette_as_cmap", "xarray/tests/test_plot.py::test_get_axis[default]", "xarray/tests/test_plot.py::TestPlot::test...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "class", "name": "DataArrayPlotAccessor" }, { "type": "field", "name": "Hashable" }, { ...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 30bc9f858f2..18c2539c04e 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -330,11 +330,6 @@\n plot.scatter...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 30bc9f858f2..18c2539c04e 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -330,11 +330,6 @@ plot.scatter plot.surface - plot.FacetGrid.map_dataarray - plot.FacetGrid.set_titles - plot.FacetGrid.set_ticks - plot.FacetGrid.map - C...
pydata/xarray
pydata__xarray-7741
https://github.com/pydata/xarray/pull/7741
diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst index d1f1274c7a1..f8141f40321 100644 --- a/doc/user-guide/computation.rst +++ b/doc/user-guide/computation.rst @@ -63,6 +63,10 @@ Data arrays also implement many :py:class:`numpy.ndarray` methods: arr.round(2) arr.T + intarr = ...
diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py index b37399d6ef8..1171464a962 100644 --- a/xarray/tests/test_dask.py +++ b/xarray/tests/test_dask.py @@ -178,6 +178,19 @@ def test_binary_op(self): self.assertLazyAndIdentical(u + u, v + v) self.assertLazyAndIdentical(u[0] + u, v[0] +...
[ { "path": "doc/user-guide/computation.rst", "old_path": "a/doc/user-guide/computation.rst", "new_path": "b/doc/user-guide/computation.rst", "metadata": "diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst\nindex d1f1274c7a1..f8141f40321 100644\n--- a/doc/user-guide/computati...
2305
7c53a94f53c4c01155c432c8b287f3d0b318a7c7
[ "xarray/tests/test_dataarray.py::TestReduce1D::test_argmin[datetime]", "xarray/tests/test_variable.py::TestIndexVariable::test_getitem_with_mask", "xarray/tests/test_variable.py::TestVariable::test_object_conversion", "xarray/tests/test_dataarray.py::TestDataArray::test__title_for_slice_truncate", "xarray/t...
[ "xarray/tests/test_variable.py::TestIndexVariable::test_1d_math[int]", "xarray/tests/test_variable.py::TestVariable::test_1d_math[int]", "xarray/tests/test_groupby.py::test_groupby_math_bitshift", "xarray/tests/test_variable.py::TestVariableWithDask::test_1d_math[int]", "xarray/tests/test_dataarray.py::Test...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/user-guide/computation.rst", "old_path": "a/doc/user-guide/computation.rst", "new_path": "b/doc/user-guide/computation.rst", "metadata": "diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst\nindex d1f1274c7a1..f8141f40321 100644\n--- a/doc/user-guide/computati...
diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst index d1f1274c7a1..f8141f40321 100644 --- a/doc/user-guide/computation.rst +++ b/doc/user-guide/computation.rst @@ -63,6 +63,10 @@ Data arrays also implement many :py:class:`numpy.ndarray` methods: arr.round(2) arr.T + intarr = ...
pydata/xarray
pydata__xarray-6804
https://github.com/pydata/xarray/pull/6804
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9f6f3622f71..f859f6c420a 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -30,6 +30,9 @@ New Features :py:meth:`coarsen`, :py:meth:`weighted`, :py:meth:`resample`, (:pull:`6702`) By `Michael Niklas <https://github.com/headtr1ck>`_. +- Experiment...
diff --git a/xarray/tests/test_array_api.py b/xarray/tests/test_array_api.py new file mode 100644 index 00000000000..8e378054c29 --- /dev/null +++ b/xarray/tests/test_array_api.py @@ -0,0 +1,51 @@ +from typing import Tuple + +import pytest + +import xarray as xr +from xarray.testing import assert_equal + +np = pytest.i...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9f6f3622f71..f859f6c420a 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -30,6 +30,9 @@ New Features\n :py:meth:`...
2206
f045401ca79ecd1b80a0da67f44404c4e208fe31
[]
[ "xarray/tests/test_array_api.py::test_arithmetic", "xarray/tests/test_array_api.py::test_aggregation", "xarray/tests/test_array_api.py::test_reorganizing_operation", "xarray/tests/test_array_api.py::test_indexing" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9f6f3622f71..f859f6c420a 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -30,6 +30,9 @@ New Features\n :py:meth:`...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9f6f3622f71..f859f6c420a 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -30,6 +30,9 @@ New Features :py:meth:`coarsen`, :py:meth:`weighted`, :py:meth:`resample`, (:pull:`<PRID>`) By `<NAME>`_. +- Experimental support for wrapping any array typ...
pydata/xarray
pydata__xarray-6475
https://github.com/pydata/xarray/pull/6475
diff --git a/.github/workflows/upstream-dev-ci.yaml b/.github/workflows/upstream-dev-ci.yaml index 9748eda7dcf..68bd0c15067 100644 --- a/.github/workflows/upstream-dev-ci.yaml +++ b/.github/workflows/upstream-dev-ci.yaml @@ -80,6 +80,7 @@ jobs: if: success() id: status run: | + expor...
diff --git a/xarray/tests/test_backends.py b/xarray/tests/test_backends.py index 64030b3f595..70987a3dd38 100644 --- a/xarray/tests/test_backends.py +++ b/xarray/tests/test_backends.py @@ -102,6 +102,24 @@ except ImportError: pass +have_zarr_kvstore = False +try: + from zarr.storage import KVStore + + hav...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 13867daebf4..8a9f06a1e27 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -14,7 +14,6 @@ What's New\n \n np.rand...
2212
d6671dd414370d006254ba3156cb96256ce0e9c7
[ "xarray/tests/test_backends.py::test_use_cftime_true[2500-all_leap]", "xarray/tests/test_backends.py::TestScipyFileObject::test_grid_mapping_and_bounds_are_coordinates_after_dataarray_roundtrip", "xarray/tests/test_backends.py::TestScipyFilePath::test_roundtrip_string_encoded_characters", "xarray/tests/test_b...
[]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "zarr_version" }, { "type": "field", "name": "zarr_version" }, { ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 13867daebf4..8a9f06a1e27 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -14,7 +14,6 @@ What's New\n \n np.rand...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 13867daebf4..8a9f06a1e27 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -14,7 +14,6 @@ What's New np.random.seed(123456) - .. _whats-new.2022.11.1: v2022.11.1 (unreleased) @@ -23,6 +22,8 @@ v2022.11.1 (unreleased) New Features ~~~~~~~~~~...
pydata/xarray
pydata__xarray-6971
https://github.com/pydata/xarray/pull/6971
diff --git a/doc/api.rst b/doc/api.rst index 11ae5de8531..c3488389d4c 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -107,6 +107,7 @@ Dataset contents Dataset.swap_dims Dataset.expand_dims Dataset.drop_vars + Dataset.drop_indexes Dataset.drop_duplicates Dataset.drop_dims Dataset.set_coords @@ -...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 3b69f8e80fb..3602b87102d 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -2067,6 +2067,23 @@ def test_reorder_levels(self) -> None: with pytest.raises(ValueError, match=r"has no MultiIndex"): ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 11ae5de8531..c3488389d4c 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -107,6 +107,7 @@ Dataset contents\n Dataset.swap_dims\n Dataset.expand_dims\n ...
2209
a042ae69c0444912f94bb4f29c93fa05046893ed
[ "xarray/tests/test_dataarray.py::TestReduce2D::test_argmin_dim[datetime]", "xarray/tests/test_dataarray.py::TestDataArray::test_align_copy", "xarray/tests/test_dataarray.py::TestDataArray::test_to_dataframe_multiindex", "xarray/tests/test_dataset.py::TestDataset::test_update", "xarray/tests/test_dataset.py:...
[ "xarray/tests/test_dataset.py::TestDataset::test_set_xindex", "xarray/tests/test_dataset.py::TestDataset::test_drop_indexes", "xarray/tests/test_indexes.py::TestPandasIndex::test_from_variables", "xarray/tests/test_indexes.py::TestIndex::test_from_variables", "xarray/tests/test_dataset.py::TestDataset::test...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "file", "name": "xarray/indexes/__init__.py" }, { "type": "field", "name": "options" } ] ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 11ae5de8531..c3488389d4c 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -107,6 +107,7 @@ Dataset contents\n Dataset.swap_dims\n Dataset.expand_dims\n ...
diff --git a/doc/api.rst b/doc/api.rst index 11ae5de8531..c3488389d4c 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -107,6 +107,7 @@ Dataset contents Dataset.swap_dims Dataset.expand_dims Dataset.drop_vars + Dataset.drop_indexes Dataset.drop_duplicates Dataset.drop_dims Dataset.set_coords @@ -...
pydata/xarray
pydata__xarray-5873
https://github.com/pydata/xarray/pull/5873
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 0266b2dc0f5..1dcdd25ccea 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ New Features - Fix :py:meth:`xr.cov` and :py:meth:`xr.corr` now support complex valued arrays (:issue:`7340`, :pull:`7392`). By `Michael Niklas <https://githu...
diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py index 52a41035faf..21f0ab93d78 100644 --- a/xarray/tests/test_dask.py +++ b/xarray/tests/test_dask.py @@ -123,14 +123,15 @@ def test_indexing(self): (da.array([99, 99, 3, 99]), [0, -1, 1]), (da.array([99, 99, 99, 4]), np.arange...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 0266b2dc0f5..1dcdd25ccea 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,9 @@ New Features\n \n - Fix :py...
2303
49ae0f8dd39e8fc59ed3476f50b9938bbb40d0c4
[ "xarray/tests/test_indexing.py::test_outer_indexer", "xarray/tests/test_dataarray.py::TestReduce2D::test_argmin_dim[datetime]", "xarray/tests/test_dataarray.py::TestDataArray::test_align_copy", "xarray/tests/test_dataarray.py::TestDataArray::test_to_dataframe_multiindex", "xarray/tests/test_dataset.py::Test...
[ "xarray/tests/test_indexing.py::test_indexing_dask_array_scalar", "xarray/tests/test_indexing.py::test_vectorized_indexing_dask_array", "xarray/tests/test_indexing.py::test_indexing_dask_array", "xarray/tests/test_indexing.py::test_advanced_indexing_dask_array" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 0266b2dc0f5..1dcdd25ccea 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,9 @@ New Features\n \n - Fix :py...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 0266b2dc0f5..1dcdd25ccea 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ New Features - Fix :py:meth:`xr.cov` and :py:meth:`xr.corr` now support complex valued arrays (:issue:`<PRID>`, :pull:`<PRID>`). By `<NAME>`_. +- Allow indexi...
pydata/xarray
pydata__xarray-6400
https://github.com/pydata/xarray/pull/6400
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 39aaf8e2954..e01bdf93b00 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -32,6 +32,10 @@ New Features - Multi-index levels are now accessible through their own, regular coordinates instead of virtual coordinates (:pull:`5692`). By `Benoît Bovy <h...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py index 105cec7e850..efdb8a57288 100644 --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -479,6 +479,12 @@ def test_short_numpy_repr() -> None: num_lines = formatting.short_numpy_repr(array).count("\n") +...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 39aaf8e2954..e01bdf93b00 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -32,6 +32,10 @@ New Features\n - Multi-ind...
2206
728b648d5c7c3e22fe3704ba163012840408bf66
[ "xarray/tests/test_formatting.py::TestFormatting::test_diff_attrs_repr_with_array", "xarray/tests/test_formatting.py::TestFormatting::test_array_repr_variable", "xarray/tests/test_formatting.py::TestFormatting::test_format_timestamp_out_of_bounds", "xarray/tests/test_formatting.py::test_large_array_repr_lengt...
[ "xarray/tests/test_formatting.py::test_short_numpy_repr" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 39aaf8e2954..e01bdf93b00 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -32,6 +32,10 @@ New Features\n - Multi-ind...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 39aaf8e2954..e01bdf93b00 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -32,6 +32,10 @@ New Features - Multi-index levels are now accessible through their own, regular coordinates instead of virtual coordinates (:pull:`<PRID>`). By `<NAME>`_. +-...
pydata/xarray
pydata__xarray-6778
https://github.com/pydata/xarray/pull/6778
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b2045ec9b72..829163536b7 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,9 @@ v2022.09.1 (unreleased) New Features ~~~~~~~~~~~~ +- Add scatter plot for datarrays. Scatter plots now also supports 3d plots with + the z argument. (:pull:`677...
diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py index 67f6c83c3bc..2a51bf89943 100644 --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -2492,6 +2492,29 @@ def test_facetgrid(self): with pytest.raises(ValueError, match=r"Please provide scale"): self.ds.plot.quiv...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b2045ec9b72..829163536b7 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,9 @@ v2022.09.1 (unreleased)\n N...
2210
b290f5fb056a1a6a26cfeac6cfe814adceadc810
[ "xarray/tests/test_plot.py::TestCFDatetimePlot::test_cfdatetime_line_plot", "xarray/tests/test_plot.py::TestContour::test_coord_strings", "xarray/tests/test_plot.py::test_get_axis_cartopy[default]", "xarray/tests/test_plot.py::TestContourf::test_coord_strings", "xarray/tests/test_plot.py::TestDetermineCmapP...
[ "xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-None-None-None-None-None-None]", "xarray/tests/test_plot.py::test_datarray_scatter[B-A-None-w-None-None-None-True-None]", "xarray/tests/test_plot.py::TestDatasetScatterPlots::test_legend_labels", "xarray/tests/test_plot.py::test_datarray_scatter[A-B-z-y-...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "KeyError" } ] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b2045ec9b72..829163536b7 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,9 @@ v2022.09.1 (unreleased)\n N...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b2045ec9b72..829163536b7 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,9 @@ v2022.09.1 (unreleased) New Features ~~~~~~~~~~~~ +- Add scatter plot for datarrays. Scatter plots now also supports 3d plots with + the z argument. (:pull:`<PR...
pydata/xarray
pydata__xarray-6059
https://github.com/pydata/xarray/pull/6059
diff --git a/doc/api.rst b/doc/api.rst index d2c222da4db..7fdd775e168 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -944,6 +944,7 @@ Dataset DatasetWeighted DatasetWeighted.mean + DatasetWeighted.quantile DatasetWeighted.sum DatasetWeighted.std DatasetWeighted.var @@ -958,6 +959,7 @@ DataArray ...
diff --git a/xarray/tests/test_weighted.py b/xarray/tests/test_weighted.py index 1f065228bc4..63dd1ec0c94 100644 --- a/xarray/tests/test_weighted.py +++ b/xarray/tests/test_weighted.py @@ -194,6 +194,160 @@ def test_weighted_mean_no_nan(weights, expected): assert_equal(expected, result) +@pytest.mark.parametri...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex d2c222da4db..7fdd775e168 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -944,6 +944,7 @@ Dataset\n \n DatasetWeighted\n DatasetWeighted.mean\n+ Data...
2206
8f42bfd3a5fd0b1a351b535be207ed4771b02c8b
[ "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-False]", "xarray/tests/test_weighted.py::test_weighted_operations_3D[True-True-None]", "xarray/tests/test_weighted.py::test_weighted_mean_no_nan[weights2-nan]", "xarray/tests/test_weighted.py::test_weighted_operations_different_shapes[T...
[ "xarray/tests/test_weighted.py::test_weighted_quantile_equal_weights[1-False-0.5-da2]", "xarray/tests/test_weighted.py::test_weighted_quantile_3D[True-True-0.5-None]", "xarray/tests/test_weighted.py::test_weighted_quantile_3D[None-False-q2-b]", "xarray/tests/test_weighted.py::test_weighted_quantile_3D[None-Fa...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "error_msg", "name": "q values must be between 0 and 1" }, { "type": "field", "name": "asarray"...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex d2c222da4db..7fdd775e168 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -944,6 +944,7 @@ Dataset\n \n DatasetWeighted\n DatasetWeighted.mean\n+ Data...
diff --git a/doc/api.rst b/doc/api.rst index d2c222da4db..7fdd775e168 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -944,6 +944,7 @@ Dataset DatasetWeighted DatasetWeighted.mean + DatasetWeighted.quantile DatasetWeighted.sum DatasetWeighted.std DatasetWeighted.var @@ -958,6 +959,7 @@ DataArray ...
pydata/xarray
pydata__xarray-7494
https://github.com/pydata/xarray/pull/7494
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b7e632bdfb7..3cc2efde599 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -44,6 +44,8 @@ Bug fixes - Fix matplotlib raising a UserWarning when plotting a scatter plot with an unfilled marker (:issue:`7313`, :pull:`7318`). By `Jimmy Westling <https...
diff --git a/xarray/tests/__init__.py b/xarray/tests/__init__.py index 1fe65a7e831..eda790694af 100644 --- a/xarray/tests/__init__.py +++ b/xarray/tests/__init__.py @@ -143,7 +143,18 @@ def __init__(self, array): self.array = array def __getitem__(self, key): - raise UnexpectedDataAccess("Tried a...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b7e632bdfb7..3cc2efde599 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -44,6 +44,8 @@ Bug fixes\n - Fix matplotli...
2303
830ee6de0d545c997df84fe69b0ac2334bde1d1b
[ "xarray/tests/test_accessor_dt.py::test_cftime_round_accessor[all_leap-True]", "xarray/tests/test_coding_times.py::test_decode_standard_calendar_inside_timestamp_range[proleptic_gregorian]", "xarray/tests/test_dataarray.py::TestDataArray::test_align_copy", "xarray/tests/test_dataarray.py::TestDataArray::test_...
[ "xarray/tests/test_coding_times.py::test_contains_cftime_lazy" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b7e632bdfb7..3cc2efde599 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -44,6 +44,8 @@ Bug fixes\n - Fix matplotli...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b7e632bdfb7..3cc2efde599 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -44,6 +44,8 @@ Bug fixes - Fix matplotlib raising a UserWarning when plotting a scatter plot with an unfilled marker (:issue:`<PRID>`, :pull:`<PRID>`). By `<NAME>`_. +- Impr...
pydata/xarray
pydata__xarray-6548
https://github.com/pydata/xarray/pull/6548
diff --git a/asv_bench/benchmarks/polyfit.py b/asv_bench/benchmarks/polyfit.py new file mode 100644 index 00000000000..429ffa19baa --- /dev/null +++ b/asv_bench/benchmarks/polyfit.py @@ -0,0 +1,38 @@ +import numpy as np + +import xarray as xr + +from . import parameterized, randn, requires_dask + +NDEGS = (2, 5, 20) +N...
diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py index 7a397428ba3..127fdc5404f 100644 --- a/xarray/tests/test_computation.py +++ b/xarray/tests/test_computation.py @@ -1933,37 +1933,100 @@ def test_where_attrs() -> None: assert actual.attrs == {} -@pytest.mark.parametrize("use_...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 4882402073c..dfa36a4dcb0 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -41,6 +41,9 @@ New Features\n - Allow pass...
2206
126051f2bf2ddb7926a7da11b047b852d5ca6b87
[ "xarray/tests/test_computation.py::test_autocov[x-da_a1]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_dataarray_variables[no_conflicts-dim]", "xarray/tests/test_computation.py::test_corr_lazycorr_consistency[None-da_a6-da_b6]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_d...
[ "xarray/tests/test_computation.py::test_polyval[reordered-index-True]", "xarray/tests/test_computation.py::test_polyval[broadcast-x-True]", "xarray/tests/test_computation.py::test_polyval[sparse-index-False]", "xarray/tests/test_computation.py::test_polyval[dataset-array-True]", "xarray/tests/test_computati...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "file", "name": "asv_bench/benchmarks/polyfit.py" } ] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 4882402073c..dfa36a4dcb0 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -41,6 +41,9 @@ New Features\n - Allow pass...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 4882402073c..dfa36a4dcb0 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -41,6 +41,9 @@ New Features - Allow passing chunks in ``**kwargs`` form to :py:meth:`Dataset.chunk`, :py:meth:`DataArray.chunk`, and :py:meth:`Variable.chunk`. (:pull:`<PRID>`)...
pydata/xarray
pydata__xarray-6135
https://github.com/pydata/xarray/pull/6135
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index a8cd952609c..6c71407cd46 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -19,9 +19,15 @@ What's New v2022.02.0 (unreleased) ----------------------- + New Features ~~~~~~~~~~~~ +- Enabled multiplying tick offsets by floats. Allows ``float`` ``n``...
diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index 4f94b35e3c3..3879959675f 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -18,6 +18,7 @@ QuarterBegin, QuarterEnd, Second, + Tick, YearBegin, YearEnd, ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex a8cd952609c..6c71407cd46 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -19,9 +19,15 @@ What's New\n v2022.02.0 (u...
2203
48290fa14accd3ac87768d3f73d69493b82b0be6
[ "xarray/tests/test_cftimeindex.py::test_sel_date_list_tolerance_raises[365_day-sel_kwargs1]", "xarray/tests/test_cftimeindex.py::test_cftimeindex_rsub[proleptic_gregorian]", "xarray/tests/test_cftimeindex.py::test_indexing_in_series_getitem[360_day]", "xarray/tests/test_cftimeindex.py::test_infer_freq[365_day...
[ "xarray/tests/test_cftime_offsets.py::test_add_month_end[all_leap-(1, 2, 1)-<MonthEnd: n=14>-(2, 3)-()]", "xarray/tests/test_cftime_offsets.py::test_rollforward[365_day-<QuarterBegin: n=1, month=3>-(1, 3, 2)-(1, 6)]", "xarray/tests/test_cftime_offsets.py::test_add_quarter_end[standard-(2, 3, 1)-<QuarterEnd: n=-...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "error_msg", "name": "Could not convert to integer offset at any resolution" }, { "type": "field", ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex a8cd952609c..6c71407cd46 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -19,9 +19,15 @@ What's New\n v2022.02.0 (u...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index a8cd952609c..6c71407cd46 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -19,9 +19,15 @@ What's New v2022.02.0 (unreleased) ----------------------- + New Features ~~~~~~~~~~~~ +- Enabled multiplying tick offsets by floats. Allows ``float`` ``n``...
pydata/xarray
pydata__xarray-5365
https://github.com/pydata/xarray/pull/5365
diff --git a/doc/api.rst b/doc/api.rst index 9433ecfa56d..ef2694ea661 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -32,6 +32,7 @@ Top-level functions ones_like cov corr + cross dot polyval map_blocks diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 1c4b49097a3..bd6097d61fe 100644 --- ...
diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py index 77d3110104f..6af93607e6b 100644 --- a/xarray/tests/test_computation.py +++ b/xarray/tests/test_computation.py @@ -1952,3 +1952,110 @@ def test_polyval(use_dask, use_datetime) -> None: da_pv = xr.polyval(da.x, coeffs) xr.t...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 9433ecfa56d..ef2694ea661 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -32,6 +32,7 @@ Top-level functions\n ones_like\n cov\n corr\n+ cross\n ...
0021
3960ea3ba08f81d211899827612550f6ac2de804
[ "xarray/tests/test_computation.py::test_autocov[x-da_a1]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_dataarray_variables[no_conflicts-dim]", "xarray/tests/test_computation.py::test_corr_lazycorr_consistency[None-da_a6-da_b6]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_d...
[ "xarray/tests/test_computation.py::test_cross[a1-b1-ae1-be1-dim_0--1-False]", "xarray/tests/test_computation.py::test_cross[a6-b6-ae6-be6-cartesian--1-False]", "xarray/tests/test_computation.py::test_cross[a1-b1-ae1-be1-dim_0--1-True]", "xarray/tests/test_computation.py::test_cross[a2-b2-ae2-be2-dim_0--1-Fals...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 9433ecfa56d..ef2694ea661 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -32,6 +32,7 @@ Top-level functions\n ones_like\n cov\n corr\n+ cross\n ...
diff --git a/doc/api.rst b/doc/api.rst index 9433ecfa56d..ef2694ea661 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -32,6 +32,7 @@ Top-level functions ones_like cov corr + cross dot polyval map_blocks diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 1c4b49097a3..bd6097d61fe 100644 ---...
pydata/xarray
pydata__xarray-5716
https://github.com/pydata/xarray/pull/5716
diff --git a/doc/api.rst b/doc/api.rst index fb2296d1226..87bc3b7a84e 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -35,6 +35,7 @@ Top-level functions map_blocks show_versions set_options + get_options unify_chunks Dataset diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 4f79a37eb4b..0a4209...
diff --git a/xarray/tests/test_options.py b/xarray/tests/test_options.py index 19f74476ced..af16d867401 100644 --- a/xarray/tests/test_options.py +++ b/xarray/tests/test_options.py @@ -203,3 +203,14 @@ def test_display_dataarray_style_html(self): html = da._repr_html_() assert html.startswith(...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex fb2296d1226..87bc3b7a84e 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -35,6 +35,7 @@ Top-level functions\n map_blocks\n show_versions\n set_optio...
0020
e26aec9500e04f3b926b248988b976dbfcb9c632
[ "xarray/tests/test_options.py::test_nested_options", "xarray/tests/test_options.py::test_keep_attrs", "xarray/tests/test_options.py::test_arithmetic_join", "xarray/tests/test_options.py::TestAttrRetention::test_dataset_attr_retention", "xarray/tests/test_options.py::test_file_cache_maxsize", "xarray/tests...
[ "xarray/tests/test_options.py::test_get_options_retention[left]", "xarray/tests/test_options.py::test_get_options_retention[exact]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex fb2296d1226..87bc3b7a84e 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -35,6 +35,7 @@ Top-level functions\n map_blocks\n show_versions\n set_optio...
diff --git a/doc/api.rst b/doc/api.rst index fb2296d1226..87bc3b7a84e 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -35,6 +35,7 @@ Top-level functions map_blocks show_versions set_options + get_options unify_chunks Dataset diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 4f79a37eb4b..0a420...
pydata/xarray
pydata__xarray-6635
https://github.com/pydata/xarray/pull/6635
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index c9ee52f3da0..b922e7f3949 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -48,6 +48,9 @@ New Features is faster and requires less memory. (:pull:`6548`) By `Michael Niklas <https://github.com/headtr1ck>`_. - Improved overall typing. +- :py:meth:`D...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 01d17837f61..970e2a8e710 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -3140,10 +3140,12 @@ def test_series_categorical_index(self): arr = DataArray(s) assert "'a'" in repr(arr) # ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex c9ee52f3da0..b922e7f3949 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -48,6 +48,9 @@ New Features\n is faster ...
2206
3b242a184072db9928ede7b72c07f047cd67d23b
[ "xarray/tests/test_dataarray.py::TestDataArray::test_pad_stat_length[stat_length2-minimum]", "xarray/tests/test_dataarray.py::test_rolling_exp_mean_pandas[1-numpy-span-5-x]", "xarray/tests/test_dataarray.py::test_rolling_reduce[numpy-sum-3-3-True-1]", "xarray/tests/test_dataarray.py::TestReduce2D::test_max[x3...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_to_and_from_dict[False]", "xarray/tests/test_dataarray.py::TestDataArray::test_to_and_from_dict[True]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex c9ee52f3da0..b922e7f3949 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -48,6 +48,9 @@ New Features\n is faster ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index c9ee52f3da0..b922e7f3949 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -48,6 +48,9 @@ New Features is faster and requires less memory. (:pull:`<PRID>`) By `<NAME>`_. - Improved overall typing. +- :py:meth:`Dataset.to_dict` and :py:meth:`DataArr...
pydata/xarray
pydata__xarray-5682
https://github.com/pydata/xarray/pull/5682
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9ac9639b8c1..52114be991b 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,8 @@ v0.19.1 (unreleased) New Features ~~~~~~~~~~~~ +- Xarray now does a better job rendering variable names that are long LaTeX sequences when plotting (:issue:`5681...
diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py index ee8bafb8fa7..e358bd47485 100644 --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -2950,3 +2950,10 @@ def test_datarray_scatter(x, y, z, hue, markersize, row, col, add_legend, add_co add_legend=add_legend, ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9ac9639b8c1..52114be991b 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,8 @@ v0.19.1 (unreleased)\n \n N...
0020
2705c63e0c03a21d2bbce3a337fac60dd6f6da59
[]
[ "xarray/tests/test_plot.py::test_latex_name_isnt_split" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9ac9639b8c1..52114be991b 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,8 @@ v0.19.1 (unreleased)\n \n N...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9ac9639b8c1..52114be991b 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,8 @@ v0.19.1 (unreleased) New Features ~~~~~~~~~~~~ +- Xarray now does a better job rendering variable names that are long LaTeX sequences when plotting (:issue:`<PRI...
pydata/xarray
pydata__xarray-5950
https://github.com/pydata/xarray/pull/5950
diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst index d830076e37b..de2afa9060c 100644 --- a/doc/user-guide/computation.rst +++ b/doc/user-guide/computation.rst @@ -107,6 +107,8 @@ Xarray also provides the ``max_gap`` keyword argument to limit the interpolation data gaps of length ``max_gap...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 55c68b7ff6b..438bdf8bdc3 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -2404,7 +2404,7 @@ def test_cumops(self): expected = DataArray([[-1, 0, 0], [-3, 0, 0]], coords, dims=["x", "y"]) ...
[ { "path": "doc/user-guide/computation.rst", "old_path": "a/doc/user-guide/computation.rst", "new_path": "b/doc/user-guide/computation.rst", "metadata": "diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst\nindex d830076e37b..de2afa9060c 100644\n--- a/doc/user-guide/computati...
2211
d293f50f9590251ce09543319d1f0dc760466f1b
[ "xarray/tests/test_dataarray.py::test_rolling_reduce[dask-max-4-3-True-2]", "xarray/tests/test_dataset.py::test_ndrolling_reduce[numpy-False-max-None-True-2]", "xarray/tests/test_duck_array_ops.py::test_min_count[True-False-None-prod-True-bool_-2]", "xarray/tests/test_dataarray.py::test_rolling_reduce[numpy-m...
[]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/user-guide/computation.rst", "old_path": "a/doc/user-guide/computation.rst", "new_path": "b/doc/user-guide/computation.rst", "metadata": "diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst\nindex d830076e37b..de2afa9060c 100644\n--- a/doc/user-guide/computati...
diff --git a/doc/user-guide/computation.rst b/doc/user-guide/computation.rst index d830076e37b..de2afa9060c 100644 --- a/doc/user-guide/computation.rst +++ b/doc/user-guide/computation.rst @@ -107,6 +107,8 @@ Xarray also provides the ``max_gap`` keyword argument to limit the interpolation data gaps of length ``max_gap...
pydata/xarray
pydata__xarray-6706
https://github.com/pydata/xarray/pull/6706
diff --git a/doc/api.rst b/doc/api.rst index 644b86cdebb..810c1a92682 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -61,6 +61,7 @@ Attributes Dataset.dims Dataset.sizes + Dataset.dtypes Dataset.data_vars Dataset.coords Dataset.attrs diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 3c53d3...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index d4f7b0f096f..3b1b1da651f 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -1321,9 +1321,11 @@ def test_coords(self) -> None: ] da = DataArray(np.random.randn(2, 3), coords, name="foo")...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 644b86cdebb..810c1a92682 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -61,6 +61,7 @@ Attributes\n \n Dataset.dims\n Dataset.sizes\n+ Dataset.dtype...
2206
9a719909ffbab972f6811cbfea8447075b4b919e
[ "xarray/tests/test_dataarray.py::test_rolling_reduce[dask-max-4-3-True-2]", "xarray/tests/test_dataset.py::test_ndrolling_reduce[numpy-False-max-None-True-2]", "xarray/tests/test_dataarray.py::test_rolling_reduce[numpy-max-3-1-False-1]", "xarray/tests/test_dataset.py::TestDataset::test_setitem_dimension_overr...
[ "xarray/tests/test_dataset.py::TestDataset::test_coords_properties", "xarray/tests/test_dataarray.py::TestDataArray::test_coords", "xarray/tests/test_dataset.py::TestDataset::test_data_vars_properties", "xarray/tests/test_dataset.py::TestDataset::test_properties" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 644b86cdebb..810c1a92682 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -61,6 +61,7 @@ Attributes\n \n Dataset.dims\n Dataset.sizes\n+ Dataset.dtype...
diff --git a/doc/api.rst b/doc/api.rst index 644b86cdebb..810c1a92682 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -61,6 +61,7 @@ Attributes Dataset.dims Dataset.sizes + Dataset.dtypes Dataset.data_vars Dataset.coords Dataset.attrs diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 3c53d...
pydata/xarray
pydata__xarray-5362
https://github.com/pydata/xarray/pull/5362
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2dc271061e4..6d61345b01d 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,9 @@ v0.18.3 (unreleased) New Features ~~~~~~~~~~~~ +- Attempting to reduce a weighted object over missing dimensions now raises an error (:pull:`5362`). + By `Matti...
diff --git a/xarray/tests/test_weighted.py b/xarray/tests/test_weighted.py index 31c3c552d93..45e662f118e 100644 --- a/xarray/tests/test_weighted.py +++ b/xarray/tests/test_weighted.py @@ -368,3 +368,19 @@ def test_weighted_operations_keep_attr_da_in_ds(operation): result = getattr(data.weighted(weights), operatio...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 2dc271061e4..6d61345b01d 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,9 @@ v0.18.3 (unreleased)\n New ...
0019
bc41eb20ba96c4d6a4b5bf12f1749523f34fa321
[ "xarray/tests/test_weighted.py::test_weighted_mean_equal_weights[3.14-False-da1]", "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-False]", "xarray/tests/test_weighted.py::test_weighted_operations_3D[None-False-a]", "xarray/tests/test_weighted.py::test_weighted_operations_different_s...
[ "xarray/tests/test_weighted.py::test_weighted_bad_dim[True]", "xarray/tests/test_weighted.py::test_weighted_bad_dim[False]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 2dc271061e4..6d61345b01d 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,9 @@ v0.18.3 (unreleased)\n New ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2dc271061e4..6d61345b01d 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,9 @@ v0.18.3 (unreleased) New Features ~~~~~~~~~~~~ +- Attempting to reduce a weighted object over missing dimensions now raises an error (:pull:`<PRID>`). + By `<NA...
pydata/xarray
pydata__xarray-5233
https://github.com/pydata/xarray/pull/5233
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index a6681715a3e..8ed9e47be01 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -77,6 +77,7 @@ core.accessor_dt.DatetimeAccessor.floor core.accessor_dt.DatetimeAccessor.round core.accessor_dt.DatetimeAccessor.strftime + core.accessor_dt.Datet...
diff --git a/xarray/tests/test_accessor_dt.py b/xarray/tests/test_accessor_dt.py index bdfe25b3c5c..b471bd2e267 100644 --- a/xarray/tests/test_accessor_dt.py +++ b/xarray/tests/test_accessor_dt.py @@ -105,6 +105,10 @@ def test_isocalendar(self, field, pandas_field) -> None: actual = self.data.time.dt.isocalend...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex a6681715a3e..8ed9e47be01 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -77,6 +77,7 @@\n core.accessor_d...
0020
2694046c748a51125de6d460073635f1d789958e
[ "xarray/tests/test_accessor_dt.py::test_date_cftime[365_day]", "xarray/tests/test_accessor_dt.py::test_field_access[366_day-dayofyear]", "xarray/tests/test_accessor_dt.py::TestTimedeltaAccessor::test_accessor_methods[ceil-D]", "xarray/tests/test_accessor_dt.py::test_dask_field_access_1d[gregorian-day]", "xa...
[ "xarray/tests/test_accessor_dt.py::test_cftime_round_accessor[all_leap-True]", "xarray/tests/test_cftime_offsets.py::test_rollforward[360_day-<MonthBegin: n=2>-(1, 3, 2)-(1, 4)]", "xarray/tests/test_cftime_offsets.py::test_add_year_end_onOffset[standard-(1, 1)-()-<YearEnd: n=1, month=2>-(1, 2)-()]", "xarray/t...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "_should_cftime_be_used" }, { "type": "field", "name": "source" }, { ...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex a6681715a3e..8ed9e47be01 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -77,6 +77,7 @@\n core.accessor_d...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index a6681715a3e..8ed9e47be01 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -77,6 +77,7 @@ core.accessor_dt.DatetimeAccessor.floor core.accessor_dt.DatetimeAccessor.round core.accessor_dt.DatetimeAccessor.strftime + core.accessor_dt.Datet...
pydata/xarray
pydata__xarray-5900
https://github.com/pydata/xarray/pull/5900
diff --git a/doc/api.rst b/doc/api.rst index 4686751c536..e3e1a02fcf4 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -65,6 +65,7 @@ Attributes Dataset.indexes Dataset.get_index Dataset.chunks + Dataset.chunksizes Dataset.nbytes Dictionary interface @@ -271,6 +272,7 @@ Attributes DataArray.encodi...
diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py index d5d460056aa..fa49d253e26 100644 --- a/xarray/tests/test_dask.py +++ b/xarray/tests/test_dask.py @@ -104,6 +104,11 @@ def test_chunk(self): assert rechunked.chunks == expected self.assertLazyAndIdentical(self.eager_var, re...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 4686751c536..e3e1a02fcf4 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -65,6 +65,7 @@ Attributes\n Dataset.indexes\n Dataset.get_index\n Dataset.c...
0020
df7646182b17d829fe9b2199aebf649ddb2ed480
[ "xarray/tests/test_dask.py::test_token_identical[obj0-<lambda>1]", "xarray/tests/test_dask.py::test_token_changes_when_buffer_changes[obj0]", "xarray/tests/test_dask.py::test_unify_chunks_shallow_copy[<lambda>0-obj1]", "xarray/tests/test_dask.py::TestVariable::test_compute", "xarray/tests/test_dask.py::test...
[ "xarray/tests/test_dask.py::TestVariable::test_chunk", "xarray/tests/test_dask.py::TestDataArrayAndDataset::test_chunk" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 4686751c536..e3e1a02fcf4 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -65,6 +65,7 @@ Attributes\n Dataset.indexes\n Dataset.get_index\n Dataset.c...
diff --git a/doc/api.rst b/doc/api.rst index 4686751c536..e3e1a02fcf4 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -65,6 +65,7 @@ Attributes Dataset.indexes Dataset.get_index Dataset.chunks + Dataset.chunksizes Dataset.nbytes Dictionary interface @@ -271,6 +272,7 @@ Attributes DataArray.encodi...
pydata/xarray
pydata__xarray-5284
https://github.com/pydata/xarray/pull/5284
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9ba9a7e9c0f..b957ed4bab2 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,11 +21,14 @@ v0.18.3 (unreleased) New Features ~~~~~~~~~~~~ - - Allow assigning values to a subset of a dataset using positional or label-based indexing (:issue:`3015`,...
diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py index cbfa61a4482..b7ae1ca9828 100644 --- a/xarray/tests/test_computation.py +++ b/xarray/tests/test_computation.py @@ -22,7 +22,7 @@ unified_dim_sizes, ) -from . import has_dask, requires_dask +from . import has_dask, raise_if_das...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9ba9a7e9c0f..b957ed4bab2 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,11 +21,14 @@ v0.18.3 (unreleased)\n \n...
0019
a6a1e48b57499f91db7e7c15593aadc7930020e8
[ "xarray/tests/test_computation.py::test_autocov[x-da_a1]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_dataarray_variables[no_conflicts-dim]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_dataset_variables[no_conflicts-dim]", "xarray/tests/test_computation.py::test_autocov[N...
[ "xarray/tests/test_computation.py::test_lazy_corrcov[x-da_a5-da_b5-1]", "xarray/tests/test_computation.py::test_lazy_corrcov[time-da_a2-da_b2-0]", "xarray/tests/test_computation.py::test_lazy_corrcov[x-da_a0-da_b0-0]", "xarray/tests/test_computation.py::test_lazy_corrcov[None-da_a5-da_b5-0]", "xarray/tests/...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9ba9a7e9c0f..b957ed4bab2 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,11 +21,14 @@ v0.18.3 (unreleased)\n \n...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9ba9a7e9c0f..b957ed4bab2 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,11 +21,14 @@ v0.18.3 (unreleased) New Features ~~~~~~~~~~~~ - - Allow assigning values to a subset of a dataset using positional or label-based indexing (:issue:`<PRID>...
pydata/xarray
pydata__xarray-5514
https://github.com/pydata/xarray/pull/5514
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 57ec853915b..daddc91b73f 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -48,6 +48,9 @@ New Features By `Justus Magin <https://github.com/keewis>`_. - Allow plotting categorical data (:pull:`5464`). By `Jimmy Westling <https://github.com/illvilja...
diff --git a/xarray/tests/test_conventions.py b/xarray/tests/test_conventions.py index cd8e3419231..ceea167719f 100644 --- a/xarray/tests/test_conventions.py +++ b/xarray/tests/test_conventions.py @@ -142,6 +142,40 @@ def test_do_not_overwrite_user_coordinates(self): with pytest.raises(ValueError, match=r"'coo...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 57ec853915b..daddc91b73f 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -48,6 +48,9 @@ New Features\n By `Justus...
0019
5ccb06951cecd59b890c1457e36ee3c2030a67aa
[ "xarray/tests/test_conventions.py::TestDecodeCF::test_decode_coordinates", "xarray/tests/test_conventions.py::TestDecodeCF::test_decode_cf_datetime_transition_to_invalid", "xarray/tests/test_conventions.py::TestDecodeCF::test_dataset_repr_with_netcdf4_datetimes", "xarray/tests/test_conventions.py::TestDecodeC...
[ "xarray/tests/test_conventions.py::TestEncodeCFVariable::test_emit_coordinates_attribute_in_attrs", "xarray/tests/test_conventions.py::TestEncodeCFVariable::test_emit_coordinates_attribute_in_encoding" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 57ec853915b..daddc91b73f 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -48,6 +48,9 @@ New Features\n By `<NAME>...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 57ec853915b..daddc91b73f 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -48,6 +48,9 @@ New Features By `<NAME>`_. - Allow plotting categorical data (:pull:`<PRID>`). By `<NAME>`_. +- Allow removal of the coordinate attribute ``coordinates`` on v...
pydata/xarray
pydata__xarray-4896
https://github.com/pydata/xarray/pull/4896
diff --git a/doc/api.rst b/doc/api.rst index fbd0a75bb41..bddccb20e37 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -899,6 +899,7 @@ Advanced API Variable IndexVariable as_variable + Context register_dataset_accessor register_dataarray_accessor Dataset.set_close diff --git a/doc/whats-new.rst ...
diff --git a/xarray/tests/test_combine.py b/xarray/tests/test_combine.py index 3b6aaec60f2..ded8c3a7cda 100644 --- a/xarray/tests/test_combine.py +++ b/xarray/tests/test_combine.py @@ -531,6 +531,9 @@ def test_auto_combine_2d_combine_attrs_kwarg(self): } expected_dict["override"] = expected.copy(deep=...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex fbd0a75bb41..bddccb20e37 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -899,6 +899,7 @@ Advanced API\n Variable\n IndexVariable\n as_variable\n+ ...
0019
9daf9b13648c9a02bddee3640b80fe95ea1fff61
[ "xarray/tests/test_merge.py::TestMergeFunction::test_merge_arrays_attrs_variables[identical-attrs16-attrs26-expected_attrs6-True]", "xarray/tests/test_merge.py::TestMergeMethod::test_merge_combine_attrs[identical-attrs14-attrs24-None-True]", "xarray/tests/test_merge.py::TestMergeMethod::test_merge_no_conflicts"...
[ "xarray/tests/test_combine.py::TestCombineAuto::test_combine_coords_combine_attrs[<lambda>-expected3]", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_combine_attrs_kwarg_variables[<lambda>-attrs19-attrs29-expected_attrs9-False]", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_combin...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "context" } ] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex fbd0a75bb41..bddccb20e37 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -899,6 +899,7 @@ Advanced API\n Variable\n IndexVariable\n as_variable\n+ ...
diff --git a/doc/api.rst b/doc/api.rst index fbd0a75bb41..bddccb20e37 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -899,6 +899,7 @@ Advanced API Variable IndexVariable as_variable + Context register_dataset_accessor register_dataarray_accessor Dataset.set_close diff --git a/doc/whats-new.rst...
pydata/xarray
pydata__xarray-6307
https://github.com/pydata/xarray/pull/6307
diff --git a/doc/api.rst b/doc/api.rst index b552bc6b4d2..d2c222da4db 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -106,6 +106,7 @@ Dataset contents Dataset.swap_dims Dataset.expand_dims Dataset.drop_vars + Dataset.drop_duplicates Dataset.drop_dims Dataset.set_coords Dataset.reset_coords diff...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 8d73f9ec7ee..fc82c03c5d9 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -6618,25 +6618,50 @@ def test_clip(da): result = da.clip(min=da.mean("x"), max=da.mean("a").isel(x=[0, 1])) -@pytes...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex b552bc6b4d2..d2c222da4db 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -106,6 +106,7 @@ Dataset contents\n Dataset.swap_dims\n Dataset.expand_dims\n ...
2203
de965f342e1c9c5de92ab135fbc4062e21e72453
[ "xarray/tests/test_dataset.py::test_rolling_reduce[numpy-median-3-3-False-2]", "xarray/tests/test_dataset.py::TestDataset::test_reduce_cumsum_test_dims[cumprod-dim3-expected2]", "xarray/tests/test_dataarray.py::TestDataArray::test_to_dataframe_multiindex", "xarray/tests/test_dataset.py::TestDataset::test_upda...
[ "xarray/tests/test_dataset.py::TestDropDuplicates::test_drop_duplicates_1d[False]", "xarray/tests/test_dataset.py::TestDropDuplicates::test_drop_duplicates_1d[first]", "xarray/tests/test_dataarray.py::TestDropDuplicates::test_drop_duplicates_2d", "xarray/tests/test_dataset.py::TestDropDuplicates::test_drop_du...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "keep" } ] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex b552bc6b4d2..d2c222da4db 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -106,6 +106,7 @@ Dataset contents\n Dataset.swap_dims\n Dataset.expand_dims\n ...
diff --git a/doc/api.rst b/doc/api.rst index b552bc6b4d2..d2c222da4db 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -106,6 +106,7 @@ Dataset contents Dataset.swap_dims Dataset.expand_dims Dataset.drop_vars + Dataset.drop_duplicates Dataset.drop_dims Dataset.set_coords Dataset.reset_coords dif...
pydata/xarray
pydata__xarray-5041
https://github.com/pydata/xarray/pull/5041
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 62da8bf1ea2..d07a2741eef 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v0.18.1 (unreleased) New Features ~~~~~~~~~~~~ +- allow passing ``combine_attrs`` strategy names to the ``keep_attrs`` parameter of + :py:func:`apply_ufunc` (:p...
diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py index c76633de831..cbfa61a4482 100644 --- a/xarray/tests/test_computation.py +++ b/xarray/tests/test_computation.py @@ -29,6 +29,7 @@ def assert_identical(a, b): """A version of this function which accepts numpy arrays""" + __tr...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 62da8bf1ea2..d07a2741eef 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,9 @@ v0.18.1 (unreleased)\n \n N...
0018
1f52ae0e841d75e3f331f16c0f31cd06a1675e23
[ "xarray/tests/test_computation.py::test_autocov[x-da_a1]", "xarray/tests/test_computation.py::test_autocov[None-da_a1]", "xarray/tests/test_computation.py::test_covcorr_consistency[time-da_a0-da_b0]", "xarray/tests/test_computation.py::test_autocov[x-da_a2]", "xarray/tests/test_computation.py::test_polyval[...
[ "xarray/tests/test_computation.py::test_keep_attrs_strategies_dataarray_variables[no_conflicts-dim]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_dataset_variables[no_conflicts-dim]", "xarray/tests/test_computation.py::test_keep_attrs_strategies_dataarray_variables[no_conflicts-coord]", "xar...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "default" } ] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 62da8bf1ea2..d07a2741eef 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,9 @@ v0.18.1 (unreleased)\n \n N...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 62da8bf1ea2..d07a2741eef 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v0.18.1 (unreleased) New Features ~~~~~~~~~~~~ +- allow passing ``combine_attrs`` strategy names to the ``keep_attrs`` parameter of + :py:func:`apply_ufunc` (:p...
pydata/xarray
pydata__xarray-5288
https://github.com/pydata/xarray/pull/5288
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index d07a2741eef..c95a4eda004 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -27,6 +27,8 @@ New Features - :py:meth:`Dataset.interp` now allows interpolation with non-numerical datatypes, such as booleans, instead of dropping them. (:issue:`4761` :pull:...
diff --git a/xarray/tests/test_coding_times.py b/xarray/tests/test_coding_times.py index 67ffbf147f0..9f8ccf2edcf 100644 --- a/xarray/tests/test_coding_times.py +++ b/xarray/tests/test_coding_times.py @@ -823,6 +823,12 @@ def test_encode_cf_datetime_overflow(shape): roundtrip = decode_cf_datetime(num, units, calen...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex d07a2741eef..c95a4eda004 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -27,6 +27,8 @@ New Features\n - :py:meth:`...
0018
751f76ac95761e18d2bf2b5c7ac3c84bd2ee69ea
[ "xarray/tests/test_coding_times.py::test_encode_cf_datetime_defaults_to_correct_dtype[date_range-L-seconds]", "xarray/tests/test_coding_times.py::test_cf_datetime[10-days since 2000-01-01-standard]", "xarray/tests/test_coding_times.py::test_cf_datetime[num_dates29-daYs since 2000-01-01-standard]", "xarray/te...
[ "xarray/tests/test_coding_times.py::test_encode_cf_datetime_overflow[shape0]", "xarray/tests/test_coding_times.py::test_encode_cf_datetime_overflow[shape1]", "xarray/tests/test_coding_times.py::test_encode_cf_datetime_overflow[shape2]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex d07a2741eef..c95a4eda004 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -27,6 +27,8 @@ New Features\n - :py:meth:`...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index d07a2741eef..c95a4eda004 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -27,6 +27,8 @@ New Features - :py:meth:`Dataset.interp` now allows interpolation with non-numerical datatypes, such as booleans, instead of dropping them. (:issue:`<PRID>` :pul...
pydata/xarray
pydata__xarray-5239
https://github.com/pydata/xarray/pull/5239
diff --git a/doc/api.rst b/doc/api.rst index 1bd4eee9b12..fbd0a75bb41 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -292,6 +292,7 @@ DataArray contents DataArray.swap_dims DataArray.expand_dims DataArray.drop_vars + DataArray.drop_duplicates DataArray.reset_coords DataArray.copy diff --git a/doc...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index e6c479896e9..8012fad18d0 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -7434,3 +7434,24 @@ def test_clip(da): # Unclear whether we want this work, OK to adjust the test when we have decided. ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 1bd4eee9b12..fbd0a75bb41 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -292,6 +292,7 @@ DataArray contents\n DataArray.swap_dims\n DataArray.expand_d...
0018
1305d9b624723b86050ca5b2d854e5326bbaa8e6
[ "xarray/tests/test_dataarray.py::test_rolling_reduce[numpy-std-2-3-False-1]", "xarray/tests/test_dataarray.py::test_rolling_reduce[dask-max-4-3-True-2]", "xarray/tests/test_dataarray.py::TestDataArray::test_groupby_multidim_map", "xarray/tests/test_dataarray.py::test_coarsen_reduce[dask-std-4-2]", "xarray/t...
[ "xarray/tests/test_dataarray.py::test_drop_duplicates[last]", "xarray/tests/test_dataarray.py::test_drop_duplicates[first]", "xarray/tests/test_dataarray.py::test_drop_duplicates[False]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 1bd4eee9b12..fbd0a75bb41 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -292,6 +292,7 @@ DataArray contents\n DataArray.swap_dims\n DataArray.expand_d...
diff --git a/doc/api.rst b/doc/api.rst index 1bd4eee9b12..fbd0a75bb41 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -292,6 +292,7 @@ DataArray contents DataArray.swap_dims DataArray.expand_dims DataArray.drop_vars + DataArray.drop_duplicates DataArray.reset_coords DataArray.copy diff --git a/do...
pydata/xarray
pydata__xarray-5560
https://github.com/pydata/xarray/pull/5560
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 3dad685aaf7..9ac9639b8c1 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,10 @@ v0.19.1 (unreleased) New Features ~~~~~~~~~~~~ +- Add a option to disable the use of ``bottleneck`` (:pull:`5560`) + By `Justus Magin <https://github.com/keewi...
diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index 8e39bbdd83e..9b8b7c748f1 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -4972,6 +4972,12 @@ def test_rank(self): with pytest.raises(ValueError, match=r"does not contain"): x.rank("invali...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 3dad685aaf7..9ac9639b8c1 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,10 @@ v0.19.1 (unreleased)\n \n ...
0020
4bb9d9c6df77137f05e85c7cc6508fe7a93dc0e4
[ "xarray/tests/test_dataset.py::test_rolling_reduce[numpy-median-3-3-False-2]", "xarray/tests/test_dataset.py::TestDataset::test_reduce_cumsum_test_dims[cumprod-dim3-expected2]", "xarray/tests/test_dataset.py::test_rolling_reduce[numpy-std-3-1-False-1]", "xarray/tests/test_dataset.py::TestDataset::test_update"...
[ "xarray/tests/test_missing.py::test_bfill_use_bottleneck_dask", "xarray/tests/test_variable.py::TestVariable::test_rank_use_bottleneck", "xarray/tests/test_missing.py::test_bfill_use_bottleneck", "xarray/tests/test_missing.py::test_ffill_use_bottleneck_dask", "xarray/tests/test_dataset.py::TestDataset::test...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "RuntimeError" }, { "type": "field", "name": "RuntimeError" } ] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 3dad685aaf7..9ac9639b8c1 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,10 @@ v0.19.1 (unreleased)\n \n ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 3dad685aaf7..9ac9639b8c1 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,10 @@ v0.19.1 (unreleased) New Features ~~~~~~~~~~~~ +- Add a option to disable the use of ``bottleneck`` (:pull:`<PRID>`) + By `<NAME>`_. +- Added ``**kwargs`` argu...
pydata/xarray
pydata__xarray-4895
https://github.com/pydata/xarray/pull/4895
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9e59fdc5b35..9c16fb74a7b 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,8 @@ v0.17.1 (unreleased) New Features ~~~~~~~~~~~~ +- Allow passing ``combine_attrs`` to :py:meth:`Dataset.merge` (:pull:`4895`). + By `Justus Magin <https://github...
diff --git a/xarray/tests/test_merge.py b/xarray/tests/test_merge.py index 27e2b10dcbc..5b84eccca14 100644 --- a/xarray/tests/test_merge.py +++ b/xarray/tests/test_merge.py @@ -418,3 +418,34 @@ def test_merge_dataarray(self): da = xr.DataArray(data=1, name="b") assert_identical(ds.merge(da), xr.merg...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9e59fdc5b35..9c16fb74a7b 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,8 @@ v0.17.1 (unreleased)\n \n N...
0018
37522e991a32ee3c0ad1a5ff8afe8e3eb1885550
[ "xarray/tests/test_merge.py::TestMergeMethod::test_merge_no_conflicts", "xarray/tests/test_merge.py::TestMergeMethod::test_merge_fill_value[fill_value0]", "xarray/tests/test_merge.py::TestMergeFunction::test_merge_arrays_attrs[override-var1_attrs7-var2_attrs7-expected_attrs7-False]", "xarray/tests/test_merge....
[ "xarray/tests/test_merge.py::TestMergeMethod::test_merge_combine_attrs[identical-attrs14-attrs24-None-True]", "xarray/tests/test_merge.py::TestMergeMethod::test_merge_combine_attrs[override-attrs12-attrs22-expected_attrs2-False]", "xarray/tests/test_merge.py::TestMergeMethod::test_merge_combine_attrs[no_conflic...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9e59fdc5b35..9c16fb74a7b 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,6 +22,8 @@ v0.17.1 (unreleased)\n \n N...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9e59fdc5b35..9c16fb74a7b 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,6 +22,8 @@ v0.17.1 (unreleased) New Features ~~~~~~~~~~~~ +- Allow passing ``combine_attrs`` to :py:meth:`Dataset.merge` (:pull:`<PRID>`). + By `<NAME>`_. - Support for `...
pydata/xarray
pydata__xarray-5247
https://github.com/pydata/xarray/pull/5247
diff --git a/doc/api.rst b/doc/api.rst index da78307a349..7c01a8af0f1 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -683,6 +683,7 @@ Dataset methods open_rasterio open_zarr Dataset.to_netcdf + Dataset.to_pandas Dataset.to_zarr save_mfdataset Dataset.to_array diff --git a/doc/whats-new.rst b/do...
diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index b1269369f21..1e526a3787f 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -1768,6 +1768,27 @@ def test_broadcast_like(self): assert_identical(original2.broadcast_like(original1), expected2) + de...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex da78307a349..7c01a8af0f1 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -683,6 +683,7 @@ Dataset methods\n open_rasterio\n open_zarr\n Dataset.to_n...
0018
1c198a191127c601d091213c4b3292a8bb3054e1
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-1-2-False-1]", "xarray/tests/test_dataset...
[ "xarray/tests/test_dataset.py::TestDataset::test_to_pandas" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex da78307a349..7c01a8af0f1 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -683,6 +683,7 @@ Dataset methods\n open_rasterio\n open_zarr\n Dataset.to_n...
diff --git a/doc/api.rst b/doc/api.rst index da78307a349..7c01a8af0f1 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -683,6 +683,7 @@ Dataset methods open_rasterio open_zarr Dataset.to_netcdf + Dataset.to_pandas Dataset.to_zarr save_mfdataset Dataset.to_array diff --git a/doc/whats-new.rst b/d...
pydata/xarray
pydata__xarray-5216
https://github.com/pydata/xarray/pull/5216
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index bf0a77be7a8..2cffe076792 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -23,6 +23,8 @@ v0.17.1 (unreleased) New Features ~~~~~~~~~~~~ +- Allow passing multiple arrays to :py:meth:`Dataset.__setitem__` (:pull:`5216`). + By `Giacomo Caria <https://g...
diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index af44e5e829e..b1269369f21 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -3495,6 +3495,40 @@ def test_setitem_str_dtype(self, dtype): assert np.issubdtype(ds.x.dtype, dtype) + def test_setitem_...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex bf0a77be7a8..2cffe076792 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -23,6 +23,8 @@ v0.17.1 (unreleased)\n New ...
0018
26d6ded95a15b563acd7c984e1082457e8bd9561
[ "xarray/tests/test_dataset.py::TestDataset::test_update", "xarray/tests/test_dataset.py::TestDataset::test_align_indexes", "xarray/tests/test_dataset.py::TestDataset::test_dataset_retains_period_index_on_transpose", "xarray/tests/test_dataset.py::TestDataset::test_constructor_pandas_sequence", "xarray/tests...
[ "xarray/tests/test_dataset.py::TestDataset::test_setitem_using_list_errors[var_list0-data0-Different lengths]", "xarray/tests/test_dataset.py::TestDataset::test_setitem_using_list_errors[var_list2-data2-assign single DataArray]", "xarray/tests/test_dataset.py::TestDataset::test_setitem_using_list", "xarray/te...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex bf0a77be7a8..2cffe076792 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -23,6 +23,8 @@ v0.17.1 (unreleased)\n New ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index bf0a77be7a8..2cffe076792 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -23,6 +23,8 @@ v0.17.1 (unreleased) New Features ~~~~~~~~~~~~ +- Allow passing multiple arrays to :py:meth:`Dataset.__setitem__` (:pull:`<PRID>`). + By `<NAME>`_. - Add 'cumu...
pydata/xarray
pydata__xarray-4902
https://github.com/pydata/xarray/pull/4902
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index ed1d9c0f079..59857c67bf7 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,7 +22,9 @@ v0.17.1 (unreleased) New Features ~~~~~~~~~~~~ - +- apply ``combine_attrs`` on data variables and coordinate variables when concatenating + and merging datasets...
diff --git a/xarray/tests/test_combine.py b/xarray/tests/test_combine.py index ebc8ab73604..3b6aaec60f2 100644 --- a/xarray/tests/test_combine.py +++ b/xarray/tests/test_combine.py @@ -5,7 +5,14 @@ import numpy as np import pytest -from xarray import DataArray, Dataset, combine_by_coords, combine_nested, concat +fr...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex ed1d9c0f079..59857c67bf7 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,7 +22,9 @@ v0.17.1 (unreleased)\n \n N...
0018
7432032db8145d4aed7c01e84870e02ae3838f8a
[ "xarray/tests/test_combine.py::TestNewTileIDs::test_new_tile_id[old_id2-new_id2]", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_do_not_promote", "xarray/tests/test_dataset.py::TestDataset::test_update", "xarray/tests/test_dataset.py::TestDataset::test_align_indexes", "xarray/tests/test_datas...
[ "xarray/tests/test_combine.py::TestCombineAuto::test_combine_nested_combine_attrs_variables[no_conflicts-attrs13-attrs23-expected_attrs3-True]", "xarray/tests/test_combine.py::TestCombineAuto::test_combine_nested_combine_attrs_variables[override-attrs17-attrs27-expected_attrs7-False]", "xarray/tests/test_combin...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex ed1d9c0f079..59857c67bf7 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -22,7 +22,9 @@ v0.17.1 (unreleased)\n \n N...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index ed1d9c0f079..59857c67bf7 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -22,7 +22,9 @@ v0.17.1 (unreleased) New Features ~~~~~~~~~~~~ - +- apply ``combine_attrs`` on data variables and coordinate variables when concatenating + and merging datasets...
pydata/xarray
pydata__xarray-5586
https://github.com/pydata/xarray/pull/5586
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index cd65e0dbe35..02e3e1ac824 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v0.18.3 (unreleased) New Features ~~~~~~~~~~~~ +- Allow passing argument ``missing_dims`` to :py:meth:`Variable.transpose` and :py:meth:`Dataset.transpose` + (:...
diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index b08ce9ea730..317602c889f 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -5195,10 +5195,19 @@ def test_dataset_transpose(self): expected_dims = tuple(d for d in new_order if d in ds[k].dims) ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex cd65e0dbe35..02e3e1ac824 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,9 @@ v0.18.3 (unreleased)\n \n N...
0019
67d1955cc1d6941edd12a325090da7e4d029b84c
[ "xarray/tests/test_dataset.py::test_rolling_reduce[numpy-median-3-3-False-2]", "xarray/tests/test_dataset.py::TestDataset::test_reduce_cumsum_test_dims[cumprod-dim3-expected2]", "xarray/tests/test_dataset.py::test_rolling_reduce[numpy-std-3-1-False-1]", "xarray/tests/test_dataset.py::TestDataset::test_update"...
[ "xarray/tests/test_dataset.py::TestDataset::test_dataset_transpose", "xarray/tests/test_variable.py::TestVariable::test_transpose" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex cd65e0dbe35..02e3e1ac824 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -21,6 +21,9 @@ v0.18.3 (unreleased)\n \n N...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index cd65e0dbe35..02e3e1ac824 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,9 @@ v0.18.3 (unreleased) New Features ~~~~~~~~~~~~ +- Allow passing argument ``missing_dims`` to :py:meth:`Variable.transpose` and :py:meth:`Dataset.transpose` + (:...
pydata/xarray
pydata__xarray-4622
https://github.com/pydata/xarray/pull/4622
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 1df9cc0a1f9..15d4759e9e0 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -324,14 +324,21 @@ core.accessor_dt.TimedeltaAccessor.seconds core.accessor_str.StringAccessor.capitalize + core.accessor_str.StringAccessor.casefold + core.acces...
diff --git a/xarray/tests/test_accessor_str.py b/xarray/tests/test_accessor_str.py index e0cbdb7377a..519ca762c41 100644 --- a/xarray/tests/test_accessor_str.py +++ b/xarray/tests/test_accessor_str.py @@ -44,7 +44,7 @@ import xarray as xr -from . import assert_equal, requires_dask +from . import assert_equal, asse...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 1df9cc0a1f9..15d4759e9e0 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -324,14 +324,21 @@\n core.access...
0018
c195c2636a94b8136050d2c79c8e357740db66ea
[ "xarray/tests/test_accessor_str.py::test_strip_lstrip_rstrip[bytes_]", "xarray/tests/test_accessor_str.py::test_get_default[bytes_]", "xarray/tests/test_accessor_str.py::test_slice_replace[str_]", "xarray/tests/test_accessor_str.py::test_find[bytes_]", "xarray/tests/test_accessor_str.py::test_len[str_]", ...
[ "xarray/tests/test_accessor_str.py::test_findall_single_multi_case[str_]", "xarray/tests/test_accessor_str.py::test_splitters_empty_str[bytes_]", "xarray/tests/test_accessor_str.py::test_zfill_broadcast[bytes_]", "xarray/tests/test_accessor_str.py::test_strip_lstrip_rstrip_broadcast[str_]", "xarray/tests/te...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "error_msg", "name": "Case cannot be set when pat is a compiled regex." }, { "type": "field", "...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 1df9cc0a1f9..15d4759e9e0 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -324,14 +324,21 @@\n core.access...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 1df9cc0a1f9..15d4759e9e0 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -324,14 +324,21 @@ core.accessor_dt.TimedeltaAccessor.seconds core.accessor_str.StringAccessor.capitalize + core.accessor_str.StringAccessor.casefold + core.acces...
pydata/xarray
pydata__xarray-4994
https://github.com/pydata/xarray/pull/4994
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 15d4759e9e0..f5e9348d4eb 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -287,6 +287,7 @@ core.accessor_dt.DatetimeAccessor.floor core.accessor_dt.DatetimeAccessor.round core.accessor_dt.DatetimeAccessor.strftime + core.accessor_dt.Dat...
diff --git a/xarray/tests/test_accessor_dt.py b/xarray/tests/test_accessor_dt.py index 984bfc763bc..adfa2bed33b 100644 --- a/xarray/tests/test_accessor_dt.py +++ b/xarray/tests/test_accessor_dt.py @@ -59,6 +59,8 @@ def setup(self): "weekday", "dayofyear", "quarter", + "...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 15d4759e9e0..f5e9348d4eb 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -287,6 +287,7 @@\n core.accessor...
0018
c7c4aae1fa2bcb9417e498e7dcb4acc0792c402d
[ "xarray/tests/test_accessor_dt.py::test_dask_field_access_1d[proleptic_gregorian-month]", "xarray/tests/test_accessor_dt.py::test_cftime_round_accessor[all_leap-True]", "xarray/tests/test_accessor_dt.py::test_dask_field_access[gregorian-dayofyear]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::tes...
[ "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_dask_field_access[date]", "xarray/tests/test_accessor_dt.py::test_date_cftime[365_day]", "xarray/tests/test_accessor_dt.py::test_date_cftime[proleptic_gregorian]", "xarray/tests/test_accessor_dt.py::test_date_cftime[360_day]", "xarray/tests/test_...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex 15d4759e9e0..f5e9348d4eb 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -287,6 +287,7 @@\n core.accessor...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index 15d4759e9e0..f5e9348d4eb 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -287,6 +287,7 @@ core.accessor_dt.DatetimeAccessor.floor core.accessor_dt.DatetimeAccessor.round core.accessor_dt.DatetimeAccessor.strftime + core.accessor_dt.Dat...
pydata/xarray
pydata__xarray-5126
https://github.com/pydata/xarray/pull/5126
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 403227b1b6b..e22805b0342 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -82,6 +82,13 @@ New Features - Disable the `cfgrib` backend if the `eccodes` library is not installed (:pull:`5083`). By `Baudouin Raoult <https://github.com/b8raoult>`_. - Added...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py index 1098587dca7..1e2a968debe 100644 --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -391,6 +391,17 @@ def test_array_repr(self): assert actual == expected + with xr.set_options(display_exp...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 403227b1b6b..e22805b0342 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -82,6 +82,13 @@ New Features\n - Disable t...
0018
6bfbaede69eb73810cb63672a8161bd1fc147594
[ "xarray/tests/test_formatting_html.py::test_repr_of_multiindex", "xarray/tests/test_formatting.py::TestFormatting::test_diff_attrs_repr_with_array", "xarray/tests/test_formatting_html.py::test_format_dims_unsafe_dim_name", "xarray/tests/test_formatting.py::TestFormatting::test_format_timestamp_out_of_bounds",...
[ "xarray/tests/test_formatting.py::test__mapping_repr[35-40-30]", "xarray/tests/test_formatting.py::test__mapping_repr[11-40-30]", "xarray/tests/test_formatting.py::TestFormatting::test_array_repr", "xarray/tests/test_formatting.py::test__mapping_repr[50-40-30]", "xarray/tests/test_formatting.py::test__mappi...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 403227b1b6b..e22805b0342 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -82,6 +82,13 @@ New Features\n - Disable t...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 403227b1b6b..e22805b0342 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -82,6 +82,13 @@ New Features - Disable the `cfgrib` backend if the `eccodes` library is not installed (:pull:`<PRID>`). By `<NAME>`_. - Added :py:meth:`DataArray.curvefit` and :p...
pydata/xarray
pydata__xarray-4984
https://github.com/pydata/xarray/pull/4984
diff --git a/ci/requirements/environment.yml b/ci/requirements/environment.yml index 36147c64c03..57498fa5700 100644 --- a/ci/requirements/environment.yml +++ b/ci/requirements/environment.yml @@ -22,6 +22,7 @@ dependencies: - nc-time-axis - netcdf4 - numba + - numexpr - numpy - pandas - pint diff --...
diff --git a/xarray/tests/__init__.py b/xarray/tests/__init__.py index 4b47e1d2c7e..aebcb0f2b8d 100644 --- a/xarray/tests/__init__.py +++ b/xarray/tests/__init__.py @@ -83,6 +83,7 @@ def LooseVersion(vstring): has_cartopy, requires_cartopy = _importorskip("cartopy") # Need Pint 0.15 for __dask_tokenize__ tests for Qu...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 7e13c2feefe..4af9bb01208 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -138,6 +138,7 @@ Indexing\n Dataset.set_index\n Dataset.reset_index\n Datas...
0018
daea5df23209e8b7148067fd6272e2eed9f40bf1
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-2-3-True-2]", "xarray/tests/test_accessor...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_query[numpy-None-python]", "xarray/tests/test_dataset.py::TestDataset::test_query[numpy-python-python]", "xarray/tests/test_dataarray.py::TestDataArray::test_query[numpy-python-pandas]", "xarray/tests/test_dataarray.py::TestDataArray::test_query[numpy-None-...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "parser" }, { "type": "field", "name": "parser" }, { "type": "fi...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 7e13c2feefe..4af9bb01208 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -138,6 +138,7 @@ Indexing\n Dataset.set_index\n Dataset.reset_index\n Datas...
diff --git a/doc/api.rst b/doc/api.rst index 7e13c2feefe..4af9bb01208 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -138,6 +138,7 @@ Indexing Dataset.set_index Dataset.reset_index Dataset.reorder_levels + Dataset.query Missing value handling ---------------------- @@ -321,6 +322,7 @@ Indexing Data...
pydata/xarray
pydata__xarray-4849
https://github.com/pydata/xarray/pull/4849
diff --git a/doc/api.rst b/doc/api.rst index a140d9e2b81..6288ce01803 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -179,6 +179,7 @@ Computation Dataset.integrate Dataset.map_blocks Dataset.polyfit + Dataset.curvefit **Aggregation**: :py:attr:`~Dataset.all` @@ -375,7 +376,7 @@ Computation DataArra...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 20e357543d6..c18f9acfca1 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -4690,6 +4690,60 @@ def test_query(self, backend, engine, parser): with pytest.raises(UndefinedVariableError): ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex a140d9e2b81..6288ce01803 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -179,6 +179,7 @@ Computation\n Dataset.integrate\n Dataset.map_blocks\n Dat...
0018
ba47216ec1cd2f170fd85a10f232be7bf3ecc578
[ "xarray/tests/test_dataarray.py::test_rolling_reduce[mean-4-None-True-2]", "xarray/tests/test_dataarray.py::TestDataArray::test_groupby_multidim_map", "xarray/tests/test_dataarray.py::TestDataArray::test_coord_coords", "xarray/tests/test_dataarray.py::test_rolling_reduce[max-2-1-False-2]", "xarray/tests/tes...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_curvefit_helpers" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "func_args" }, { "type": "field", "name": "param_defaults" }, { ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex a140d9e2b81..6288ce01803 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -179,6 +179,7 @@ Computation\n Dataset.integrate\n Dataset.map_blocks\n Dat...
diff --git a/doc/api.rst b/doc/api.rst index a140d9e2b81..6288ce01803 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -179,6 +179,7 @@ Computation Dataset.integrate Dataset.map_blocks Dataset.polyfit + Dataset.curvefit **Aggregation**: :py:attr:`~Dataset.all` @@ -375,7 +376,7 @@ Computation DataArra...
pydata/xarray
pydata__xarray-4827
https://github.com/pydata/xarray/pull/4827
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 4300f1b188a..b59ed6363dc 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -60,6 +60,10 @@ New Features By `Maximilian Roos <https://github.com/max-sixty>`_. - Performance improvement when constructing DataArrays. Significantly speeds up repr for Da...
diff --git a/xarray/tests/test_combine.py b/xarray/tests/test_combine.py index 109b78f05a9..522b98cf864 100644 --- a/xarray/tests/test_combine.py +++ b/xarray/tests/test_combine.py @@ -732,6 +732,17 @@ def test_combine_coords_combine_attrs_identical(self): objs, concat_dim="x", join="outer", combine_at...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 4300f1b188a..b59ed6363dc 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -60,6 +60,10 @@ New Features\n By `Maxim...
0017
f98d6f065db2ad1f8911cb22aa04b4e0210ecee4
[ "xarray/tests/test_merge.py::TestMergeMethod::test_merge_no_conflicts", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_combine_attrs_kwarg[no_conflicts-var1_attrs2-var2_attrs2-expected_attrs2-False]", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_combine_attrs_kwarg[no_conflicts-var...
[ "xarray/tests/test_merge.py::TestMergeFunction::test_merge_attrs_drop_conflicts", "xarray/tests/test_merge.py::TestMergeFunction::test_merge_arrays_attrs[drop_conflicts-var1_attrs9-var2_attrs9-expected_attrs9-False]", "xarray/tests/test_merge.py::TestMergeFunction::test_merge_arrays_attrs[drop_conflicts-var1_at...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 4300f1b188a..b59ed6363dc 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -60,6 +60,10 @@ New Features\n By `<NAME...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 4300f1b188a..b59ed6363dc 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -60,6 +60,10 @@ New Features By `<NAME>`_. - Performance improvement when constructing DataArrays. Significantly speeds up repr for Datasets with large number of variables. +...
pydata/xarray
pydata__xarray-5174
https://github.com/pydata/xarray/pull/5174
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index ebbfc87b4d3..04fd567941f 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -99,6 +99,9 @@ New Features :py:func:`xarray.open_mfdataset` when `combine='by_coords'` is specified. Fixes (:issue:`5230`). By `Tom Nicholas <https://github.com/TomNichol...
diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py index 032e81737e1..8b875662ab8 100644 --- a/xarray/tests/test_dask.py +++ b/xarray/tests/test_dask.py @@ -110,8 +110,39 @@ def test_indexing(self): self.assertLazyAndIdentical(u[0], v[0]) self.assertLazyAndIdentical(u[:1], v[:1]) ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex ebbfc87b4d3..04fd567941f 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -99,6 +99,9 @@ New Features\n :py:func:`...
0018
01b6cc76c6b7c77f2f93fc1766eb76f851529b5d
[ "xarray/tests/test_dask.py::test_token_identical[obj0-<lambda>1]", "xarray/tests/test_dask.py::test_token_changes_when_buffer_changes[obj0]", "xarray/tests/test_dask.py::test_unify_chunks_shallow_copy[<lambda>0-obj1]", "xarray/tests/test_dask.py::TestVariable::test_compute", "xarray/tests/test_dask.py::test...
[ "xarray/tests/test_dask.py::TestVariable::test_indexing" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex ebbfc87b4d3..04fd567941f 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -99,6 +99,9 @@ New Features\n :py:func:`...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index ebbfc87b4d3..04fd567941f 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -99,6 +99,9 @@ New Features :py:func:`xarray.open_mfdataset` when `combine='by_coords'` is specified. Fixes (:issue:`<PRID>`). By `<NAME>`_. +- Implement ``__setitem__`` f...
pydata/xarray
pydata__xarray-4758
https://github.com/pydata/xarray/pull/4758
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index f619284437b..ac326342115 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -52,6 +52,13 @@ Deprecations New Features ~~~~~~~~~~~~ +- Xarray now leverages updates as of cftime version 1.4.1, which enable exact I/O + roundtripping of ``cftime.datetime`...
diff --git a/xarray/tests/__init__.py b/xarray/tests/__init__.py index 7c18f1a8c8a..a7761aefa3d 100644 --- a/xarray/tests/__init__.py +++ b/xarray/tests/__init__.py @@ -68,6 +68,7 @@ def LooseVersion(vstring): has_pseudonetcdf, requires_pseudonetcdf = _importorskip("PseudoNetCDF") has_cftime, requires_cftime = _impor...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex f619284437b..ac326342115 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -52,6 +52,13 @@ Deprecations\n \n New Feat...
0017
46591d28d9fbbfc184aaf4075d330b1c8f070627
[ "xarray/tests/test_accessor_dt.py::test_cftime_round_accessor[all_leap-True]", "xarray/tests/test_coding_times.py::test_use_cftime_true[1500-standard]", "xarray/tests/test_coding_times.py::test_cf_datetime[num_dates50-days since 1000-01-01-standard]", "xarray/tests/test_coding_times.py::test_decode_ambiguous_...
[ "xarray/tests/test_cftime_offsets.py::test_rollforward[360_day-<MonthBegin: n=2>-(1, 3, 2)-(1, 4)]", "xarray/tests/test_cftime_offsets.py::test_add_year_end_onOffset[standard-(1, 1)-()-<YearEnd: n=1, month=2>-(1, 2)-()]", "xarray/tests/test_cftime_offsets.py::test_add_year_end[all_leap-(1, 1, 1)-<YearEnd: n=1, ...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "timedelta" }, { "type": "class", "name": "Millisecond" }, { "ty...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex f619284437b..ac326342115 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -52,6 +52,13 @@ Deprecations\n \n New Feat...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index f619284437b..ac326342115 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -52,6 +52,13 @@ Deprecations New Features ~~~~~~~~~~~~ +- Xarray now leverages updates as of cftime version 1.4.1, which enable exact I/O + roundtripping of ``cftime.datetime`...
pydata/xarray
pydata__xarray-4534
https://github.com/pydata/xarray/pull/4534
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index b10271b13f5..5d9a0263c35 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -298,6 +298,7 @@ core.accessor_dt.DatetimeAccessor.is_quarter_start core.accessor_dt.DatetimeAccessor.is_year_end core.accessor_dt.DatetimeAccessor.is_year_start + ...
diff --git a/xarray/tests/test_accessor_dt.py b/xarray/tests/test_accessor_dt.py index ae5b0b6d7cf..984bfc763bc 100644 --- a/xarray/tests/test_accessor_dt.py +++ b/xarray/tests/test_accessor_dt.py @@ -1,3 +1,5 @@ +from distutils.version import LooseVersion + import numpy as np import pandas as pd import pytest @@ -6...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex b10271b13f5..5d9a0263c35 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -298,6 +298,7 @@\n core.accessor...
0016
764ffc95af41602b7ba216bad4be438330c3dc45
[ "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_field_access[month]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_field_access[nanosecond]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_field_access[year]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccesso...
[ "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_isocalendar[week-week]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_isocalendar[year-year]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_field_access[week]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccess...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "distutils" }, { "type": "field", "name": "__version__" }, { "ty...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex b10271b13f5..5d9a0263c35 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -298,6 +298,7 @@\n core.accessor...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index b10271b13f5..5d9a0263c35 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -298,6 +298,7 @@ core.accessor_dt.DatetimeAccessor.is_quarter_start core.accessor_dt.DatetimeAccessor.is_year_end core.accessor_dt.DatetimeAccessor.is_year_start + ...
pydata/xarray
pydata__xarray-5568
https://github.com/pydata/xarray/pull/5568
diff --git a/doc/api.rst b/doc/api.rst index bb3a99bfbb0..0e34b13f9a5 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -686,6 +686,7 @@ Dataset methods open_zarr Dataset.to_netcdf Dataset.to_pandas + Dataset.as_numpy Dataset.to_zarr save_mfdataset Dataset.to_array @@ -716,6 +717,8 @@ DataArray me...
diff --git a/xarray/tests/__init__.py b/xarray/tests/__init__.py index 9029dc1c621..d757fb451cc 100644 --- a/xarray/tests/__init__.py +++ b/xarray/tests/__init__.py @@ -83,6 +83,7 @@ def LooseVersion(vstring): has_numbagg, requires_numbagg = _importorskip("numbagg") has_seaborn, requires_seaborn = _importorskip("seab...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex bb3a99bfbb0..0e34b13f9a5 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -686,6 +686,7 @@ Dataset methods\n open_zarr\n Dataset.to_netcdf\n Dataset....
0019
86ca67ed67dbf605b50c682fa374471c012a3e35
[ "xarray/tests/test_dataarray.py::test_drop_duplicates[last]", "xarray/tests/test_dataarray.py::test_rolling_reduce[dask-max-4-3-True-2]", "xarray/tests/test_accessor_dt.py::TestDatetimeAccessor::test_dask_field_access[quarter]", "xarray/tests/test_dataset.py::test_ndrolling_reduce[numpy-False-max-None-True-2]...
[ "xarray/tests/test_variable.py::TestNumpyCoercion::test_from_numpy[IndexVariable]", "xarray/tests/test_dataset.py::TestNumpyCoercion::test_from_dask", "xarray/tests/test_dataarray.py::TestNumpyCoercion::test_from_dask", "xarray/tests/test_dataset.py::TestNumpyCoercion::test_from_numpy", "xarray/tests/test_v...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "Quantity" } ] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex bb3a99bfbb0..0e34b13f9a5 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -686,6 +686,7 @@ Dataset methods\n open_zarr\n Dataset.to_netcdf\n Dataset....
diff --git a/doc/api.rst b/doc/api.rst index bb3a99bfbb0..0e34b13f9a5 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -686,6 +686,7 @@ Dataset methods open_zarr Dataset.to_netcdf Dataset.to_pandas + Dataset.as_numpy Dataset.to_zarr save_mfdataset Dataset.to_array @@ -716,6 +717,8 @@ DataArray me...
pydata/xarray
pydata__xarray-4819
https://github.com/pydata/xarray/pull/4819
diff --git a/doc/api.rst b/doc/api.rst index ceab7dcc976..9cb02441d37 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -126,6 +126,7 @@ Indexing Dataset.isel Dataset.sel Dataset.drop_sel + Dataset.drop_isel Dataset.head Dataset.tail Dataset.thin @@ -307,6 +308,7 @@ Indexing DataArray.isel ...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 3ead427e22e..afb234029dc 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -2327,6 +2327,12 @@ def test_drop_index_labels(self): with pytest.warns(DeprecationWarning): arr.drop([0, ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex ceab7dcc976..9cb02441d37 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -126,6 +126,7 @@ Indexing\n Dataset.isel\n Dataset.sel\n Dataset.drop_sel\n...
0017
a2b1712afd957deaf189c9b1a04e469596d853c9
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-2-3-True-2]", "xarray/tests/test_dataset....
[ "xarray/tests/test_dataset.py::TestDataset::test_drop_index_labels", "xarray/tests/test_dataset.py::TestDataset::test_drop_labels_by_position", "xarray/tests/test_dataarray.py::TestDataArray::test_drop_index_positions" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex ceab7dcc976..9cb02441d37 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -126,6 +126,7 @@ Indexing\n Dataset.isel\n Dataset.sel\n Dataset.drop_sel\n...
diff --git a/doc/api.rst b/doc/api.rst index ceab7dcc976..9cb02441d37 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -126,6 +126,7 @@ Indexing Dataset.isel Dataset.sel Dataset.drop_sel + Dataset.drop_isel Dataset.head Dataset.tail Dataset.thin @@ -307,6 +308,7 @@ Indexing DataArray.isel ...
pydata/xarray
pydata__xarray-4939
https://github.com/pydata/xarray/pull/4939
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index e5492ec73a4..14d79039a3a 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -47,6 +47,7 @@ core.rolling.DatasetCoarsen.median core.rolling.DatasetCoarsen.min core.rolling.DatasetCoarsen.prod + core.rolling.DatasetCoarsen.reduce core.r...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 68e31cd123a..d1d36dd93b3 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -6382,6 +6382,22 @@ def test_coarsen_keep_attrs(): xr.testing.assert_identical(da, da2) +@pytest.mark.parametrize("da",...
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex e5492ec73a4..14d79039a3a 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -47,6 +47,7 @@\n core.rolling.Da...
0017
eb7e112d45a9edebd8e5fb4f873e3e6adb18824a
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-2-3-True-2]", "xarray/tests/test_dataset....
[ "xarray/tests/test_dataarray.py::test_coarsen_reduce[std-4-2]", "xarray/tests/test_dataset.py::test_coarsen_reduce[max-1-1]", "xarray/tests/test_dataset.py::test_coarsen_reduce[mean-3-1]", "xarray/tests/test_dataset.py::test_coarsen_reduce[sum-2-2]", "xarray/tests/test_dataarray.py::test_coarsen_reduce[mean...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api-hidden.rst", "old_path": "a/doc/api-hidden.rst", "new_path": "b/doc/api-hidden.rst", "metadata": "diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst\nindex e5492ec73a4..14d79039a3a 100644\n--- a/doc/api-hidden.rst\n+++ b/doc/api-hidden.rst\n@@ -47,6 +47,7 @@\n core.rolling.Da...
diff --git a/doc/api-hidden.rst b/doc/api-hidden.rst index e5492ec73a4..14d79039a3a 100644 --- a/doc/api-hidden.rst +++ b/doc/api-hidden.rst @@ -47,6 +47,7 @@ core.rolling.DatasetCoarsen.median core.rolling.DatasetCoarsen.min core.rolling.DatasetCoarsen.prod + core.rolling.DatasetCoarsen.reduce core.r...
pydata/xarray
pydata__xarray-4356
https://github.com/pydata/xarray/pull/4356
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2652af5d9fd..901e2f7f281 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -28,8 +28,11 @@ New Features - Support multiple outputs in :py:func:`xarray.apply_ufunc` when using ``dask='parallelized'``. (:issue:`1815`, :pull:`4060`) By `Kai Mühlbauer <ht...
diff --git a/xarray/tests/test_duck_array_ops.py b/xarray/tests/test_duck_array_ops.py index b542dad998b..6db0b6eef87 100644 --- a/xarray/tests/test_duck_array_ops.py +++ b/xarray/tests/test_duck_array_ops.py @@ -595,6 +595,24 @@ def test_min_count(dim_num, dtype, dask, func, aggdim): assert_dask_array(actual, das...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 2652af5d9fd..901e2f7f281 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -28,8 +28,11 @@ New Features\n - Support m...
0016
e05fddea852d08fc0845f954b79deb9e9f9ff883
[ "xarray/tests/test_duck_array_ops.py::test_reduce[None-False-var-False-float-2]", "xarray/tests/test_duck_array_ops.py::test_reduce[x-True-max-False-bool_-2]", "xarray/tests/test_duck_array_ops.py::TestArrayNotNullEquiv::test_equal[arr10-arr20]", "xarray/tests/test_duck_array_ops.py::test_reduce[x-True-sum-Fa...
[ "xarray/tests/test_duck_array_ops.py::test_min_count_nd[prod-False-int]", "xarray/tests/test_duck_array_ops.py::test_min_count_nd[sum-False-float]", "xarray/tests/test_duck_array_ops.py::test_min_count_nd[prod-False-float32]", "xarray/tests/test_duck_array_ops.py::test_min_count_nd[prod-False-bool_]", "xarr...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 2652af5d9fd..901e2f7f281 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -28,8 +28,11 @@ New Features\n - Support m...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2652af5d9fd..901e2f7f281 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -28,8 +28,11 @@ New Features - Support multiple outputs in :py:func:`xarray.apply_ufunc` when using ``dask='parallelized'``. (:issue:`<PRID>`, :pull:`<PRID>`) By `<NAME>`_. - ...
pydata/xarray
pydata__xarray-4333
https://github.com/pydata/xarray/pull/4333
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2023b79dbb5..ee26842ba95 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -45,6 +45,10 @@ New Features of :py:class:`DataArray` and :py:class:`Dataset` objects and document the new method in :doc:`internals`. (:pull:`4248`). By `Justus Magin <ht...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index f10404d71d4..84455d320cb 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -3463,15 +3463,18 @@ def test_to_pandas(self): def test_to_dataframe(self): # regression test for #260 - ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 2023b79dbb5..ee26842ba95 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -45,6 +45,10 @@ New Features\n of :py:cl...
0016
8fab5a2449d8368251f96fc2b9d1eaa3040894e6
[ "xarray/tests/test_dataset.py::test_rolling_reduce[max-1-None-False-1]", "xarray/tests/test_dataset.py::TestDataset::test_to_and_from_empty_dataframe", "xarray/tests/test_dataset.py::test_rolling_wrapped_bottleneck[1-z2-None-None-var]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-3-1-False-2]", "...
[ "xarray/tests/test_dataset.py::TestDataset::test_to_and_from_dataframe" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 2023b79dbb5..ee26842ba95 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -45,6 +45,10 @@ New Features\n of :py:cl...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 2023b79dbb5..ee26842ba95 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -45,6 +45,10 @@ New Features of :py:class:`DataArray` and :py:class:`Dataset` objects and document the new method in :doc:`internals`. (:pull:`<PRID>`). By `<NAME>`_. +- :...
pydata/xarray
pydata__xarray-4343
https://github.com/pydata/xarray/pull/4343
diff --git a/doc/weather-climate.rst b/doc/weather-climate.rst index f03dfd14c73..9a92a1842d3 100644 --- a/doc/weather-climate.rst +++ b/doc/weather-climate.rst @@ -97,14 +97,25 @@ using the same formatting as the standard `datetime.strftime`_ convention . For data indexed by a :py:class:`~xarray.CFTimeIndex` xarray...
diff --git a/xarray/tests/test_cftime_offsets.py b/xarray/tests/test_cftime_offsets.py index 343e059f53c..3efcf8039c6 100644 --- a/xarray/tests/test_cftime_offsets.py +++ b/xarray/tests/test_cftime_offsets.py @@ -970,6 +970,15 @@ def test_rollback(calendar, offset, initial_date_args, partial_expected_date_arg ...
[ { "path": "doc/weather-climate.rst", "old_path": "a/doc/weather-climate.rst", "new_path": "b/doc/weather-climate.rst", "metadata": "diff --git a/doc/weather-climate.rst b/doc/weather-climate.rst\nindex f03dfd14c73..9a92a1842d3 100644\n--- a/doc/weather-climate.rst\n+++ b/doc/weather-climate.rst\n@@ ...
0016
e6c111355137a123488c8dad48d473b32e9e5366
[]
[ "xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[month]", "xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[minute]", "xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[hour-dash]", "xarray/tests/test_cftimeindex.py::test_parse_iso8601_like[second-dash]", "xarray/tests/test_cftime...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "function", "name": "parse_iso8601_like" }, { "type": "field", "name": "parse_iso8601_like" ...
[ { "path": "doc/weather-climate.rst", "old_path": "a/doc/weather-climate.rst", "new_path": "b/doc/weather-climate.rst", "metadata": "diff --git a/doc/weather-climate.rst b/doc/weather-climate.rst\nindex f03dfd14c73..9a92a1842d3 100644\n--- a/doc/weather-climate.rst\n+++ b/doc/weather-climate.rst\n@@ ...
diff --git a/doc/weather-climate.rst b/doc/weather-climate.rst index f03dfd14c73..9a92a1842d3 100644 --- a/doc/weather-climate.rst +++ b/doc/weather-climate.rst @@ -97,14 +97,25 @@ using the same formatting as the standard `datetime.strftime`_ convention . For data indexed by a :py:class:`~xarray.CFTimeIndex` xarray...
pydata/xarray
pydata__xarray-5184
https://github.com/pydata/xarray/pull/5184
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 87834d2e676..dd1db41fe23 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -71,6 +71,10 @@ New Features By `Richard Kleijn <https://github.com/rhkleijn>`_ . - Add a ``combine_attrs`` parameter to :py:func:`open_mfdataset` (:pull:`4971`). By `Justus...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index c18f9acfca1..accb601fc1b 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -6434,28 +6434,43 @@ def test_idxminmax_dask(self, op, ndim): assert_equal(getattr(ar0_dsk, op)(dim="x"), getattr(ar0_r...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 87834d2e676..dd1db41fe23 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -71,6 +71,10 @@ New Features\n By `Richa...
0018
e0358e586079c12525ce60c4a51b591dc280713b
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataarray.py::test_rolling_reduce[dask-max-4-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests/test_d...
[ "xarray/tests/test_dataset.py::test_clip[1]", "xarray/tests/test_dataarray.py::test_clip[1-dask]", "xarray/tests/test_variable.py::test_clip", "xarray/tests/test_dataarray.py::test_clip[1-numpy]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "min" } ] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 87834d2e676..dd1db41fe23 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -71,6 +71,10 @@ New Features\n By `<NAME...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 87834d2e676..dd1db41fe23 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -71,6 +71,10 @@ New Features By `<NAME>`_ . - Add a ``combine_attrs`` parameter to :py:func:`open_mfdataset` (:pull:`<PRID>`). By `<NAME>`_. +- Enable passing arrays with a ...
pydata/xarray
pydata__xarray-4219
https://github.com/pydata/xarray/pull/4219
diff --git a/doc/computation.rst b/doc/computation.rst index 3660aed93ed..474c3905981 100644 --- a/doc/computation.rst +++ b/doc/computation.rst @@ -188,9 +188,16 @@ a value when aggregating: r = arr.rolling(y=3, center=True, min_periods=2) r.mean() +From version 0.17, xarray supports multidimensional rolli...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index e0da3f1527f..7ccf1eb14bc 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -6193,8 +6193,6 @@ def test_rolling_properties(da): assert rolling_obj.obj.get_axis_num("time") == 1 # catching inva...
[ { "path": "doc/computation.rst", "old_path": "a/doc/computation.rst", "new_path": "b/doc/computation.rst", "metadata": "diff --git a/doc/computation.rst b/doc/computation.rst\nindex 3660aed93ed..474c3905981 100644\n--- a/doc/computation.rst\n+++ b/doc/computation.rst\n@@ -188,9 +188,16 @@ a value wh...
0016
e04e21d6160f43bc44e999b6f54f9fe4682f9b81
[ "xarray/tests/test_dataset.py::TestDataset::test_update", "xarray/tests/test_dataset.py::TestDataset::test_align_indexes", "xarray/tests/test_dataset.py::TestDataset::test_dataset_retains_period_index_on_transpose", "xarray/tests/test_dataset.py::TestDataset::test_constructor_pandas_sequence", "xarray/tests...
[ "xarray/tests/test_dataset.py::test_ndrolling_construct[True-0.0-False]", "xarray/tests/test_dataset.py::test_ndrolling_reduce[False-sum-None-True-2]", "xarray/tests/test_dataset.py::test_ndrolling_reduce[True-max-None-False-2]", "xarray/tests/test_nputils.py::test_nd_rolling[axis0-center1]", "xarray/tests/...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "zip" }, { "type": "field", "name": "ax" }, { "type": "field", ...
[ { "path": "doc/computation.rst", "old_path": "a/doc/computation.rst", "new_path": "b/doc/computation.rst", "metadata": "diff --git a/doc/computation.rst b/doc/computation.rst\nindex 3660aed93ed..474c3905981 100644\n--- a/doc/computation.rst\n+++ b/doc/computation.rst\n@@ -188,9 +188,16 @@ a value wh...
diff --git a/doc/computation.rst b/doc/computation.rst index 3660aed93ed..474c3905981 100644 --- a/doc/computation.rst +++ b/doc/computation.rst @@ -188,9 +188,16 @@ a value when aggregating: r = arr.rolling(y=3, center=True, min_periods=2) r.mean() +From version 0.17, xarray supports multidimensional rolli...
pydata/xarray
pydata__xarray-4248
https://github.com/pydata/xarray/pull/4248
diff --git a/doc/internals.rst b/doc/internals.rst index 46c117e312b..b158f12ac6d 100644 --- a/doc/internals.rst +++ b/doc/internals.rst @@ -42,6 +42,38 @@ xarray objects via the (readonly) :py:attr:`Dataset.variables <xarray.Dataset.variables>` and :py:attr:`DataArray.variable <xarray.DataArray.variable>` attributes...
diff --git a/xarray/tests/test_formatting.py b/xarray/tests/test_formatting.py index 82de8080c80..1cc91266421 100644 --- a/xarray/tests/test_formatting.py +++ b/xarray/tests/test_formatting.py @@ -7,6 +7,7 @@ import xarray as xr from xarray.core import formatting +from xarray.core.npcompat import IS_NEP18_ACTIVE ...
[ { "path": "doc/internals.rst", "old_path": "a/doc/internals.rst", "new_path": "b/doc/internals.rst", "metadata": "diff --git a/doc/internals.rst b/doc/internals.rst\nindex 46c117e312b..b158f12ac6d 100644\n--- a/doc/internals.rst\n+++ b/doc/internals.rst\n@@ -42,6 +42,38 @@ xarray objects via the (re...
0016
98dc1f4ea18738492e074e9e51ddfed5cd30ab94
[ "xarray/tests/test_formatting.py::TestFormatting::test_diff_attrs_repr_with_array", "xarray/tests/test_formatting.py::TestFormatting::test_format_timestamp_out_of_bounds", "xarray/tests/test_formatting.py::test_large_array_repr_length", "xarray/tests/test_formatting.py::test_short_numpy_repr", "xarray/tests...
[ "xarray/tests/test_formatting.py::test_inline_variable_array_repr_custom_repr" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/internals.rst", "old_path": "a/doc/internals.rst", "new_path": "b/doc/internals.rst", "metadata": "diff --git a/doc/internals.rst b/doc/internals.rst\nindex 46c117e312b..b158f12ac6d 100644\n--- a/doc/internals.rst\n+++ b/doc/internals.rst\n@@ -42,6 +42,38 @@ xarray objects via the (re...
diff --git a/doc/internals.rst b/doc/internals.rst index 46c117e312b..b158f12ac6d 100644 --- a/doc/internals.rst +++ b/doc/internals.rst @@ -42,6 +42,38 @@ xarray objects via the (readonly) :py:attr:`Dataset.variables <xarray.Dataset.variables>` and :py:attr:`DataArray.variable <xarray.DataArray.variable>` attributes...
pydata/xarray
pydata__xarray-4195
https://github.com/pydata/xarray/pull/4195
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 5ee67efb1da..a0e5090d38a 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -30,6 +30,8 @@ New Features - :py:func:`open_dataset` and :py:func:`open_mfdataset` now works with ``engine="zarr"`` (:issue:`3668`, :pull:`4003`, :pull:`4187`). By `Miguel ...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index 5e0fe13ea52..ba424170349 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -9,7 +9,15 @@ import pytest import xarray as xr -from xarray import DataArray, Dataset, IndexVariable, Variable, align, broa...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 5ee67efb1da..a0e5090d38a 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -30,6 +30,8 @@ New Features\n - :py:func:`...
0016
57ae5a482e2e64f0fae30038c35e14a127d52a27
[ "xarray/tests/test_dataset.py::test_rolling_reduce[max-1-None-False-1]", "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-False]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-3-1-False-2]", "xarray/tests/test_weighted.py::test_weighted_operations_different_shapes[True-None-...
[ "xarray/tests/test_weighted.py::test_weighted_operations_keep_attr_da_in_ds[sum]", "xarray/tests/test_dataset.py::TestDataset::test_propagate_attrs[absolute]", "xarray/tests/test_weighted.py::test_weighted_operations_keep_attr_da_in_ds[mean]", "xarray/tests/test_dataset.py::TestDataset::test_propagate_attrs[<...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 5ee67efb1da..a0e5090d38a 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -30,6 +30,8 @@ New Features\n - :py:func:`...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 5ee67efb1da..a0e5090d38a 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -30,6 +30,8 @@ New Features - :py:func:`open_dataset` and :py:func:`open_mfdataset` now works with ``engine="zarr"`` (:issue:`<PRID>`, :pull:`<PRID>`, :pull:`<PRID>`). By `<...
pydata/xarray
pydata__xarray-3877
https://github.com/pydata/xarray/pull/3877
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 10f6b23ca66..c082bcaa263 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -24,6 +24,10 @@ Breaking changes New Features ~~~~~~~~~~~~ +- Control over attributes of result in :py:func:`merge`, :py:func:`concat`, + :py:func:`combine_by_coords` and :py:...
diff --git a/xarray/tests/test_combine.py b/xarray/tests/test_combine.py index eb2c6e1dbf7..c3f981f10d1 100644 --- a/xarray/tests/test_combine.py +++ b/xarray/tests/test_combine.py @@ -503,6 +503,49 @@ def test_auto_combine_2d(self): result = combine_nested(datasets, concat_dim=["dim1", "dim2"]) asser...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 10f6b23ca66..c082bcaa263 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -24,6 +24,10 @@ Breaking changes\n \n New ...
0016
c707b337a0f75224ee3b3e3b65a08da792df2fa6
[ "xarray/tests/test_dataarray.py::TestDataArray::test_pad_stat_length[stat_length2-minimum]", "xarray/tests/test_concat.py::TestConcatDataset::test_concat_coords_kwarg[dim1-minimal]", "xarray/tests/test_dataarray.py::test_rolling_wrapped_bottleneck[1-None-True-min]", "xarray/tests/test_dataarray.py::test_rolli...
[ "xarray/tests/test_combine.py::TestCombineAuto::test_combine_coords_combine_attrs_identical", "xarray/tests/test_concat.py::TestConcatDataArray::test_concat_combine_attrs_kwarg", "xarray/tests/test_combine.py::TestCombineAuto::test_combine_coords_combine_attrs[drop-expected0]", "xarray/tests/test_combine.py::...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "promote_attrs" }, { "type": "field", "name": "promote_attrs" }, { ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 10f6b23ca66..c082bcaa263 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -24,6 +24,10 @@ Breaking changes\n \n New ...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 10f6b23ca66..c082bcaa263 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -24,6 +24,10 @@ Breaking changes New Features ~~~~~~~~~~~~ +- Control over attributes of result in :py:func:`merge`, :py:func:`concat`, + :py:func:`combine_by_coords` and :py:...
pydata/xarray
pydata__xarray-3871
https://github.com/pydata/xarray/pull/3871
diff --git a/doc/api.rst b/doc/api.rst index 216f47f988f..b37c84e7a81 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -180,6 +180,8 @@ Computation :py:attr:`~Dataset.any` :py:attr:`~Dataset.argmax` :py:attr:`~Dataset.argmin` +:py:attr:`~Dataset.idxmax` +:py:attr:`~Dataset.idxmin` :py:attr:`~Dataset.max` :py:attr:`~D...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index e23ff2f7e31..5b3e122bf72 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -4349,6 +4349,783 @@ def test_pad_reflect(self, mode, reflect_type): assert_identical(actual, expected) +class Test...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 216f47f988f..b37c84e7a81 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -180,6 +180,8 @@ Computation\n :py:attr:`~Dataset.any`\n :py:attr:`~Dataset.argmax`\...
0016
ca6bb8561f2977509fc5bf53eae0efd080c0a952
[ "xarray/tests/test_dataset.py::test_rolling_reduce[max-1-None-False-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-3-1-False-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-4-3-True-1]", "xarray/tests/test_dataarray.py::TestDataArray::test_groupby_map_center", "xarray/tests/test_dat...
[ "xarray/tests/test_dataarray.py::TestReduce2D::test_idxmin[x0-minindex0-maxindex0-nanindex0]", "xarray/tests/test_dataarray.py::TestReduce2D::test_idxmax[x0-minindex0-maxindex0-nanindex0]", "xarray/tests/test_dataarray.py::TestReduce1D::test_idxmax[x2-5-2-1]", "xarray/tests/test_dataarray.py::TestReduce1D::te...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 216f47f988f..b37c84e7a81 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -180,6 +180,8 @@ Computation\n :py:attr:`~Dataset.any`\n :py:attr:`~Dataset.argmax`\...
diff --git a/doc/api.rst b/doc/api.rst index 216f47f988f..b37c84e7a81 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -180,6 +180,8 @@ Computation :py:attr:`~Dataset.any` :py:attr:`~Dataset.argmax` :py:attr:`~Dataset.argmin` +:py:attr:`~Dataset.idxmax` +:py:attr:`~Dataset.idxmin` :py:attr:`~Dataset.max` :py:attr:`~D...
pydata/xarray
pydata__xarray-3802
https://github.com/pydata/xarray/pull/3802
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 6a5491e34dd..1deb77eecfc 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -30,7 +30,11 @@ New Features By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_. - implement pint support. (:issue:`3594`, :pull:`3706`) By `Justus Magin <https://github.c...
diff --git a/xarray/tests/test_groupby.py b/xarray/tests/test_groupby.py index 97bd31ae050..77558e741be 100644 --- a/xarray/tests/test_groupby.py +++ b/xarray/tests/test_groupby.py @@ -483,6 +483,11 @@ def test_groupby_reduce_dimension_error(array): assert_allclose(array.mean(["x", "z"]), grouped.reduce(np.mean, [...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 6a5491e34dd..1deb77eecfc 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -30,7 +30,11 @@ New Features\n By `Kai M...
0015
20e6236f250d1507d22daf06d38b283a83c12e44
[ "xarray/tests/test_groupby.py::test_ds_groupby_map_func_args", "xarray/tests/test_groupby.py::test_groupby_repr[obj0-y]", "xarray/tests/test_groupby.py::test_da_groupby_quantile", "xarray/tests/test_groupby.py::test_multi_index_groupby_sum", "xarray/tests/test_groupby.py::test_groupby_repr[obj0-month]", "...
[ "xarray/tests/test_groupby.py::test_groupby_multiple_string_args" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 6a5491e34dd..1deb77eecfc 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -30,7 +30,11 @@ New Features\n By `<NAME...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 6a5491e34dd..1deb77eecfc 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -30,7 +30,11 @@ New Features By `<NAME>`_. - implement pint support. (:issue:`<PRID>`, :pull:`<PRID>`) By `<NAME>`_. - +- :py:meth:`Dataset.groupby` and :py:meth:`DataArray....
pydata/xarray
pydata__xarray-3733
https://github.com/pydata/xarray/pull/3733
diff --git a/doc/api.rst b/doc/api.rst index b9c3e3bdd33..216f47f988f 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -30,6 +30,7 @@ Top-level functions zeros_like ones_like dot + polyval map_blocks show_versions set_options @@ -172,6 +173,7 @@ Computation Dataset.quantile Dataset.differ...
diff --git a/xarray/tests/test_computation.py b/xarray/tests/test_computation.py index 369903552ad..4eed464d2dc 100644 --- a/xarray/tests/test_computation.py +++ b/xarray/tests/test_computation.py @@ -1120,3 +1120,35 @@ def test_where(): actual = xr.where(cond, 1, 0) expected = xr.DataArray([1, 0], dims="x") ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex b9c3e3bdd33..216f47f988f 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -30,6 +30,7 @@ Top-level functions\n zeros_like\n ones_like\n dot\n+ poly...
0016
009aa66620b3437cf0de675013fa7d1ff231963c
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataarray.py::test_rolling_wrapped_bottleneck[1-1-False-mean]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests...
[ "xarray/tests/test_duck_array_ops.py::test_argmin_max[x-True-max-False-False-int-1]", "xarray/tests/test_duck_array_ops.py::test_min_count_dataset[prod]", "xarray/tests/test_duck_array_ops.py::TestArrayNotNullEquiv::test_wrong_shape", "xarray/tests/test_duck_array_ops.py::test_min_count[x-prod-False-bool_-1]"...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "residuals" }, { "type": "field", "name": "get_clean_interp_index" }, ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex b9c3e3bdd33..216f47f988f 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -30,6 +30,7 @@ Top-level functions\n zeros_like\n ones_like\n dot\n+ poly...
diff --git a/doc/api.rst b/doc/api.rst index b9c3e3bdd33..216f47f988f 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -30,6 +30,7 @@ Top-level functions zeros_like ones_like dot + polyval map_blocks show_versions set_options @@ -172,6 +173,7 @@ Computation Dataset.quantile Dataset.differ...
pydata/xarray
pydata__xarray-3847
https://github.com/pydata/xarray/pull/3847
diff --git a/ci/requirements/py36-min-all-deps.yml b/ci/requirements/py36-min-all-deps.yml index 86540197dcc..a72cd000680 100644 --- a/ci/requirements/py36-min-all-deps.yml +++ b/ci/requirements/py36-min-all-deps.yml @@ -15,8 +15,8 @@ dependencies: - cfgrib=0.9 - cftime=1.0 - coveralls - - dask=2.2 - - distr...
diff --git a/xarray/testing.py b/xarray/testing.py index ac189f7e023..4897b958113 100644 --- a/xarray/testing.py +++ b/xarray/testing.py @@ -1,10 +1,11 @@ """Testing functions exposed to the user API""" +import functools from typing import Hashable, Set, Union import numpy as np import pandas as pd -from xarray...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex cd30fab0160..f4f75df2e86 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -209,6 +209,8 @@ New Features\n :py:meth...
0015
8051c47686ae23062f9008785563d62327735002
[ "xarray/tests/test_duck_array_ops.py::test_reduce[None-False-var-False-float-2]", "xarray/tests/test_duck_array_ops.py::test_reduce[x-True-max-False-bool_-2]", "xarray/tests/test_duck_array_ops.py::TestArrayNotNullEquiv::test_equal[arr10-arr20]", "xarray/tests/test_duck_array_ops.py::test_reduce[x-True-sum-Fa...
[ "xarray/tests/test_testing.py::test_assert_allclose[Dataset]" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "equiv" } ] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex cd30fab0160..f4f75df2e86 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -209,6 +209,8 @@ New Features\n :py:meth...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index cd30fab0160..f4f75df2e86 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -209,6 +209,8 @@ New Features :py:meth:`core.groupby.DatasetGroupBy.quantile`, :py:meth:`core.groupby.DataArrayGroupBy.quantile` (:issue:`<PRID>`, :pull:`<PRID>`) By `<NAM...
pydata/xarray
pydata__xarray-2922
https://github.com/pydata/xarray/pull/2922
diff --git a/doc/api.rst b/doc/api.rst index 4492d882355..43a9cf53ead 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -165,6 +165,7 @@ Computation Dataset.groupby_bins Dataset.rolling Dataset.rolling_exp + Dataset.weighted Dataset.coarsen Dataset.resample Dataset.diff @@ -340,6 +341,7 @@ Computa...
diff --git a/xarray/tests/test_weighted.py b/xarray/tests/test_weighted.py new file mode 100644 index 00000000000..24531215dfb --- /dev/null +++ b/xarray/tests/test_weighted.py @@ -0,0 +1,311 @@ +import numpy as np +import pytest + +import xarray as xr +from xarray import DataArray +from xarray.tests import assert_allc...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 4492d882355..43a9cf53ead 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -165,6 +165,7 @@ Computation\n Dataset.groupby_bins\n Dataset.rolling\n Dat...
0015
65a5bff79479c4b56d6f733236fe544b7f4120a8
[]
[ "xarray/tests/test_weighted.py::test_weighted_weights_nan_raises[weights0-False]", "xarray/tests/test_weighted.py::test_weighted_operations_3D[True-True-True-mean-c]", "xarray/tests/test_weighted.py::test_weighted_operations_different_shapes[True-None-True-sum-shape_weights2-shape_data0-dim_0]", "xarray/tests...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "field", "name": "keep_attrs" }, { "type": "field", "name": "attrs" }, { "type": ...
[ { "path": "doc/api.rst", "old_path": "a/doc/api.rst", "new_path": "b/doc/api.rst", "metadata": "diff --git a/doc/api.rst b/doc/api.rst\nindex 4492d882355..43a9cf53ead 100644\n--- a/doc/api.rst\n+++ b/doc/api.rst\n@@ -165,6 +165,7 @@ Computation\n Dataset.groupby_bins\n Dataset.rolling\n Dat...
diff --git a/doc/api.rst b/doc/api.rst index 4492d882355..43a9cf53ead 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -165,6 +165,7 @@ Computation Dataset.groupby_bins Dataset.rolling Dataset.rolling_exp + Dataset.weighted Dataset.coarsen Dataset.resample Dataset.diff @@ -340,6 +341,7 @@ Computa...
pydata/xarray
pydata__xarray-3923
https://github.com/pydata/xarray/pull/3923
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b9c81ad3474..46a67f9ae4f 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -35,6 +35,11 @@ New Features :py:func:`combine_by_coords` and :py:func:`combine_nested` using combine_attrs keyword argument. (:issue:`3865`, :pull:`3877`) By `John Omotan...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index ced72d1bc06..cf31182ed30 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -781,6 +781,19 @@ def test_isel(self): assert_identical(self.dv, self.dv.isel(x=slice(None))) assert_identical...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b9c81ad3474..46a67f9ae4f 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -35,6 +35,11 @@ New Features\n :py:func:...
0016
b3bafeefbd6e6d70bce505ae1f0d9d5a2b015089
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataarray.py::test_rolling_wrapped_bottleneck[1-1-False-mean]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_isel", "xarray/tests/test_dataset.py::TestDataset::test_isel", "xarray/tests/test_variable.py::TestVariable::test_isel" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex b9c81ad3474..46a67f9ae4f 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -35,6 +35,11 @@ New Features\n :py:func:...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index b9c81ad3474..46a67f9ae4f 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -35,6 +35,11 @@ New Features :py:func:`combine_by_coords` and :py:func:`combine_nested` using combine_attrs keyword argument. (:issue:`<PRID>`, :pull:`<PRID>`) By `<NAME>`...
pydata/xarray
pydata__xarray-3637
https://github.com/pydata/xarray/pull/3637
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 1f60d457432..a15e7e35cb8 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ Breaking changes New Features ~~~~~~~~~~~~ +- :py:func:`xarray.concat` now preserves attributes from the first Variable. + (:issue:`2575`, :issue:`2060`, :issue...
diff --git a/xarray/tests/test_concat.py b/xarray/tests/test_concat.py index 0661ebb7a38..def5abc942f 100644 --- a/xarray/tests/test_concat.py +++ b/xarray/tests/test_concat.py @@ -462,3 +462,16 @@ def test_concat_join_kwarg(self): for join in expected: actual = concat([ds1, ds2], join=join, dim="...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 1f60d457432..a15e7e35cb8 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,9 @@ Breaking changes\n \n New F...
0015
6295bc6bca1559680544ea86051f35fa2d367fe1
[ "xarray/tests/test_variable.py::TestVariable::test_reduce_keep_attrs", "xarray/tests/test_variable.py::TestIndexVariable::test_copy[str-True]", "xarray/tests/test_variable.py::TestIndexVariable::test_real_and_imag", "xarray/tests/test_variable.py::TestIndexVariable::test_get_level_variable", "xarray/tests/t...
[ "xarray/tests/test_concat.py::test_concat_attrs_first_variable[attr21-attr10]", "xarray/tests/test_concat.py::test_concat_attrs_first_variable[attr21-attr11]", "xarray/tests/test_concat.py::test_concat_attrs_first_variable[attr20-attr10]", "xarray/tests/test_variable.py::TestIndexVariable::test_concat", "xa...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 1f60d457432..a15e7e35cb8 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -25,6 +25,9 @@ Breaking changes\n \n New F...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 1f60d457432..a15e7e35cb8 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -25,6 +25,9 @@ Breaking changes New Features ~~~~~~~~~~~~ +- :py:func:`xarray.concat` now preserves attributes from the first Variable. + (:issue:`<PRID>`, :issue:`<PRID>`, :i...
pydata/xarray
pydata__xarray-3826
https://github.com/pydata/xarray/pull/3826
diff --git a/doc/reshaping.rst b/doc/reshaping.rst index 455a24f9216..465ca14dfc2 100644 --- a/doc/reshaping.rst +++ b/doc/reshaping.rst @@ -109,6 +109,13 @@ implemented :py:meth:`~xarray.DataArray.stack` and stacked stacked.unstack('z') +As elsewhere in xarray, an ellipsis (`...`) can be used to represent ...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index de02f8e059d..6f065c9daed 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -2040,6 +2040,9 @@ def test_stack_unstack(self): actual = orig.stack(z=["x", "y"]).unstack("z").drop_vars(["x", "y"]) ...
[ { "path": "doc/reshaping.rst", "old_path": "a/doc/reshaping.rst", "new_path": "b/doc/reshaping.rst", "metadata": "diff --git a/doc/reshaping.rst b/doc/reshaping.rst\nindex 455a24f9216..465ca14dfc2 100644\n--- a/doc/reshaping.rst\n+++ b/doc/reshaping.rst\n@@ -109,6 +109,13 @@ implemented :py:meth:`~x...
0015
e7d6e12662ae113a57eaf38eb2a19ab9ff92b9a8
[ "xarray/tests/test_dataset.py::test_rolling_reduce[max-1-None-False-1]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-3-1-False-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-4-3-True-1]", "xarray/tests/test_dataarray.py::TestDataArray::test_groupby_map_center", "xarray/tests/test_dat...
[ "xarray/tests/test_dataset.py::TestDataset::test_stack", "xarray/tests/test_dataarray.py::TestDataArray::test_stack_unstack" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/reshaping.rst", "old_path": "a/doc/reshaping.rst", "new_path": "b/doc/reshaping.rst", "metadata": "diff --git a/doc/reshaping.rst b/doc/reshaping.rst\nindex 455a24f9216..465ca14dfc2 100644\n--- a/doc/reshaping.rst\n+++ b/doc/reshaping.rst\n@@ -109,6 +109,13 @@ implemented :py:meth:`~x...
diff --git a/doc/reshaping.rst b/doc/reshaping.rst index 455a24f9216..465ca14dfc2 100644 --- a/doc/reshaping.rst +++ b/doc/reshaping.rst @@ -109,6 +109,13 @@ implemented :py:meth:`~xarray.DataArray.stack` and stacked stacked.unstack('z') +As elsewhere in xarray, an ellipsis (`...`) can be used to represent ...
pydata/xarray
pydata__xarray-3670
https://github.com/pydata/xarray/pull/3670
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9fbeaa95055..0e48dfcfc78 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -40,6 +40,8 @@ Breaking changes New Features ~~~~~~~~~~~~ +- :py:meth:`DataArray.sel` and :py:meth:`Dataset.sel` now support :py:class:`pandas.CategoricalIndex`. (:issue:`3669`...
diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index f9eb37dbf2f..4e51e229b29 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -1408,6 +1408,56 @@ def test_sel_dataarray_mindex(self): ) ) + def test_sel_categorical(self): + ...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9fbeaa95055..0e48dfcfc78 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -40,6 +40,8 @@ Breaking changes\n \n New F...
0015
9c7286639136f52aee877f44de8c89d7c8f41068
[ "xarray/tests/test_dataset.py::test_rolling_reduce[max-1-None-False-1]", "xarray/tests/test_dataset.py::TestDataset::test_to_and_from_empty_dataframe", "xarray/tests/test_dataset.py::test_rolling_wrapped_bottleneck[1-z2-None-None-var]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-3-1-False-2]", "...
[ "xarray/tests/test_dataset.py::TestDataset::test_categorical_index", "xarray/tests/test_dataset.py::TestDataset::test_sel_categorical", "xarray/tests/test_dataset.py::TestDataset::test_sel_categorical_error", "xarray/tests/test_dataset.py::TestDataset::test_from_dataframe_categorical" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 9fbeaa95055..0e48dfcfc78 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -40,6 +40,8 @@ Breaking changes\n \n New F...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 9fbeaa95055..0e48dfcfc78 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -40,6 +40,8 @@ Breaking changes New Features ~~~~~~~~~~~~ +- :py:meth:`DataArray.sel` and :py:meth:`Dataset.sel` now support :py:class:`pandas.CategoricalIndex`. (:issue:`<PRID...
pydata/xarray
pydata__xarray-3844
https://github.com/pydata/xarray/pull/3844
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 24120270444..2c30db99bcd 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -45,7 +45,12 @@ New Features By `Julia Signell <https://github.com/jsignell>`_. - :py:meth:`Dataset.where` and :py:meth:`DataArray.where` accept a lambda as a first argument...
diff --git a/xarray/tests/test_dataarray.py b/xarray/tests/test_dataarray.py index b8a9c5edaf9..33f1b403eb8 100644 --- a/xarray/tests/test_dataarray.py +++ b/xarray/tests/test_dataarray.py @@ -2368,13 +2368,15 @@ def test_reduce_out(self): with pytest.raises(TypeError): orig.mean(out=np.ones(orig....
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 24120270444..2c30db99bcd 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -45,7 +45,12 @@ New Features\n By `Julia...
0015
9fbb4170c1732fe2f3cd57b2b96d770a5bac50ed
[ "xarray/tests/test_dataset.py::test_rolling_reduce[median-3-3-True-2]", "xarray/tests/test_dataset.py::test_rolling_reduce[std-3-2-False-1]", "xarray/tests/test_dataarray.py::test_rolling_wrapped_bottleneck[1-1-False-mean]", "xarray/tests/test_dataset.py::test_rolling_reduce[mean-3-2-True-1]", "xarray/tests...
[ "xarray/tests/test_dataarray.py::TestDataArray::test_quantile[0-x-0.25-True]", "xarray/tests/test_variable.py::TestVariable::test_quantile[axis3-dim3-q1-False]", "xarray/tests/test_variable.py::TestVariable::test_quantile[axis2-dim2-q2-True]", "xarray/tests/test_variable.py::TestVariable::test_quantile[0-x-q1...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 24120270444..2c30db99bcd 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -45,7 +45,12 @@ New Features\n By `<NAME...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 24120270444..2c30db99bcd 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -45,7 +45,12 @@ New Features By `<NAME>`_. - :py:meth:`Dataset.where` and :py:meth:`DataArray.where` accept a lambda as a first argument, which is then called on the input; ...
pydata/xarray
pydata__xarray-3500
https://github.com/pydata/xarray/pull/3500
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 884c3cef91c..ed1e79ce3d1 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -28,7 +28,9 @@ New Features - :py:meth:`Dataset.quantile`, :py:meth:`DataArray.quantile` and ``GroupBy.quantile`` now work with dask Variables. By `Deepak Cherian <https://g...
diff --git a/xarray/tests/test_dataset.py b/xarray/tests/test_dataset.py index d8282f58051..7db1911621b 100644 --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -5497,6 +5497,11 @@ def ds(request): ) +def test_coarsen_absent_dims_error(ds): + with raises_regex(ValueError, "not fou...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 884c3cef91c..ed1e79ce3d1 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -28,7 +28,9 @@ New Features\n - :py:meth:`...
0015
ed05f9862622b00f40f7b9b99ccdb0ab3766ff0f
[ "xarray/tests/test_dataset.py::test_rolling_reduce[max-1-None-False-1]", "xarray/tests/test_dataset.py::TestDataset::test_to_and_from_empty_dataframe", "xarray/tests/test_dataset.py::test_rolling_wrapped_bottleneck[1-z2-None-None-var]", "xarray/tests/test_dataset.py::test_rolling_reduce[max-3-1-False-2]", "...
[ "xarray/tests/test_dataset.py::test_coarsen_absent_dims_error[1]", "xarray/tests/test_variable.py::TestVariable::test_coarsen_2d" ]
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [] }
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex 884c3cef91c..ed1e79ce3d1 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -28,7 +28,9 @@ New Features\n - :py:meth:`...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 884c3cef91c..ed1e79ce3d1 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -28,7 +28,9 @@ New Features - :py:meth:`Dataset.quantile`, :py:meth:`DataArray.quantile` and ``GroupBy.quantile`` now work with dask Variables. By `<NAME>`_. - +- Added the ...
pydata/xarray
pydata__xarray-3631
https://github.com/pydata/xarray/pull/3631
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index fef1b988f01..26b42a1df21 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -23,8 +23,8 @@ Breaking changes ~~~~~~~~~~~~~~~~ - Remove ``compat`` and ``encoding`` kwargs from ``DataArray``, which - have been deprecated since 0.12. (:pull:`3650`). - I...
diff --git a/xarray/tests/test_duck_array_ops.py b/xarray/tests/test_duck_array_ops.py index aee7bbd6b11..96c883baa67 100644 --- a/xarray/tests/test_duck_array_ops.py +++ b/xarray/tests/test_duck_array_ops.py @@ -1,6 +1,7 @@ import warnings from textwrap import dedent +import datetime as dt import numpy as np imp...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex fef1b988f01..26b42a1df21 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -23,8 +23,8 @@ Breaking changes\n ~~~~~~~~...
0015
c32e58b4fff72816c6b554db51509bea6a891cdc
[]
[ "xarray/tests/test_duck_array_ops.py::test_reduce[None-True-mean-False-float32-2]", "xarray/tests/test_duck_array_ops.py::test_reduce[None-False-max-False-int-1]", "xarray/tests/test_duck_array_ops.py::test_reduce[None-True-mean-False-int-2]", "xarray/tests/test_duck_array_ops.py::test_reduce[None-False-var-F...
{ "header": "If completing this task requires creating new files, classes, fields, or error messages, you may consider using the following suggested entity names:", "data": [ { "type": "function", "name": "py_timedelta_to_float" }, { "type": "field", "name": "py_timedelta_to_floa...
[ { "path": "doc/whats-new.rst", "old_path": "a/doc/whats-new.rst", "new_path": "b/doc/whats-new.rst", "metadata": "diff --git a/doc/whats-new.rst b/doc/whats-new.rst\nindex fef1b988f01..26b42a1df21 100644\n--- a/doc/whats-new.rst\n+++ b/doc/whats-new.rst\n@@ -23,8 +23,8 @@ Breaking changes\n ~~~~~~~~...
diff --git a/doc/whats-new.rst b/doc/whats-new.rst index fef1b988f01..26b42a1df21 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -23,8 +23,8 @@ Breaking changes ~~~~~~~~~~~~~~~~ - Remove ``compat`` and ``encoding`` kwargs from ``DataArray``, which - have been deprecated since 0.12. (:pull:`<PRID>`). - ...