Skip to content

Commit d6230ef

Browse files
authored
Merge pull request #18 from shogas/phase_orientation_0_7_update
Phase orientation 0.7 update
2 parents 5ee07e4 + 7e59d15 commit d6230ef

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

Phase & Orientation Mapping.ipynb

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@
208208
"cell_type": "markdown",
209209
"metadata": {},
210210
"source": [
211-
"Define a StructureLibrary containing specifying two crystal structures and orientations of each to include"
211+
"Define a StructureLibrary containing specifying two crystal structures and orientations of each to include. The in-plane orientations can be a list of known options (set `inplane_rotations=[0]` in the call to `correlate` below) or the starting points for the list of rotations given to `correlate` below."
212212
]
213213
},
214214
{
@@ -221,7 +221,7 @@
221221
" [('Si', si, 'cubic'),\n",
222222
" ('Ga', ga, 'hexagonal')])\n",
223223
"structure_library = structure_library_generator.get_orientations_from_stereographic_triangle(\n",
224-
" [(0, 10), (0, 10)], # Inplane rotations to include\n",
224+
" [(0,), (0,)], # In-plane rotations\n",
225225
" 5) # Angular resolution of the library"
226226
]
227227
},
@@ -250,7 +250,7 @@
250250
"cell_type": "markdown",
251251
"metadata": {},
252252
"source": [
253-
"Correlate with the patterns contained in the library with the test data. At this stage the top 3 (n_largest) matching results are retained."
253+
"Correlate with the patterns contained in the library with the test data. At this stage the top 3 (`n_largest`) matching results are retained. Test all in-plane rotations at 5 degree increments from 0 to 360."
254254
]
255255
},
256256
{
@@ -260,7 +260,7 @@
260260
"outputs": [],
261261
"source": [
262262
"indexer = IndexationGenerator(test_data, template_library)\n",
263-
"match_results = indexer.correlate(n_largest=3, keys=phase_names)"
263+
"match_results = indexer.correlate(n_largest=3, inplane_rotations=np.arange(0, 360, 5))"
264264
]
265265
},
266266
{
@@ -276,8 +276,7 @@
276276
"metadata": {},
277277
"outputs": [],
278278
"source": [
279-
"match_results.plot_best_matching_results_on_signal(test_data, phase_names, template_library,\n",
280-
" permanent_markers=False, cmap='viridis')"
279+
"match_results.plot_best_matching_results_on_signal(test_data, template_library, permanent_markers=False, cmap='viridis')"
281280
]
282281
},
283282
{
@@ -334,7 +333,7 @@
334333
"cell_type": "markdown",
335334
"metadata": {},
336335
"source": [
337-
"Define a structure library for expected phases, defined in section 1."
336+
"Define a structure library for the expected phases from section 1."
338337
]
339338
},
340339
{
@@ -405,7 +404,7 @@
405404
"cell_type": "markdown",
406405
"metadata": {},
407406
"source": [
408-
"Plot indexed peaks on top of the data"
407+
"Plot indexed peaks on top of the data using the template library from above to generate peak positions."
409408
]
410409
},
411410
{
@@ -414,9 +413,7 @@
414413
"metadata": {},
415414
"outputs": [],
416415
"source": [
417-
"indexation.plot_best_matching_results_on_signal(test_data, phase_names,\n",
418-
" vector_library, ediff, reciprocal_radius,\n",
419-
" permanent_markers=False)"
416+
"indexation.plot_best_matching_results_on_signal(test_data, template_library, permanent_markers=False)"
420417
]
421418
},
422419
{
@@ -441,7 +438,7 @@
441438
"cell_type": "markdown",
442439
"metadata": {},
443440
"source": [
444-
"Plot the match rate as a metric for mapping success"
441+
"Plot the match rate as a metric for mapping success."
445442
]
446443
},
447444
{
@@ -517,7 +514,7 @@
517514
"name": "python",
518515
"nbconvert_exporter": "python",
519516
"pygments_lexer": "ipython3",
520-
"version": "3.6.6"
517+
"version": "3.7.2"
521518
}
522519
},
523520
"nbformat": 4,

0 commit comments

Comments
 (0)