{ "cells": [ { "cell_type": "markdown", "id": "f4f14694", "metadata": {}, "source": [ "# PyOR Quantum\n", "## Author: Vineeth Thalakottoor\n", "## Extract the crystal orientation from crystdat.c \n", "\n", "Download crystdat.c: https://github.com/vosegaard/simpson/blob/master/crystdat.c" ] }, { "cell_type": "code", "execution_count": 1, "id": "e366ccbc", "metadata": {}, "outputs": [], "source": [ "# Define the source path\n", "SourcePath = '/media/HD2/Vineeth/PostDoc_Simulations/Github/PyOR_V1/PyOR_Combined/Source_Doc'\n", "\n", "# Add source path\n", "import sys\n", "sys.path.append(SourcePath)\n", "\n", "import PyOR_CrystalOrientation as CO" ] }, { "cell_type": "code", "execution_count": 2, "id": "25a16975", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Saved zcw28656_cryst to /media/HD2/Vineeth/PostDoc_Simulations/Github/PyOR_V1/PyOR_Combined/Examples/Solids/zcw28656_cryst.csv\n" ] } ], "source": [ "file_path = \"/media/HD2/Vineeth/PostDoc_Simulations/Github/PyOR_V1/PyOR_Combined/Examples/Solids/crystdat.c\"\n", "\n", "CO.Load_zcw28656(file_path)" ] } ], "metadata": { "kernelspec": { "display_name": "base", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.7" } }, "nbformat": 4, "nbformat_minor": 5 }