From 0d298b6b690a44cfedb8ce744cea60c5990dd484 Mon Sep 17 00:00:00 2001 From: Sarath Menon <sarathmenon@mailbox.org> Date: Mon, 24 Apr 2023 22:14:48 +0200 Subject: [PATCH] update notebooks --- dgm_workshop/01_intro_to_python.ipynb | 6 +++--- dgm_workshop/02_workflows_in_materials_science.ipynb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dgm_workshop/01_intro_to_python.ipynb b/dgm_workshop/01_intro_to_python.ipynb index 8be6f94..4585091 100644 --- a/dgm_workshop/01_intro_to_python.ipynb +++ b/dgm_workshop/01_intro_to_python.ipynb @@ -760,13 +760,13 @@ " \"\"\"\n", " Calculate area\n", " \"\"\"\n", - " self.area = np.pi * self.radius**2\n", + " self.area = 3.14 * self.radius**2\n", "\n", " def get_circumference(self):\n", " \"\"\"\n", " Calculate circumference\n", " \"\"\"\n", - " self.circumference = 2.0 * np.pi * self.radius" + " self.circumference = 2.0 * 3.14 * self.radius" ] }, { @@ -1018,7 +1018,7 @@ }, "outputs": [], "source": [ - "df = pd.read_csv(\"ti_alloy_data.csv\")" + "df = pd.read_csv(\"dax-ti-static.csv\")" ] }, { diff --git a/dgm_workshop/02_workflows_in_materials_science.ipynb b/dgm_workshop/02_workflows_in_materials_science.ipynb index 1eee96c..b7dcc8b 100644 --- a/dgm_workshop/02_workflows_in_materials_science.ipynb +++ b/dgm_workshop/02_workflows_in_materials_science.ipynb @@ -329,7 +329,7 @@ "metadata": {}, "outputs": [], "source": [ - "structure = pr.create.structure.bulk('Al', cubic=True)" + "structure = project.create.structure.bulk('Al', cubic=True)" ] }, { @@ -431,7 +431,7 @@ "metadata": {}, "outputs": [], "source": [ - "elastic_job = job.create_job(pr.job_type.ElasticMatrixJob, \"elastic_job\")" + "elastic_job = job.create_job(project.job_type.ElasticMatrixJob, \"elastic_job\")" ] }, { -- GitLab