Compare commits

..

2 Commits

Author SHA1 Message Date
2b44dde52f Add stick-probability-harness 2023-03-01 22:11:37 +00:00
5f386b3ae0 Add minimal-viable-alteration-harness script 2023-03-01 22:05:10 +00:00
4 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,4 @@
## Data Structure
All `.csv` files in the same directory should be of the same system config and contain all information required for
their reproduction.

17
parallel-citation Normal file
View File

@ -0,0 +1,17 @@
Academic tradition requires you to cite works you base your article on.
If you use programs that use GNU Parallel to process data for an article in a
scientific publication, please cite:
Tange, O. (2023, January 22). GNU Parallel 20230122 ('Bolsonaristas').
Zenodo. https://doi.org/10.5281/zenodo.7558957
This helps funding further development; AND IT WON'T COST YOU A CENT.
If you pay 10000 EUR you should feel free to use GNU Parallel without citing.
More about funding GNU Parallel and the citation notice:
https://www.gnu.org/software/parallel/parallel_design.html#citation-notice
To silence this citation notice: run 'parallel --citation' once.
Come on: You have run parallel 38 times. Isn't it about time
you run 'parallel --citation' once to silence the citation notice?

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# NOTE: Requires GNU parallel
MODEL="models/minimal-viable-alteration"
mkdir -p data/minimal-viable-alteration
parallel "$MODEL" '{1}' '{2}' 'data/minimal-viable-alteration/{1}-{2}.csv' ::: {1..20} ::: $(seq 1000 1000 5000)

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# NOTE: Requires GNU parallel
MODEL="models/stick-probability"
mkdir -p data/stick-probability
PROBABILITIES=$(seq 0.1 0.1 1)
for i in $PROBABILITIES; do
mkdir data/stick-probability/"$i"
done
MAX_PARTICLES=2000
parallel "$MODEL" '{1}' $MAX_PARTICLES '{2}' 'data/stick-probability/{2}/{1}.csv' ::: {1..20} ::: $PROBABILITIES