|
156 | 156 | ")" |
157 | 157 | ] |
158 | 158 | }, |
159 | | - { |
160 | | - "attachments": {}, |
161 | | - "cell_type": "markdown", |
162 | | - "metadata": {}, |
163 | | - "source": [ |
164 | | - "## Update and check the resolutions\n", |
165 | | - "\n", |
166 | | - "You can now update and check the resolutions of the pdf assets.\n", |
167 | | - "\n", |
168 | | - "⚠️ This step is only necessary for assets that have been annotated before the 2023-07-05. Before this date, the page resolutions were not stored once a label was submitted, so if you need to backfill this value if you need it." |
169 | | - ] |
170 | | - }, |
171 | | - { |
172 | | - "cell_type": "code", |
173 | | - "execution_count": null, |
174 | | - "metadata": {}, |
175 | | - "outputs": [], |
176 | | - "source": [ |
177 | | - "from kili.utils.assets import PageResolution\n", |
178 | | - "\n", |
179 | | - "kili.update_properties_in_assets(\n", |
180 | | - " project_id=project_id,\n", |
181 | | - " external_ids=external_ids,\n", |
182 | | - " page_resolutions_array=[\n", |
183 | | - " [\n", |
184 | | - " PageResolution(page_number=1, height=700, width=500),\n", |
185 | | - " PageResolution(page_number=2, height=700, width=500),\n", |
186 | | - " PageResolution(page_number=3, height=700, width=500),\n", |
187 | | - " PageResolution(page_number=4, height=700, width=500),\n", |
188 | | - " ],\n", |
189 | | - " [\n", |
190 | | - " PageResolution(page_number=1, height=700, width=500),\n", |
191 | | - " PageResolution(page_number=2, height=700, width=500),\n", |
192 | | - " PageResolution(page_number=3, height=700, width=500),\n", |
193 | | - " PageResolution(page_number=4, height=700, width=500),\n", |
194 | | - " ],\n", |
195 | | - " [\n", |
196 | | - " PageResolution(page_number=1, height=700, width=500),\n", |
197 | | - " PageResolution(page_number=2, height=700, width=500),\n", |
198 | | - " PageResolution(page_number=3, height=700, width=500),\n", |
199 | | - " PageResolution(page_number=4, height=700, width=500),\n", |
200 | | - " ],\n", |
201 | | - " ],\n", |
202 | | - ")" |
203 | | - ] |
204 | | - }, |
205 | 159 | { |
206 | 160 | "attachments": {}, |
207 | 161 | "cell_type": "markdown", |
|
0 commit comments