Skip to content

Commit

Permalink
add more diversity to rattled cell creation (#298)
Browse files Browse the repository at this point in the history
* add more diversity to rattled cell creation

* pre-commit auto-fixes

* update test files

* fix test files

* update test files!

* update test files

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
JaGeo and pre-commit-ci[bot] authored Dec 18, 2024
1 parent 025e8b2 commit f284d66
Show file tree
Hide file tree
Showing 153 changed files with 1,287 additions and 351 deletions.
8 changes: 4 additions & 4 deletions src/autoplex/data/common/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ def generate_randomized_structures(
structure=cell,
n_structures=1,
rattle_std=rattle_std,
rattle_seed=rattle_seed,
rattle_seed=rattle_seed + icell,
)
for cell in distorted_cells
for icell, cell in enumerate(distorted_cells)
]
if rattle_type == 0
else (
Expand All @@ -307,10 +307,10 @@ def generate_randomized_structures(
n_structures=1,
rattle_std=rattle_std,
min_distance=min_distance,
rattle_seed=rattle_seed,
rattle_seed=rattle_seed + icell,
rattle_mc_n_iter=rattle_mc_n_iter,
)
for cell in distorted_cells
for icell, cell in enumerate(distorted_cells)
]
if rattle_type == 1
else None
Expand Down
16 changes: 8 additions & 8 deletions tests/auto/phonons/test_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,16 +1376,16 @@ def test_workflow_with_different_makers(
"dft phonon static 1/2_mp-22905": "dft_ml_data_generation/phonon_static_1_ISPIN2/",
"dft phonon static 2/2_mp-22905": "dft_ml_data_generation/phonon_static_2_ISPIN2/",
"dft rattle static 1/12_mp-22905": "dft_ml_data_generation/rand_static_1_ISPIN2/",
"dft rattle static 2/12_mp-22905": "dft_ml_data_generation/rand_static_1_ISPIN2/",
"dft rattle static 3/12_mp-22905": "dft_ml_data_generation/rand_static_1_ISPIN2/",
"dft rattle static 2/12_mp-22905": "dft_ml_data_generation/rand_static_2_ISPIN2/",
"dft rattle static 3/12_mp-22905": "dft_ml_data_generation/rand_static_3_ISPIN2/",
"dft rattle static 4/12_mp-22905": "dft_ml_data_generation/rand_static_4_ISPIN2/",
"dft rattle static 5/12_mp-22905": "dft_ml_data_generation/rand_static_4_ISPIN2/",
"dft rattle static 6/12_mp-22905": "dft_ml_data_generation/rand_static_4_ISPIN2/",
"dft rattle static 7/12_mp-22905": "dft_ml_data_generation/rand_static_8_ISPIN2/",
"dft rattle static 5/12_mp-22905": "dft_ml_data_generation/rand_static_5_ISPIN2/",
"dft rattle static 6/12_mp-22905": "dft_ml_data_generation/rand_static_6_ISPIN2/",
"dft rattle static 7/12_mp-22905": "dft_ml_data_generation/rand_static_7_ISPIN2/",
"dft rattle static 8/12_mp-22905": "dft_ml_data_generation/rand_static_8_ISPIN2/",
"dft rattle static 9/12_mp-22905": "dft_ml_data_generation/rand_static_8_ISPIN2/",
"dft rattle static 10/12_mp-22905": "dft_ml_data_generation/rand_static_12_ISPIN2/",
"dft rattle static 11/12_mp-22905": "dft_ml_data_generation/rand_static_12_ISPIN2/",
"dft rattle static 9/12_mp-22905": "dft_ml_data_generation/rand_static_9_ISPIN2/",
"dft rattle static 10/12_mp-22905": "dft_ml_data_generation/rand_static_10_ISPIN2/",
"dft rattle static 11/12_mp-22905": "dft_ml_data_generation/rand_static_11_ISPIN2/",
"dft rattle static 12/12_mp-22905": "dft_ml_data_generation/rand_static_12_ISPIN2/",
}

