Skip to content

Commit

Permalink
Update optical.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysgt committed Nov 21, 2024
1 parent 6b33a60 commit b6cfe6d
Showing 1 changed file with 18 additions and 60 deletions.
78 changes: 18 additions & 60 deletions notebooks/optical.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "fcd0edc9-7d79-412b-84b7-1f3091cb090c",
"metadata": {
"pycharm": {
Expand Down Expand Up @@ -76,22 +76,14 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "1ea4e773-0af0-4748-b0e9-f2b2daca0745",
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(dimensions: 1170 x 935 pixels)\n"
]
}
],
"outputs": [],
"source": [
"optical_filepath = \"../tests/data/testOptical.png\"\n",
"optical_map = optical.Map(file_name = optical_filepath)"
Expand All @@ -112,7 +104,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "6e1489dc-78e1-4d00-98d1-243546fa3308",
"metadata": {
"pycharm": {
Expand Down Expand Up @@ -165,7 +157,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "546c6f28-3982-4401-8ce1-81176f144181",
"metadata": {
"pycharm": {
Expand All @@ -192,24 +184,16 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "8da89bf7-685b-4bda-97ac-84def01b93c2",
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Loaded EBSD data (dimensions: 852 x 734 pixels, step size: 3.0 um)\n"
]
}
],
"outputs": [],
"source": [
"ebsd_map = ebsd.Map(\"../tests/data/f-5-test-region\")"
"ebsd_map = ebsd.Map(\"../tests/data/testOpticalEBSD\")"
]
},
{
Expand Down Expand Up @@ -348,24 +332,14 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "88510a8e-a612-4705-bd9e-86b992ced80f",
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Finished building quaternion array (0:00:00) \n",
"Finished finding grain boundaries (0:00:01) \n",
"Finished finding grains (0:00:00) \n"
]
}
],
"outputs": [],
"source": [
"ebsd_map.data.generate('grain_boundaries', misori_tol=8)\n",
"ebsd_map.data.generate('grains', min_grain_size=200)"
Expand All @@ -385,22 +359,14 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "5cd4c838-c45f-443f-ba99-85903b63d6ec",
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Finished calculating grain average Schmid factors (0:00:01) \n"
]
}
],
"outputs": [],
"source": [
"ebsd_map.calc_average_grain_schmid_factors(load_vector=np.array([1,0,0]), slip_systems=None)"
]
Expand Down Expand Up @@ -764,7 +730,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "5db8cb21-0612-4900-9af5-7c69e059c73a",
"metadata": {
"pycharm": {
Expand All @@ -782,7 +748,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "e9c2b077-67b3-4eea-865f-39aacba48246",
"metadata": {
"pycharm": {
Expand Down Expand Up @@ -813,7 +779,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "223a0c85-4204-4803-984b-b026252b2152",
"metadata": {
"pycharm": {
Expand Down Expand Up @@ -879,22 +845,14 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "bb95be4e-5bca-43ec-a9c6-09243c000d8a",
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Finished finding grains (0:00:00) \n"
]
}
],
"outputs": [],
"source": [
"optical_map.data.generate('grains', algorithm='warp', min_grain_size=10)"
]
Expand Down Expand Up @@ -946,7 +904,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"id": "b6d7a470-7bcf-4b7f-8902-de3d53c0febc",
"metadata": {},
"outputs": [],
Expand Down

0 comments on commit b6cfe6d

Please sign in to comment.