Skip to content

Commit

Permalink
run pre-commit run --all-files
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Jul 13, 2024
1 parent 70aece1 commit 1e0a723
Show file tree
Hide file tree
Showing 28 changed files with 273 additions and 269 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down
12 changes: 6 additions & 6 deletions notebooks/2013-01-01-Calculating XRD patterns.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -46,7 +46,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -79,7 +79,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -108,7 +108,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/2013-01-01-Molecule.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down
8 changes: 6 additions & 2 deletions notebooks/2013-01-01-Ordering Disordered Structures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@
}
],
"source": [
"from pymatgen.transformations.standard_transformations import OrderDisorderedStructureTransformation\n",
"from pymatgen.transformations.standard_transformations import (\n",
" OrderDisorderedStructureTransformation,\n",
")\n",
"\n",
"trans = OrderDisorderedStructureTransformation()\n",
"\n",
Expand Down Expand Up @@ -159,7 +161,9 @@
"metadata": {},
"outputs": [],
"source": [
"from pymatgen.transformations.advanced_transformations import EnumerateStructureTransformation\n",
"from pymatgen.transformations.advanced_transformations import (\n",
" EnumerateStructureTransformation,\n",
")\n",
"\n",
"specie = {\"Cu\": 0.5, \"Au\": 0.5}\n",
"cuau = Structure.from_spacegroup(\"Fm-3m\", Lattice.cubic(3.677), [specie], [[0, 0, 0]])\n",
Expand Down
13 changes: 3 additions & 10 deletions notebooks/2013-01-01-Plotting the electronic structure of Fe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -91,13 +91,6 @@
"grid(True)\n",
"show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"from pymatgen.core import Structure\n",
"from pymatgen.io.vasp.sets import MPRelaxSet, batch_write_input\n",
"from pymatgen.symmetry.analyzer import SpacegroupAnalyzer\n",
"from pymatgen.transformations.advanced_transformations import EnumerateStructureTransformation"
"from pymatgen.transformations.advanced_transformations import (\n",
" EnumerateStructureTransformation,\n",
")"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -40,7 +40,11 @@
"\n",
"import matplotlib as mpl\n",
"import palettable\n",
"from pymatgen.analysis.phase_diagram import CompoundPhaseDiagram, PDPlotter, PhaseDiagram\n",
"from pymatgen.analysis.phase_diagram import (\n",
" CompoundPhaseDiagram,\n",
" PDPlotter,\n",
" PhaseDiagram,\n",
")\n",
"from pymatgen.core import Composition, Element\n",
"from pymatgen.entries.compatibility import MaterialsProjectCompatibility\n",
"from pymatgen.entries.computed_entries import ComputedEntry\n",
Expand All @@ -60,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -78,7 +82,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -110,7 +114,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -128,7 +132,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -157,7 +161,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -3026,7 +3030,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -4286,7 +4290,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -4315,7 +4319,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -4332,7 +4336,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -4390,7 +4394,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -4399,7 +4403,7 @@
"Text(0, 0.5, 'Li uptake per f.u.')"
]
},
"execution_count": 12,
"execution_count": null,
"metadata": {},
"output_type": "execute_result"
},
Expand Down
Loading

0 comments on commit 1e0a723

Please sign in to comment.