Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Jun 26, 2024
1 parent a942217 commit e6ca959
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/benchmark-models/test_benchmark_collection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for model in $models; do
yaml="${model_dir}"/"${model}"/"${model}".yaml
amici_model_dir=test_bmc/"${model}"
mkdir -p "$amici_model_dir"
cmd_import="amici_import_petab -y ${yaml} -o ${amici_model_dir} -n ${model} --flatten"
cmd_import="amici_import_petab ${yaml} -o ${amici_model_dir} -n ${model} --flatten"
cmd_run="$script_path/test_petab_model.py -y ${yaml} -d ${amici_model_dir} -m ${model} -c"

printf '=%.0s' {1..40}
Expand All @@ -111,3 +111,15 @@ for model in $models; do
done

cd "$script_path" && python evaluate_benchmark.py

# Test deprecated import from individual PEtab files
model="Zheng_PNAS2012"
problem_dir="${model_dir}/${model}"
amici_model_dir=test_bmc/"${model}-deprecated"
mkdir -p "$amici_model_dir"
cmd_import="amici_import_petab -s "${problem_dir}/model_${model}.xml" \
-m "${problem_dir}/measurementData_${model}.tsv" \
-c "${problem_dir}/experimentalCondition_${model}.tsv" \
-p "${problem_dir}/parameters_${model}.tsv" \
-b "${problem_dir}/observables_${model}.tsv" \
-o ${amici_model_dir} -n ${model} --no-compile"

0 comments on commit e6ca959

Please sign in to comment.