Skip to content

Commit f20b221

Browse files
pm-blancopmblanco
andauthored
fix functional tests (#154)
Co-authored-by: pmblanco <pablomiguel.blanco@udl.cat>
1 parent 5b49a0b commit f20b221

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

samples/branched_polyampholyte.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@
6969
if args.test:
7070
MD_steps_per_sample = 1
7171
ideal=True
72-
N_polyampholyte_chains = 1
72+
N_samples = 2000 # improve the sampling for testing
73+
7374
solvent_permitivity = 78.3
7475
N_polyampholyte_chains = 5
7576
polyampholyte_concentration = 5.56e-4 *pmb.units.mol/pmb.units.L
@@ -251,4 +252,4 @@
251252
data_path.mkdir(parents=True, exist_ok=True)
252253
time_series=pd.DataFrame(time_series)
253254
filename=built_output_name(input_dict={"pH":pH_value})
254-
time_series.to_csv(data_path / f"{filename}_time_series.csv", index=False)
255+
time_series.to_csv(data_path / f"{filename}_time_series.csv", index=False)

samples/peptide_cpH.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
if args.test:
7373
MD_steps_per_sample = 1
7474
ideal=True
75+
N_samples = 2000 # improve sampling for testing
7576

7677
# Peptide parameters
7778
sequence = args.sequence
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
csalt,cmon,pH,pKa,n_blocks,block_size,mean,err_mean,n_eff,tau_int
2+
value,value,value,value,nan,nan,alpha,alpha,alpha,alpha
3+
0.01,0.435,9,4,16.0,5.625,0.9938888888888889,0.0009782669231040671,69.726915596805,6.453748830676951
4+
0.01,0.435,3,4,16.0,5.625,0.03822222222222222,0.002196173720894064,49.65617564819513,9.062316904704018
5+
0.01,0.435,7,4,16.0,5.625,0.7143333333333334,0.008198146056605243,20.631416329721212,21.811396406718313
6+
0.01,0.435,5,4,16.0,5.625,0.24022222222222223,0.005238508882176492,29.478155904183986,15.265541082769019

0 commit comments

Comments
 (0)