diff --git a/bluepyemodel/evaluation/evaluation.py b/bluepyemodel/evaluation/evaluation.py index e4ecd9c4..4be4885c 100644 --- a/bluepyemodel/evaluation/evaluation.py +++ b/bluepyemodel/evaluation/evaluation.py @@ -269,7 +269,10 @@ def get_evaluator_from_access_point( mechanisms_directory = access_point.get_mechanisms_directory() if isinstance(access_point, LocalAccessPoint): - if Path.cwd() != access_point.emodel_dir and access_point.emodel_metadata.iteration: + if ( + Path.cwd() != access_point.emodel_dir.resolve() + and access_point.emodel_metadata.iteration + ): delete_compiled_mechanisms() if not (access_point.emodel_dir / "x86_64" / "special").is_file(): compile_mechs_in_emodel_dir(mechanisms_directory) diff --git a/bluepyemodel/export_emodel/utils.py b/bluepyemodel/export_emodel/utils.py index 2cfc8b09..0db08ddd 100644 --- a/bluepyemodel/export_emodel/utils.py +++ b/bluepyemodel/export_emodel/utils.py @@ -24,7 +24,7 @@ def get_output_path_from_metadata(output_base_dir, emodel_metadata, seed): """Get the output path from the emodel_metadata. - + Args: output_base_dir (str): output base directory emodel_metadata (EModelMetadata): emodel metadata diff --git a/bluepyemodel/tasks/emodel_creation/optimisation.py b/bluepyemodel/tasks/emodel_creation/optimisation.py index 024a125f..112178d7 100644 --- a/bluepyemodel/tasks/emodel_creation/optimisation.py +++ b/bluepyemodel/tasks/emodel_creation/optimisation.py @@ -815,7 +815,7 @@ def remote_script(self): only_validated=False, only_best=False, seeds=list(range(args.seed, args.seed + args.batch_size)), - map_fucntion=mapper, + map_function=mapper, ) if args.api_from_config == "nexus": access_pt.store_emodels_sonata( @@ -825,7 +825,6 @@ def remote_script(self): map_function=mapper, ) - def output(self): """ """ return StoreHocTarget(