Skip to content

Commit 344fddb

Browse files
authored
Merge pull request #16 from materials-data-facility/mdfcc-dev
Tutorial updates, function reorg
2 parents 966d6eb + ea667c0 commit 344fddb

5 files changed

Lines changed: 1404 additions & 422 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ install:
99
env:
1010
- TEST_ENV=travis
1111
script:
12-
- flake8 . && travis_wait 50 py.test
12+
- flake8 . && travis_wait 50 py.test --nbval-lax
1313
before_install:
1414
- openssl aes-256-cbc -K $encrypted_99dd1c7c40fb_key -iv $encrypted_99dd1c7c40fb_iv
1515
-in travis.tar.enc -out travis.tar -d

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Documentation is available on [Read the Docs](https://mdf-connect-client.readthe
2424

2525

2626
# Support
27-
This work was performed under financial assistance award 70NANB14H012 from U.S. Department of Commerce, National Institute of Standards and Technology as part of the [Center for Hierarchical Material Design (CHiMaD)](http://chimad.northwestern.edu). This work was also supported by the National Science Foundation as part of the [Midwest Big Data Hub](http://midwestbigdatahub.org) under NSF Award Number: 1636950 "BD Spokes: SPOKE: MIDWEST: Collaborative: Integrative Materials Design (IMaD): Leverage, Innovate, and Disseminate".
27+
This work was performed under financial assistance award 70NANB14H012 from U.S. Department of Commerce, National Institute of Standards and Technology as part of the [Center for Hierarchical Material Design (CHiMaD)](http://chimad.northwestern.edu). This work was performed under the following financial assistance award 70NANB19H005 from U.S. Department of Commerce, National Institute of Standards and Technology as part of the Center for Hierarchical Materials Design (CHiMaD). This work was also supported by the National Science Foundation as part of the [Midwest Big Data Hub](http://midwestbigdatahub.org) under NSF Award Number: 1636950 "BD Spokes: SPOKE: MIDWEST: Collaborative: Integrative Materials Design (IMaD): Leverage, Innovate, and Disseminate".

docs/tutorials/Basic_MDF_Connect_Submission_Example.ipynb

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"# The DC block only requires a title and author.\n",
5252
"mdfcc.create_dc_block(title=\"Simple Test Dataset\", authors=\"A. Person\")\n",
5353
"# The data field requires one data location.\n",
54-
"mdfcc.add_data(\"https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F\")"
54+
"mdfcc.add_data_source(\"https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F\")"
5555
]
5656
},
5757
{
@@ -61,9 +61,10 @@
6161
"outputs": [],
6262
"source": [
6363
"# Next, we'll add some optional settings.\n",
64-
"# The 'globus_publish' service will get us a permanent publication and a DOI.\n",
65-
"mdfcc.add_service(\"globus_publish\")\n",
64+
"# The 'mdf_publish' service will get us a publication and a DOI.\n",
65+
"mdfcc.add_service(\"mdf_publish\")\n",
6666
"# Since this is just an example and not a real submission, we'll set the 'test' flag to True.\n",
67+
"# The DOI we will get with a test submission is a sandbox DOI, which is not permanent.\n",
6768
"mdfcc.set_test(True)"
6869
]
6970
},
@@ -75,17 +76,18 @@
7576
{
7677
"data": {
7778
"text/plain": [
78-
"{'data': ['https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F'],\n",
79+
"{'data_sources': ['https://app.globus.org/file-manager?origin_id=e38ee745-6d04-11e5-ba46-22000b92c6ec&origin_path=%2Fcitrine_mdf_demo%2Falloy.pbe%2FAgAl%2F'],\n",
7980
" 'dc': {'creators': [{'creatorName': 'Person, A.',\n",
8081
" 'familyName': 'Person',\n",
8182
" 'givenName': 'A.'}],\n",
82-
" 'publicationYear': '2018',\n",
83+
" 'publicationYear': '2019',\n",
8384
" 'publisher': 'Materials Data Facility',\n",
8485
" 'resourceType': {'resourceType': 'Dataset',\n",
8586
" 'resourceTypeGeneral': 'Dataset'},\n",
8687
" 'titles': [{'title': 'Simple Test Dataset'}]},\n",
87-
" 'services': {'globus_publish': True},\n",
88-
" 'test': True}"
88+
" 'services': {'mdf_publish': True},\n",
89+
" 'test': True,\n",
90+
" 'update': False}"
8991
]
9092
},
9193
"execution_count": 5,
@@ -113,7 +115,10 @@
113115
{
114116
"data": {
115117
"text/plain": [
116-
"{'error': None, 'source_id': '_test_simple_test_dataset_v1-1', 'success': True}"
118+
"{'error': None,\n",
119+
" 'source_id': '_test_person_simple_v1.1',\n",
120+
" 'status_code': 202,\n",
121+
" 'success': True}"
117122
]
118123
},
119124
"execution_count": 6,
@@ -122,6 +127,8 @@
122127
}
123128
],
124129
"source": [
130+
"# NBVAL_SKIP\n",
131+
"\n",
125132
"# Let's submit the dataset.\n",
126133
"mdfcc.submit_dataset()"
127134
]
@@ -136,27 +143,29 @@
136143
"output_type": "stream",
137144
"text": [
138145
"\n",
139-
"Status of TEST convert submission _test_simple_test_dataset_v1-1 (Simple Test Dataset)\n",
140-
"Submitted by Jonathon Gaff at 2018-11-29T19:21:13.861237Z\n",
146+
"Status of TEST submission _test_person_simple_v1.1 (Simple Test Dataset)\n",
147+
"Submitted by Jonathon Gaff at 2019-08-07T16:11:58.505899Z\n",
141148
"\n",
142-
"Conversion initialization has not started yet.\n",
143-
"Conversion data download has not started yet.\n",
149+
"Submission initialization was successful.\n",
150+
"Connect data download is in progress.\n",
151+
"Primary data transfer has not started yet.\n",
144152
"Data conversion has not started yet.\n",
145-
"Ingestion preparation has not started yet.\n",
146-
"Ingestion initialization has not started yet.\n",
147-
"Ingestion data download has not started yet.\n",
148-
"Integration data download has not started yet.\n",
149-
"Globus Search ingestion has not started yet.\n",
150-
"Globus Publish publication has not started yet.\n",
153+
"Dataset curation has not started yet.\n",
154+
"MDF Search ingestion has not started yet.\n",
155+
"Data transfer to secondary destinations has not started yet.\n",
156+
"MDF Publish publication has not started yet.\n",
151157
"Citrine upload has not started yet.\n",
152158
"Materials Resource Registration has not started yet.\n",
153159
"Post-processing cleanup has not started yet.\n",
154160
"\n",
155-
"This submission is active.\n"
161+
"This submission is active.\n",
162+
"\n"
156163
]
157164
}
158165
],
159166
"source": [
167+
"# NBVAL_SKIP\n",
168+
"\n",
160169
"# Now we can check the status of our submission.\n",
161170
"mdfcc.check_status()"
162171
]

0 commit comments

Comments
 (0)