Expand Down
128 changes: 64 additions & 64 deletions tests/test_data/vasp/MP_finetuning/rand_static_2/inputs/POSCAR
Original file line number Diff line number Diff line change
Expand Up @@ -6,67 +6,67 @@ Sn64
Sn
64
direct
0.2503733126447180 0.2498960854817054 0.0004867796088476 Sn
0.7511446549292652 0.2498240186734006 -0.0001759689875858 Sn
0.2511868800378561 0.7505767765759274 -0.0003528402071458 Sn
0.7504077687812226 0.7496517117874252 -0.0003500258749930 Sn
0.2501818502150033 0.2485620467951440 0.4987036132671621 Sn
0.7495774047440357 0.2492387922472261 0.5002361770892082 Sn
0.2493175614847184 0.7489385629004244 0.5011015293501037 Sn
0.7498303145836730 0.7500507517906069 0.4989292100693567 Sn
0.1245908613567799 0.3750833654629580 0.3741349542713128 Sn
0.6252823612333042 0.3745485813792617 0.3747807733793715 Sn
0.1245477787669349 0.8763921062317642 0.3749898559671941 Sn
0.6242050621834674 0.8756181954242194 0.3740824574476188 Sn
0.1251569744299893 0.3735271818161707 0.8740017827283844 Sn
0.6251479538848635 0.3755550051480165 0.8751287942891984 Sn
0.1249130828749419 0.8747737011996671 0.8738887955957132 Sn
0.6244589907624101 0.8746538003259940 0.8757944953685487 Sn
0.2502582512531093 -0.0013250381112606 0.2502435699546551 Sn
0.7497105858899636 -0.0005087504365841 0.2504597140864905 Sn
0.2507748624759585 0.5006999169283438 0.2493692740358038 Sn
0.7497676070047357 0.5002489657822833 0.2507331849298837 Sn
0.2496398697300524 -0.0001395346663143 0.7491685180851272 Sn
0.7491009737577287 0.0006106654336720 0.7510193016423407 Sn
0.2499458797604806 0.5007542195403583 0.7502717927405882 Sn
0.7495151509972257 0.5002716120498357 0.7511559334374099 Sn
0.1249730744265513 0.1261759303769625 0.1230310929991308 Sn
0.6256177126134791 0.1250654214724141 0.1247752767379069 Sn
0.1250689641274809 0.6235062140799277 0.1248349024425383 Sn
0.6252683930742156 0.6261107324627468 0.1246104865853140 Sn
0.1243923650387172 0.1246228972985552 0.6256879835886860 Sn
0.6252470776108492 0.1246018511219467 0.6253857534997576 Sn
0.1250729600243322 0.6257279990332799 0.6244723619296555 Sn
0.6247537408149560 0.6247053054945709 0.6239000743535104 Sn
0.0002225534406770 0.2501961998334137 0.2500038430916681 Sn
0.4998236926758658 0.2489362578219926 0.2496838579755020 Sn
-0.0002575720095194 0.7493970370134321 0.2498787834105144 Sn
0.5003036702156434 0.7514175900624975 0.2501312064587293 Sn
0.0001935656894936 0.2499440491044303 0.7485579199774166 Sn
0.4999800731166898 0.2500452668779996 0.7518512849332316 Sn
-0.0001445716415923 0.7502266322294056 0.7499739118717015 Sn
0.4991216632616513 0.7508589048746532 0.7505651260536498 Sn
0.3755945114034235 0.3743165368174741 0.1260542901808538 Sn
0.8739464187308150 0.3754410608645434 0.1266462683373348 Sn
0.3742555482202751 0.8745743908204464 0.1250748944124606 Sn
0.8746216056521650 0.8738345766614273 0.1250515294869280 Sn
0.3742016104102115 0.3753559351826942 0.6243089935319566 Sn
0.8761648754285913 0.3744113347560695 0.6247579500490418 Sn
0.3756114105307827 0.8740749262720393 0.6251709507756920 Sn
0.8759824018817803 0.8737918729232983 0.6251387642240821 Sn
0.0001953186408107 0.0005875901908468 -0.0009296480449858 Sn
0.4990075918967128 0.0003922726684300 0.0002232030900132 Sn
0.0001882614938162 0.5002603781200134 -0.0005110823312504 Sn
0.5001745535966855 0.5002202628200504 -0.0005368810522204 Sn
0.0014022495895885 0.0003561159266102 0.4991046587730461 Sn
0.5004934422797345 -0.0007325359864720 0.5005915447209599 Sn
0.0008707591219935 0.4993832044348247 0.5007240391450215 Sn
0.5003102314250351 0.5006178311018206 0.5014255619666650 Sn
0.3748155750424826 0.1244335187768860 0.3743314726745249 Sn
0.8743868660813826 0.1249420531046294 0.3752563976588899 Sn
0.3752079509380614 0.6256216814328562 0.3750097717582917 Sn
0.8760924243797803 0.6248010933617257 0.3770443821451507 Sn
0.3754702292674607 0.1243557909465920 0.8741951553861790 Sn
0.8753626090624678 0.1248320533391684 0.8755366173103053 Sn
0.3753556685231106 0.6249452643863054 0.8743635800379228 Sn
0.8738614948449471 0.6246644152846226 0.8756436387948766 Sn
0.2501934526050810 0.2493172177513113 -0.0002844694372008 Sn
0.7495979765108983 0.2506448973282562 -0.0003104035748894 Sn
0.2503744207748377 0.7515107940713422 0.0009491217035763 Sn
0.7496699017758550 0.7497396296335065 0.0003422020195538 Sn
0.2487458926134457 0.2493520872836739 0.5003704542163893 Sn
0.7499065704844374 0.2514543794272010 0.4995352005540028 Sn
0.2492132331479411 0.7493313951438730 0.5000105523670758 Sn
0.7498791261430187 0.7516762587780720 0.4997000388583091 Sn
0.1250409185923472 0.3756645195226288 0.3749188456606506 Sn
0.6254175743965766 0.3752967977453219 0.3756292134405290 Sn
0.1239418889716647 0.8756071508116079 0.3748960709438432 Sn
0.6251406767500020 0.8747094015334672 0.3762468818641062 Sn
0.1234614958389734 0.3760516767476623 0.8744896824609051 Sn
0.6261491307039876 0.3759178223697677 0.8757628291750121 Sn
0.1256223929638547 0.8767032647841381 0.8745528525342773 Sn
0.6245631385435000 0.8745070533487268 0.8756953088876385 Sn
0.2490235966613848 0.0007599569594730 0.2497832186443273 Sn
0.7491975449344229 -0.0008098864076621 0.2494011732524402 Sn
0.2488831433873291 0.5003864008465949 0.2506401756390957 Sn
0.7507205047694329 0.4995291569289190 0.2502314299685450 Sn
0.2500039124071644 0.0005197307219532 0.7503343425351046 Sn
0.7500678508772778 -0.0013966642551653 0.7498748043791876 Sn
0.2500833308086476 0.4994778336561561 0.7497976972433643 Sn
0.7490235487072509 0.4997586685964865 0.7503801929074725 Sn
0.1265700626784473 0.1242388838370158 0.1249819819436939 Sn
0.6242773941477037 0.1249304305532567 0.1248318509460426 Sn
0.1256259720483365 0.6257321135382914 0.1251223683212767 Sn
0.6249139518804425 0.6258917073648281 0.1251351249934697 Sn
0.1261397034439370 0.1237719198031641 0.6263392657846134 Sn
0.6245357378880071 0.1241835010321769 0.6249663649945626 Sn
0.1241254027586142 0.6254275946362248 0.6246522933759240 Sn
0.6252159658497909 0.6242654670765541 0.6248328248401732 Sn
0.0000728504601795 0.2498584170411137 0.2511961914261532 Sn
0.5004402745279326 0.2501530751616320 0.2486047052445801 Sn
0.0002842337091294 0.7509290389804714 0.2494814417966611 Sn
0.4998509236866056 0.7477259618085338 0.2490638317491602 Sn
-0.0015662897505352 0.2500782541164053 0.7498870898631396 Sn
0.4999204720896485 0.2496716008508060 0.7507659465131941 Sn
-0.0009265309434983 0.7499442906402741 0.7504482248426877 Sn
0.4998651749473899 0.7499317616647870 0.7493798995730118 Sn
0.3747482488979561 0.3755398868507389 0.1234822442354421 Sn
0.8748812310020189 0.3745609247426861 0.1249471601434275 Sn
0.3763326597813497 0.8746643293503648 0.1261193608226092 Sn
0.8758269527982881 0.8750224690064803 0.1250654656213165 Sn
0.3751362097197648 0.3743798303026254 0.6254711096643116 Sn
0.8745395181467515 0.3750268626648131 0.6233495928086034 Sn
0.3743511875151157 0.8754021615997695 0.6241556450497004 Sn
0.8752509962545894 0.8746187836775549 0.6257441615601467 Sn
0.0009454258290805 0.0001334965548518 -0.0000111738200414 Sn
0.5000303903415880 -0.0000161171241500 0.0008956065936456 Sn
0.0018825669747117 0.4989978181679601 -0.0007728130586014 Sn
0.5010245097092854 0.4991415071487177 -0.0010311654133907 Sn
0.0015898377373910 -0.0002061352233813 0.4998119996199313 Sn
0.4996175812161582 0.0004369149617785 0.4991484023854389 Sn
0.0013335676669852 0.5005659627637029 0.4999610687929847 Sn
0.4995853577451097 0.5000813620557373 0.5007846103623500 Sn
0.3769671765424240 0.1261339365079175 0.3757612613894694 Sn
0.8750323516435966 0.1259263065145925 0.3747396499648628 Sn
0.3752494317161263 0.6258798533130909 0.3754560294693186 Sn
0.8745004404494010 0.6238480218148814 0.3753769069685884 Sn
0.3751011879469250 0.1256989471468796 0.8750435076551396 Sn
0.8747147184768812 0.1257921135691466 0.8757487935879277 Sn
0.3734148054402405 0.6238582868826312 0.8750975790747180 Sn
0.8749509695449562 0.6248594687043967 0.8756192382844804 Sn
Loading

0 comments on commit f284d66

Please sign in to comment.