Skip to content

Commit b22830b

Browse files
committed
chore(LAB-3845): remove/update outdated doc on SDK
1 parent e0b1799 commit b22830b

2 files changed

Lines changed: 0 additions & 82 deletions

File tree

docs/sdk/tutorials/importing_pdf_assets.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -99,42 +99,6 @@ assets = kili.append_many_to_dataset(
9999

100100

101101

102-
## Update and check the resolutions
103-
104-
You can now update and check the resolutions of the pdf assets.
105-
106-
⚠️ 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.
107-
108-
109-
```python
110-
from kili.utils.assets import PageResolution
111-
112-
kili.update_properties_in_assets(
113-
project_id=project_id,
114-
external_ids=external_ids,
115-
page_resolutions_array=[
116-
[
117-
PageResolution(page_number=1, height=700, width=500),
118-
PageResolution(page_number=2, height=700, width=500),
119-
PageResolution(page_number=3, height=700, width=500),
120-
PageResolution(page_number=4, height=700, width=500),
121-
],
122-
[
123-
PageResolution(page_number=1, height=700, width=500),
124-
PageResolution(page_number=2, height=700, width=500),
125-
PageResolution(page_number=3, height=700, width=500),
126-
PageResolution(page_number=4, height=700, width=500),
127-
],
128-
[
129-
PageResolution(page_number=1, height=700, width=500),
130-
PageResolution(page_number=2, height=700, width=500),
131-
PageResolution(page_number=3, height=700, width=500),
132-
PageResolution(page_number=4, height=700, width=500),
133-
],
134-
],
135-
)
136-
```
137-
138102
## Fetching the asset resolutions
139103

140104
You can fetch the PDF asset resolutions this way:

recipes/importing_pdf_assets.ipynb

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -156,52 +156,6 @@
156156
")"
157157
]
158158
},
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-
},
205159
{
206160
"attachments": {},
207161
"cell_type": "markdown",

0 commit comments

Comments
 (0)