|
11 | 11 | }, |
12 | 12 | { |
13 | 13 | "cell_type": "code", |
14 | | - "execution_count": 4, |
| 14 | + "execution_count": 1, |
15 | 15 | "metadata": {}, |
16 | 16 | "outputs": [ |
17 | 17 | { |
|
22 | 22 | "\n", |
23 | 23 | " Validate the given dataset FILES.\n", |
24 | 24 | "\n", |
25 | | - " Reads configuration from `./xrlint_config.*` if such file exists and unless\n", |
26 | | - " `--no_config_lookup` is set or `--config` is provided. Then validates each\n", |
27 | | - " dataset in FILES against the configuration. The default dataset patters are\n", |
28 | | - " `**/*.zarr` and `**/.nc`. FILES may comprise also directories. If a\n", |
29 | | - " directory is not matched by any file pattern, it will be traversed\n", |
30 | | - " recursively. The validation result is dumped to standard output if not\n", |
31 | | - " otherwise stated by `--output-file`. The output format is `simple` by\n", |
32 | | - " default. Other inbuilt formats are `json` and `html` which you can specify\n", |
33 | | - " using the `--format` option.\n", |
| 25 | + " Reads configuration from './xrlint_config.*' if such file exists and unless\n", |
| 26 | + " '--no_config_lookup' is set or '--config' is provided. It then validates\n", |
| 27 | + " each dataset in FILES against the configuration. The default dataset patters\n", |
| 28 | + " are '**/*.zarr' and '**/.nc'. FILES may comprise also directories or URLs.\n", |
| 29 | + " The supported URL protocols are the ones supported by xarray. Using remote\n", |
| 30 | + " protocols may require installing additional packages such as S3Fs\n", |
| 31 | + " (https://s3fs.readthedocs.io/) for the 's3' protocol.\n", |
| 32 | + "\n", |
| 33 | + " If a directory is provided that not matched by any file pattern, it will be\n", |
| 34 | + " traversed recursively. The validation result is dumped to standard output if\n", |
| 35 | + " not otherwise stated by '--output-file'. The output format is 'simple' by\n", |
| 36 | + " default. Other inbuilt formats are 'json' and 'html' which you can specify\n", |
| 37 | + " using the '--format' option.\n", |
34 | 38 | "\n", |
35 | 39 | "Options:\n", |
36 | 40 | " --no-config-lookup Disable use of default configuration from\n", |
|
59 | 63 | }, |
60 | 64 | { |
61 | 65 | "cell_type": "code", |
62 | | - "execution_count": 5, |
| 66 | + "execution_count": 2, |
63 | 67 | "metadata": {}, |
64 | 68 | "outputs": [ |
65 | 69 | { |
|
68 | 72 | "'C:\\\\Users\\\\norma\\\\Projects\\\\xrlint\\\\notebooks'" |
69 | 73 | ] |
70 | 74 | }, |
71 | | - "execution_count": 5, |
| 75 | + "execution_count": 2, |
72 | 76 | "metadata": {}, |
73 | 77 | "output_type": "execute_result" |
74 | 78 | } |
|
81 | 85 | }, |
82 | 86 | { |
83 | 87 | "cell_type": "code", |
84 | | - "execution_count": 6, |
| 88 | + "execution_count": 3, |
85 | 89 | "metadata": {}, |
86 | 90 | "outputs": [ |
87 | 91 | { |
88 | | - "name": "stderr", |
| 92 | + "name": "stdout", |
89 | 93 | "output_type": "stream", |
90 | 94 | "text": [ |
91 | | - "Error: file xrlint_config.yaml already exists.\n" |
| 95 | + "Configuration template written to xrlint_config.yaml\n" |
92 | 96 | ] |
93 | 97 | } |
94 | 98 | ], |
|
98 | 102 | }, |
99 | 103 | { |
100 | 104 | "cell_type": "code", |
101 | | - "execution_count": 7, |
| 105 | + "execution_count": 4, |
102 | 106 | "metadata": {}, |
103 | 107 | "outputs": [ |
104 | 108 | { |
105 | 109 | "data": { |
106 | 110 | "text/plain": [ |
107 | | - "<xarray.backends.zarr.ZarrStore at 0x2b09f4c3010>" |
| 111 | + "<xarray.backends.zarr.ZarrStore at 0x14b37ccb400>" |
108 | 112 | ] |
109 | 113 | }, |
110 | | - "execution_count": 7, |
| 114 | + "execution_count": 4, |
111 | 115 | "metadata": {}, |
112 | 116 | "output_type": "execute_result" |
113 | 117 | } |
|
121 | 125 | }, |
122 | 126 | { |
123 | 127 | "cell_type": "code", |
124 | | - "execution_count": 8, |
| 128 | + "execution_count": 5, |
125 | 129 | "metadata": {}, |
126 | 130 | "outputs": [ |
127 | 131 | { |
|
147 | 151 | }, |
148 | 152 | { |
149 | 153 | "cell_type": "code", |
150 | | - "execution_count": 39, |
| 154 | + "execution_count": 6, |
151 | 155 | "metadata": {}, |
152 | 156 | "outputs": [ |
153 | 157 | { |
|
181 | 185 | }, |
182 | 186 | { |
183 | 187 | "cell_type": "code", |
184 | | - "execution_count": 9, |
| 188 | + "execution_count": 7, |
185 | 189 | "metadata": {}, |
186 | 190 | "outputs": [ |
187 | 191 | { |
|
191 | 195 | "{\n", |
192 | 196 | " \"name\": \"<computed>\",\n", |
193 | 197 | " \"plugins\": {\n", |
194 | | - " \"__core__\": \"xrlint.plugins.core\"\n", |
| 198 | + " \"__core__\": \"xrlint.plugins.core:export_plugin\"\n", |
195 | 199 | " },\n", |
196 | 200 | " \"rules\": {\n", |
197 | 201 | " \"coords-for-dims\": 2,\n", |
|
232 | 236 | "name": "python", |
233 | 237 | "nbconvert_exporter": "python", |
234 | 238 | "pygments_lexer": "ipython3", |
235 | | - "version": "3.11.11" |
| 239 | + "version": "3.13.1" |
236 | 240 | } |
237 | 241 | }, |
238 | 242 | "nbformat": 4, |
|
0 commit comments