Commit 080caf4
Support swap_dims to dimension names that are not existing variables (#3636)
* test that swapping to a non-existing name works
* don't try to get a variable if the variable does not exist
* don't add dimensions to coord_names if they are not existing variables
* add whats-new.rst entry
* update the documentation1 parent 8fc9ece commit 080caf4
File tree
5 files changed
+35
-6
lines changed- doc
- xarray
- core
- tests
5 files changed
+35
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1480 | 1480 | | |
1481 | 1481 | | |
1482 | 1482 | | |
1483 | | - | |
1484 | | - | |
| 1483 | + | |
1485 | 1484 | | |
1486 | 1485 | | |
1487 | 1486 | | |
| |||
1504 | 1503 | | |
1505 | 1504 | | |
1506 | 1505 | | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
1507 | 1513 | | |
1508 | 1514 | | |
1509 | 1515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
2878 | | - | |
2879 | | - | |
| 2878 | + | |
2880 | 2879 | | |
2881 | 2880 | | |
2882 | 2881 | | |
| |||
2905 | 2904 | | |
2906 | 2905 | | |
2907 | 2906 | | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
2908 | 2917 | | |
2909 | 2918 | | |
2910 | 2919 | | |
| |||
2921 | 2930 | | |
2922 | 2931 | | |
2923 | 2932 | | |
2924 | | - | |
| 2933 | + | |
2925 | 2934 | | |
2926 | 2935 | | |
2927 | 2936 | | |
| |||
2930 | 2939 | | |
2931 | 2940 | | |
2932 | 2941 | | |
2933 | | - | |
| 2942 | + | |
2934 | 2943 | | |
2935 | 2944 | | |
2936 | 2945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1530 | 1530 | | |
1531 | 1531 | | |
1532 | 1532 | | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1533 | 1538 | | |
1534 | 1539 | | |
1535 | 1540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2533 | 2533 | | |
2534 | 2534 | | |
2535 | 2535 | | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
2536 | 2542 | | |
2537 | 2543 | | |
2538 | 2544 | | |
| |||
0 commit comments