Skip to content

Commit 3774f48

Browse files
Merge pull request #482 from carlocamilloni/main
small fix to general repulsion rule and updated regtest
2 parents 9ae8413 + c701cc8 commit 3774f48

File tree

9 files changed

+72087
-85780
lines changed

9 files changed

+72087
-85780
lines changed

src/multiego/ensemble.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -911,13 +911,14 @@ def set_sig_epsilon(meGO_LJ, needed_fields):
911911
)
912912

913913
# General repulsive term
914-
# this is used only when MD_p < RC_p eventually corrected by the ZF
914+
# this is used only when MD_th < MD_p < RC_p eventually corrected by the ZF
915915
# negative epsilon are used to identify non-attractive interactions
916916
meGO_LJ.loc[
917917
(
918918
np.maximum(meGO_LJ["probability"], meGO_LJ["rc_threshold"])
919919
< meGO_LJ["zf"] * np.maximum(meGO_LJ["rc_probability"], meGO_LJ["rc_threshold"])
920-
),
920+
)
921+
& (meGO_LJ["probability"] > meGO_LJ["md_threshold"]),
921922
"epsilon",
922923
] = -(meGO_LJ["epsilon_0"] / (np.log(meGO_LJ["zf"] * meGO_LJ["rc_threshold"]))) * meGO_LJ["distance"] ** 12 * (
923924
np.log(

test/test_outputs/abetaref/case_1/ffnonbonded.itp

+44,917-44,927
Large diffs are not rendered by default.

test/test_outputs/gpref/case_1/ffnonbonded.itp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3765,4 +3765,4 @@ OE2_GB_1_Protein_56 OE2_GB_1_Protein_56 1 0.000000e+00 1.965819e-06 ; 0.4321
37653765
O_GB_1_Protein_9 O_GB_1_Protein_53 1 0.000000e+00 3.000001e-06 ; 0.447668 -0.000003 1.0 1.0 1.0 1.0 0.000003 0.502491 True basic NaN NaN
37663766
O_GB_1_Protein_9 O_GB_1_Protein_54 1 0.000000e+00 3.000001e-06 ; 0.447668 -0.000003 1.0 1.0 1.0 1.0 0.000003 0.502491 True basic NaN NaN
37673767
O_GB_1_Protein_9 O_GB_1_Protein_55 1 0.000000e+00 3.000001e-06 ; 0.447668 -0.000003 1.0 1.0 1.0 1.0 0.000003 0.502491 True basic NaN NaN
3768-
O_GB_1_Protein_9 O_GB_1_Protein_9 1 0.000000e+00 3.000001e-06 ; 0.447668 -0.000003 1.0 1.0 1.0 1.0 0.000003 0.502491 True basic NaN NaN
3768+
O_GB_1_Protein_9 O_GB_1_Protein_9 1 0.000000e+00 3.000001e-06 ; 0.447668 -0.000003 1.0 1.0 1.0 1.0 0.000003 0.502491 True basic NaN NaN

test/test_outputs/gpref/case_2/ffnonbonded.itp

+4,007-7,453
Large diffs are not rendered by default.

test/test_outputs/lyso-bnz_ref/case_1/ffnonbonded.itp

+10,696-15,576
Large diffs are not rendered by default.

test/test_outputs/lyso-bnz_ref/case_2/ffnonbonded.itp

+10,696-15,576
Large diffs are not rendered by default.

test/test_outputs/ttrref/case_1/ffnonbonded.itp

+1,758-1,986
Large diffs are not rendered by default.

test/test_outputs/ttrref/case_1/topol_mego.top

+8-258
Large diffs are not rendered by default.

test/update_testing_data.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ while read case; do
2929
case=${case/"TEST_ROOT"/$TEST_DIR}
3030
IFS='#' read -r -a array <<< "$case"
3131
case=$(echo "${array[0]}")
32-
out_dir=$(python ${MEGO_ROOT}/multiego.py $case | grep "Output files written to" | awk '{print $5}')
32+
out_dir=$(python ${MEGO_ROOT}/multiego.py $case | grep "Output files written to" | awk '{print $6}')
3333
out_dir=$(realpath $out_dir)
3434
system=$(dirname $out_dir)
3535
system=$(basename $system)

0 commit comments

Comments
 (0)