Skip to content

Commit db0d832

Browse files
committed
Remove unneeded print statement, switch example to 43
1 parent 7edd34a commit db0d832

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

caltechdata_api/customize_schema.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ def customize_schema_43(json_record):
168168
typeg = json_record["types"]["resourceTypeGeneral"]
169169
json_record["resourceType"] = {"resourceTypeGeneral": typeg}
170170

171-
print(json_record)
172-
173171
return json_record
174172

175173

example_download_and_upload.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{
1919
"data": {
2020
"application/vnd.jupyter.widget-view+json": {
21-
"model_id": "f2aac6cbb1ef448f8899b204ffb1dc2c",
21+
"model_id": "0f9182c455d94474ae1845c7047b4e0a",
2222
"version_major": 2,
2323
"version_minor": 0
2424
},
@@ -38,29 +38,29 @@
3838
},
3939
{
4040
"cell_type": "code",
41-
"execution_count": 5,
41+
"execution_count": 3,
4242
"metadata": {},
4343
"outputs": [
4444
{
4545
"name": "stdout",
4646
"output_type": "stream",
4747
"text": [
48-
"Successfully created record https://cd-sandbox.tind.io/records/733. \n"
48+
"Successfully created record https://cd-sandbox.tind.io/records/744. \n"
4949
]
5050
}
5151
],
5252
"source": [
5353
"#Now write a file to CaltechDATA test instance (cd-sandbox.tind.io)\n",
5454
"\n",
55-
"token = 'PASTE TOKEN HERE'\n",
55+
"token = 'TOKEN'\n",
5656
"\n",
57-
"metaf = open('example.json', 'r')\n",
57+
"metaf = open('example43.json', 'r')\n",
5858
"metadata = json.load(metaf)\n",
5959
"filen = 'logo.gif'\n",
6060
"\n",
6161
"production = False\n",
6262
"\n",
63-
"response = caltechdata_write(metadata, token, filen, production)\n",
63+
"response = caltechdata_write(metadata, token, filen, production, schema='43')\n",
6464
"print(response)"
6565
]
6666
},

0 commit comments

Comments
 (0)