From 3cd7580d1b324da88329f37462a9375c4f407a23 Mon Sep 17 00:00:00 2001 From: Shawn Anderson Date: Fri, 22 Mar 2024 17:56:02 -0700 Subject: [PATCH] Fix sweep_cartesian_product such that it works nicely with easy_run --- cadCAD/tools/preparation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cadCAD/tools/preparation.py b/cadCAD/tools/preparation.py index 795a9018..6ffab1e1 100644 --- a/cadCAD/tools/preparation.py +++ b/cadCAD/tools/preparation.py @@ -26,7 +26,7 @@ def sweep_cartesian_product(sweep_params: SweepableParameters) -> SweepableParam transpose_cartesian_product = zip(*cartesian_product) zipped_sweep_params = zip(sweep_params.keys(), transpose_cartesian_product) sweep_dict = dict(zipped_sweep_params) - sweep_dict = {k: tuple(v) for k, v in sweep_dict.items()} + sweep_dict = {k: list(v) for k, v in sweep_dict.items()} return sweep_dict @@ -70,4 +70,4 @@ def run(self, *args, **kwargs) -> DataFrame: self.samples, *args, **kwargs) - return output \ No newline at end of file + return output