From a107fe48ec5fb28928065924190f655bb990357a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20K=C3=B6ster?= Date: Fri, 22 Apr 2022 11:28:53 +0200 Subject: [PATCH] chore: adapt paramspace test case to changes on dtype handling (#1594) * Use itertuples instead of iterrows to preserve dtypes across columns * Updated tests for paramspace to include dtype check * black formatting * Update test case for filenamesep test Co-authored-by: Sichong Peng --- ...a~0.99.pdf => alpha~1__beta~0.1__gamma~0.99.pdf} | Bin ...mma~3.9.pdf => alpha~2__beta~0.0__gamma~3.9.pdf} | Bin .../simulations/alpha~1.0__beta~0.1__gamma~0.99.tsv | 1 - .../simulations/alpha~1__beta~0.1__gamma~0.99.tsv | 1 + .../simulations/alpha~2.0__beta~0.0__gamma~3.9.tsv | 1 - .../simulations/alpha~2__beta~0.0__gamma~3.9.tsv | 1 + 6 files changed, 2 insertions(+), 2 deletions(-) rename tests/test_paramspace/expected-results/results/filenamesep/plots/{alpha~1.0__beta~0.1__gamma~0.99.pdf => alpha~1__beta~0.1__gamma~0.99.pdf} (100%) rename tests/test_paramspace/expected-results/results/filenamesep/plots/{alpha~2.0__beta~0.0__gamma~3.9.pdf => alpha~2__beta~0.0__gamma~3.9.pdf} (100%) delete mode 100644 tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1.0__beta~0.1__gamma~0.99.tsv create mode 100644 tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1__beta~0.1__gamma~0.99.tsv delete mode 100644 tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2.0__beta~0.0__gamma~3.9.tsv create mode 100644 tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2__beta~0.0__gamma~3.9.tsv diff --git a/tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~1.0__beta~0.1__gamma~0.99.pdf b/tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~1__beta~0.1__gamma~0.99.pdf similarity index 100% rename from tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~1.0__beta~0.1__gamma~0.99.pdf rename to tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~1__beta~0.1__gamma~0.99.pdf diff --git a/tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~2.0__beta~0.0__gamma~3.9.pdf b/tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~2__beta~0.0__gamma~3.9.pdf similarity index 100% rename from tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~2.0__beta~0.0__gamma~3.9.pdf rename to tests/test_paramspace/expected-results/results/filenamesep/plots/alpha~2__beta~0.0__gamma~3.9.pdf diff --git a/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1.0__beta~0.1__gamma~0.99.tsv b/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1.0__beta~0.1__gamma~0.99.tsv deleted file mode 100644 index 4ba5e2159..000000000 --- a/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1.0__beta~0.1__gamma~0.99.tsv +++ /dev/null @@ -1 +0,0 @@ -{'alpha': 1.0, 'beta': 0.1, 'gamma': 0.99} diff --git a/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1__beta~0.1__gamma~0.99.tsv b/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1__beta~0.1__gamma~0.99.tsv new file mode 100644 index 000000000..979067998 --- /dev/null +++ b/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~1__beta~0.1__gamma~0.99.tsv @@ -0,0 +1 @@ +{'alpha': 1, 'beta': 0.1, 'gamma': 0.99} diff --git a/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2.0__beta~0.0__gamma~3.9.tsv b/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2.0__beta~0.0__gamma~3.9.tsv deleted file mode 100644 index 0c2073ac0..000000000 --- a/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2.0__beta~0.0__gamma~3.9.tsv +++ /dev/null @@ -1 +0,0 @@ -{'alpha': 2.0, 'beta': 0.0, 'gamma': 3.9} diff --git a/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2__beta~0.0__gamma~3.9.tsv b/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2__beta~0.0__gamma~3.9.tsv new file mode 100644 index 000000000..13fed5800 --- /dev/null +++ b/tests/test_paramspace/expected-results/results/filenamesep/simulations/alpha~2__beta~0.0__gamma~3.9.tsv @@ -0,0 +1 @@ +{'alpha': 2, 'beta': 0.0, 'gamma': 3.9}