-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test and Reproducibility for Dialysis of Weak Polyelectrolytes (#36)
* Add test of G-RxMC (ideal). * Adjust G-RxMC test * Add test on cpH * add test mode to speed up CI tests, get rid of numpy warnings, clean up sample scripts, change order of the CI tests * Remove plot option from samples * CI check * Test and reproducibility of Landsgesell dialysis of weak PE * Changes suggested by PMB * remove verbose from test, add README on how to reproduce the data --------- Co-authored-by: Pablo M. Blanco <pblanco@dama.icp.uni-stuttgart.de>
- Loading branch information
1 parent
8a8f2c5
commit 55b78a2
Showing
10 changed files
with
1,621 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
The scripts in this folder are designed to reproduce the data and plots showcased in our publication [1]. | ||
To reproduce the data, one simply needs to run the following script: | ||
```bash | ||
python3 create_paper_data.py --fig_label 7a --mode long-run --plot | ||
``` | ||
where the previous line will run the script to produce Fig. 7a in Ref.[1] The user can use the argparse argument `--fig_label` to create any of the plots that we presented in that publication as benchmarks: 7a, 7b, 7c, 8a, 8b, 9. The argparse `--mode` controls the statiscal accuracy (i.e. the number of samples) that the script measures. The mode `long-run` should be used to generate data with the same statistical accuracy than in Ref.[1]. The mode `short-run` can be used for a shorter run for testing or to trying out the scripts for each of our benchmarks: | ||
- peptide.py: for the peptide benchmarks | ||
- globular_protein.py: for the globular protein benchmarks | ||
- weak_polyelectrolyte_dialysis.py: for the weak polyelectrolyte dialysis benchmarks | ||
The optional argparse argument `--plot` controls if the scripts generates the corresponding plot or if the data is simply stored to file. We note that the format of the plots can differ from that of our publication [1]. This scripts are part of the continous integration (CI) scheme of the pyMBE library and they are used to ensure that any stable version of the library reproduces the benchmarks. | ||
|
||
|
||
[1] Beyer, D., Torres, P. B., Pineda, S. P., Narambuena, C. F., Grad, J. N., Košovan, P., & Blanco, P. M. (2024). pyMBE: the Python-based Molecule Builder for ESPResSo. arXiv preprint [arXiv:2401.14954](https://arxiv.org/abs/2401.14954). |
Oops, something went wrong.