Skip to content

Commit

Permalink
Minor edit batch files
Browse files Browse the repository at this point in the history
  • Loading branch information
atomprobe-tc committed Jan 16, 2024
1 parent 1b2bd49 commit fb0a996
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 14 deletions.
3 changes: 2 additions & 1 deletion debug/spctrscpy.batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ datasource="../../../../../paper_paper_paper/scidat_nomad_ebsd/bb_analysis/data/
examples="InGaN_nanowires_spectra.edaxh5"
examples="AlGaO.nxs"
examples="GeSi.nxs"
examples="VInP_108_L2.h5"
examples="GeSn_13.nxs"
# examples="VInP_108_L2.h5"

for example in $examples; do
echo $example
Expand Down
45 changes: 32 additions & 13 deletions debug/spctrscpy.dev.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "6da1aea0-545b-446b-a3d1-1574af72f6c6",
"metadata": {},
"outputs": [],
Expand All @@ -18,10 +18,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "3889c47f-11c4-4bf3-97de-04fc52f0798d",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/home/kaiobach/Research/paper_paper_paper/scidat_nomad_ebsd/bb_analysis/data/development_spctrscpy/pdi/InGaN_nanowires_spectra.edaxh5\n"
]
}
],
"source": [
"src = \"/home/kaiobach/Research/paper_paper_paper/scidat_nomad_ebsd/bb_analysis/data/development_spctrscpy\"\n",
"fnms = [(\"pdi\", \"InGaN_nanowires_spectra.edaxh5\"),\n",
Expand All @@ -31,35 +39,46 @@
" (\"ikz\", \"VInP_108_L2.h5\"),\n",
" (\"fhi\", \"CG71113 1513 HAADF-DF4-DF2-BF 1.2 Mx STEM.emd\"),\n",
" (\"adrien\", \"1613_Si_HAADF_610_kx.emd\"),\n",
" (\"bruker\", \"pynx/46_ES-LP_L1_brg.bcf\"),\n",
" (\"emd\", \"pynx/1613_Si_HAADF_610_kx.emd\"),\n",
" (\"digitalmicrograph\", \"pynx/EELS_map_2_ROI_1_location_4.dm3\"),\n",
" (\"oxfordinstruments\", \"pynx/H5OINA_examples_Specimen_1_Map_EDS_+_EBSD_Map_Data_2.h5oina\")]\n",
" (\"adrien\", \"46_ES-LP_L1_brg.bcf\"),\n",
" (\"benedikt\", \"EELS_map_2_ROI_1_location_4.dm3\"),\n",
" (\"phillippe\", \"H5OINA_examples_Specimen_1_Map_EDS_+_EBSD_Map_Data_2.h5oina\")]\n",
"# pyUSID, HSMA\n",
"case = 5 # 5 # len(fnms) - 1 # len(fnms) - 1\n",
"case = 0 # 5 # len(fnms) - 1 # len(fnms) - 1\n",
"fnm = f\"{src}/{fnms[case][0]}/{fnms[case][1]}\"\n",
"print(fnm)"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "a4d9ef96-3c70-4c12-80ba-ea4a7d716d47",
"metadata": {},
"outputs": [],
"source": [
"H5Web(fnm)"
"# H5Web(fnm)"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "221abf67-0d88-4088-9cc7-e0d9b85c4699",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"application/x-hdf5": "/home/kaiobach/Research/hu_hu_hu/sprint17/pynx/pynxtools/debug/spctrscpy/debug.InGaN_nanowires_spectra.edaxh5.nxs",
"text/plain": [
"<jupyterlab_h5web.widget.H5Web object>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# resulting NeXus artifact\n",
"H5Web(f\"debug.{fnms[case][1]}.nxs\")"
"H5Web(f\"spctrscpy/debug.{fnms[case][1]}.nxs\")"
]
},
{
Expand Down

0 comments on commit fb0a996

Please sign in to comment.