# HG changeset patch # User muon-spectroscopy-computational-project # Date 1689686800 0 # Node ID 40071ff7728589fd2d6e4315b44961c50f03bc10 # Parent 276a25ab05f26f2223d9c9aff5080b391cd63bdb planemo upload for repository https://github.com/muon-spectroscopy-computational-project/muon-galaxy-tools/main/pm_muairss_read commit 70a4d37ecdf5d586703cfc509922311e95d3205c diff -r 276a25ab05f2 -r 40071ff77285 config.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/config.py Tue Jul 18 13:26:40 2023 +0000 @@ -0,0 +1,18 @@ +import yaml + + +def main(): + with open("params.yaml") as f: + existing_params = yaml.safe_load(f) + + with open("incoming_params") as f: + incoming_params = yaml.safe_load(f) + + merged_params = {**existing_params, **incoming_params} + + with open("params.yaml", "w") as f: + yaml.safe_dump(merged_params, f) + + +if __name__ == "__main__": + main() diff -r 276a25ab05f2 -r 40071ff77285 muon_macros.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/muon_macros.xml Tue Jul 18 13:26:40 2023 +0000 @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + ^[\s\d,\[\]]+$ + + + + + + 2.2.1 + 10.5281/zenodo.7733979 + 10.5281/zenodo.6517626 + 0.3.0 + 10.5281/zenodo.8026711 + 10.5281/zenodo.7025643 + \ No newline at end of file diff -r 276a25ab05f2 -r 40071ff77285 pm_muairss_read.xml --- a/pm_muairss_read.xml Fri Feb 03 15:39:29 2023 +0000 +++ b/pm_muairss_read.xml Tue Jul 18 13:26:40 2023 +0000 @@ -1,67 +1,165 @@ - + run clustering for optimised structures - - 0.2.3 0 - - - - @software{Sturniolo_pymuon-suite_2022, - author = {Sturniolo, Simone and Liborio, Leandro and Chadwick, Eli and Murgatroyd, Laura and Laverack, Adam and Mudaraddi, Anish and {Muon Spectroscopy Computational Project}}, - license = {GPL-3.0}, - month = {8}, - title = {{pymuon-suite}}, - url = {https://github.com/muon-spectroscopy-computational-project/pymuon-suite}, - version = {v0.2.3}, - doi = {10.5281/zenodo.7025644}, - year = {2022} - } - + muon_macros.xml + + + ^[\s\d,\[\]]+$ + + + - pymuonsuite + pymuonsuite + zip + + + clustering_method: $clustering.clustering_method +#if $clustering.clustering_method == "hier": +clustering_hier_t: $clustering.clustering_hier_t +#else if $clustering.clustering_method == "kmeans": +clustering_kmeans_k: $clustering.clustering_kmeans_k +#end if +#if $clustering_save.clustering_save_format != "none": +clustering_save_type: structures +clustering_save_format: $clustering_save.clustering_save_format +supercell: $clustering_save.supercell.replace('__ob__', '[').replace('__cb__', ']') +#if $clustering_save.clustering_save_format == "cell": +mu_symbol: $clustering_save.mu_symbol +#end if +#end if + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + clustering_save["clustering_save_format"] != "none" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - @TOOL_CITATION@ - + @PYMUONSUITE_CITATION@ 10.1063/1.5024450 10.1063/1.5085197 10.1063/5.0012381 diff -r 276a25ab05f2 -r 40071ff77285 test-data/Si_uep_min_cluster_1.cell --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/Si_uep_min_cluster_1.cell Tue Jul 18 13:26:40 2023 +0000 @@ -0,0 +1,91 @@ +####################################################### +#CASTEP cell file: Si_clusters/uep/Si_uep_min_cluster_1.cell +#Created using the Atomic Simulation Environment (ASE)# +####################################################### + +%BLOCK LATTICE_CART +10.950902 0.000000 0.000000 + 0.000000 10.950902 -0.000000 + 0.000000 -0.000000 10.950902 +%ENDBLOCK LATTICE_CART + +%BLOCK POSITIONS_ABS +Si 0.000000 0.000000 0.000000 +Si 4.106588 4.106588 1.368863 +Si 2.737726 0.000000 2.737726 +Si 4.106588 1.368863 4.106588 +Si 0.000000 2.737726 2.737726 +Si 1.368863 1.368863 1.368863 +Si 1.368863 4.106588 4.106588 +Si 2.737726 2.737726 0.000000 +Si 0.000000 0.000000 5.475451 +Si 4.106588 4.106588 6.844314 +Si 2.737726 0.000000 8.213177 +Si 4.106588 1.368863 9.582039 +Si 0.000000 2.737726 8.213177 +Si 1.368863 1.368863 6.844314 +Si 1.368863 4.106588 9.582039 +Si 2.737726 2.737726 5.475451 +Si 0.000000 5.475451 0.000000 +Si 4.106588 9.582039 1.368863 +Si 2.737726 5.475451 2.737726 +Si 4.106588 6.844314 4.106588 +Si 0.000000 8.213177 2.737726 +Si 1.368863 6.844314 1.368863 +Si 1.368863 9.582039 4.106588 +Si 2.737726 8.213177 0.000000 +Si 0.000000 5.475451 5.475451 +Si 4.106588 9.582039 6.844314 +Si 2.737726 5.475451 8.213177 +Si 4.106588 6.844314 9.582039 +Si 0.000000 8.213177 8.213177 +Si 1.368863 6.844314 6.844314 +Si 1.368863 9.582039 9.582039 +Si 2.737726 8.213177 5.475451 +Si 5.475451 0.000000 0.000000 +Si 9.582039 4.106588 1.368863 +Si 8.213177 0.000000 2.737726 +Si 9.582039 1.368863 4.106588 +Si 5.475451 2.737726 2.737726 +Si 6.844314 1.368863 1.368863 +Si 6.844314 4.106588 4.106588 +Si 8.213177 2.737726 0.000000 +Si 5.475451 0.000000 5.475451 +Si 9.582039 4.106588 6.844314 +Si 8.213177 0.000000 8.213177 +Si 9.582039 1.368863 9.582039 +Si 5.475451 2.737726 8.213177 +Si 6.844314 1.368863 6.844314 +Si 6.844314 4.106588 9.582039 +Si 8.213177 2.737726 5.475451 +Si 5.475451 5.475451 0.000000 +Si 9.582039 9.582039 1.368863 +Si 8.213177 5.475451 2.737726 +Si 9.582039 6.844314 4.106588 +Si 5.475451 8.213177 2.737726 +Si 6.844314 6.844314 1.368863 +Si 6.844314 9.582039 4.106588 +Si 8.213177 8.213177 0.000000 +Si 5.475451 5.475451 5.475451 +Si 9.582039 9.582039 6.844314 +Si 8.213177 5.475451 8.213177 +Si 9.582039 6.844314 9.582039 +Si 5.475451 8.213177 8.213177 +Si 6.844314 6.844314 6.844314 +Si 6.844314 9.582039 9.582039 +Si 8.213177 8.213177 5.475451 +H:nu 2.737259 2.736006 2.738945 +%ENDBLOCK POSITIONS_ABS + +%BLOCK SPECIES_GAMMA +radsectesla +H:nu 851615456.5978916 +%ENDBLOCK SPECIES_GAMMA + +%BLOCK SPECIES_MASS +AMU +H:nu 0.1134289259 +%ENDBLOCK SPECIES_MASS + +KPOINT_MP_GRID: 1 1 1 +FIX_ALL_CELL: True diff -r 276a25ab05f2 -r 40071ff77285 test-data/Si_uep_min_cluster_2.cell --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/Si_uep_min_cluster_2.cell Tue Jul 18 13:26:40 2023 +0000 @@ -0,0 +1,91 @@ +####################################################### +#CASTEP cell file: Si_clusters/uep/Si_uep_min_cluster_2.cell +#Created using the Atomic Simulation Environment (ASE)# +####################################################### + +%BLOCK LATTICE_CART +10.950902 0.000000 0.000000 + 0.000000 10.950902 -0.000000 + 0.000000 -0.000000 10.950902 +%ENDBLOCK LATTICE_CART + +%BLOCK POSITIONS_ABS +Si 0.000000 0.000000 0.000000 +Si 4.106588 4.106588 1.368863 +Si 2.737726 0.000000 2.737726 +Si 4.106588 1.368863 4.106588 +Si 0.000000 2.737726 2.737726 +Si 1.368863 1.368863 1.368863 +Si 1.368863 4.106588 4.106588 +Si 2.737726 2.737726 0.000000 +Si 0.000000 0.000000 5.475451 +Si 4.106588 4.106588 6.844314 +Si 2.737726 0.000000 8.213177 +Si 4.106588 1.368863 9.582039 +Si 0.000000 2.737726 8.213177 +Si 1.368863 1.368863 6.844314 +Si 1.368863 4.106588 9.582039 +Si 2.737726 2.737726 5.475451 +Si 0.000000 5.475451 0.000000 +Si 4.106588 9.582039 1.368863 +Si 2.737726 5.475451 2.737726 +Si 4.106588 6.844314 4.106588 +Si 0.000000 8.213177 2.737726 +Si 1.368863 6.844314 1.368863 +Si 1.368863 9.582039 4.106588 +Si 2.737726 8.213177 0.000000 +Si 0.000000 5.475451 5.475451 +Si 4.106588 9.582039 6.844314 +Si 2.737726 5.475451 8.213177 +Si 4.106588 6.844314 9.582039 +Si 0.000000 8.213177 8.213177 +Si 1.368863 6.844314 6.844314 +Si 1.368863 9.582039 9.582039 +Si 2.737726 8.213177 5.475451 +Si 5.475451 0.000000 0.000000 +Si 9.582039 4.106588 1.368863 +Si 8.213177 0.000000 2.737726 +Si 9.582039 1.368863 4.106588 +Si 5.475451 2.737726 2.737726 +Si 6.844314 1.368863 1.368863 +Si 6.844314 4.106588 4.106588 +Si 8.213177 2.737726 0.000000 +Si 5.475451 0.000000 5.475451 +Si 9.582039 4.106588 6.844314 +Si 8.213177 0.000000 8.213177 +Si 9.582039 1.368863 9.582039 +Si 5.475451 2.737726 8.213177 +Si 6.844314 1.368863 6.844314 +Si 6.844314 4.106588 9.582039 +Si 8.213177 2.737726 5.475451 +Si 5.475451 5.475451 0.000000 +Si 9.582039 9.582039 1.368863 +Si 8.213177 5.475451 2.737726 +Si 9.582039 6.844314 4.106588 +Si 5.475451 8.213177 2.737726 +Si 6.844314 6.844314 1.368863 +Si 6.844314 9.582039 4.106588 +Si 8.213177 8.213177 0.000000 +Si 5.475451 5.475451 5.475451 +Si 9.582039 9.582039 6.844314 +Si 8.213177 5.475451 8.213177 +Si 9.582039 6.844314 9.582039 +Si 5.475451 8.213177 8.213177 +Si 6.844314 6.844314 6.844314 +Si 6.844314 9.582039 9.582039 +Si 8.213177 8.213177 5.475451 +H:nu 4.793737 3.419626 4.793651 +%ENDBLOCK POSITIONS_ABS + +%BLOCK SPECIES_GAMMA +radsectesla +H:nu 851615456.5978916 +%ENDBLOCK SPECIES_GAMMA + +%BLOCK SPECIES_MASS +AMU +H:nu 0.1134289259 +%ENDBLOCK SPECIES_MASS + +KPOINT_MP_GRID: 1 1 1 +FIX_ALL_CELL: True diff -r 276a25ab05f2 -r 40071ff77285 test-data/clustout-uep-kmeans.dat --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/clustout-uep-kmeans.dat Tue Jul 18 13:26:40 2023 +0000 @@ -0,0 +1,2 @@ +1 1?2 -8\.4\d+ -8\.4\d+ \d\.\d+e?-?\d{0,2} \d\.\d+ \d\.\d+ \d\.\d+ +2 1?2 -8\.4\d+ -8\.4\d+ \d\.\d+e?-?\d{0,2} \d\.\d+ \d\.\d+ \d\.\d+ diff -r 276a25ab05f2 -r 40071ff77285 test-data/clustout-uep-kmeans.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/clustout-uep-kmeans.txt Tue Jul 18 13:26:40 2023 +0000 @@ -0,0 +1,66 @@ + +**************************** +| | +| PYMUON-SUITE | +| MuAirss Clusters report | +| | +**************************** + +Name: Si +Date: 2022-06-21 09:32:03.839222 +Structure file(s): input_structure.cell +Parameter file: params.yaml + +Clustering method: k-Means + k = 2 + + +******************* + +Clusters for Si: +CALCULATOR: uep + 2 clusters found + + + ----------- + Cluster 1 + ----------- + Structures: 12 + + Energy (eV): + Minimum Average StDev + -8.49 -8.49 0.00 + + Minimum energy structure: Si_1 + + + Structure list: + Si_1 Si_2 Si_5 Si_6 + Si_7 Si_8 Si_9 Si_10 + Si_11 Si_12 Si_13 Si_14 + + ----------- + Cluster 2 + ----------- + Structures: 2 + + Energy (eV): + Minimum Average StDev + -8.43 -8.43 0.00 + + Minimum energy structure: Si_3 + + + Structure list: + Si_3 Si_4 + + ---------- + + Similarity (ranked): + 1 <--> 2 (distance = 0.218) + +-------------------------- + + +========================== +