From 5f03e68f17bccb7112f00bedc479fa6f4232f871 Mon Sep 17 00:00:00 2001 From: bjhardcastle Date: Wed, 22 May 2024 10:05:28 -0700 Subject: [PATCH] Fix path/str bug --- np_notebooks | 2 +- src/np_workflows/shared/base_experiments.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/np_notebooks b/np_notebooks index 559bda1..114e9bc 160000 --- a/np_notebooks +++ b/np_notebooks @@ -1 +1 @@ -Subproject commit 559bda1224814a1cb07aef6360fc7d624f8e1a9d +Subproject commit 114e9bcad7376cb2e1c4b9a4853ea3c6b9c0f740 diff --git a/src/np_workflows/shared/base_experiments.py b/src/np_workflows/shared/base_experiments.py index 67cb5a8..ecb1ba0 100644 --- a/src/np_workflows/shared/base_experiments.py +++ b/src/np_workflows/shared/base_experiments.py @@ -684,7 +684,7 @@ def run_script(self, stim: Literal['sound_test', 'mapping', 'task', 'opto', 'opt params['mouse_id'] = str(self.mouse.id) params['user_id'] = self.user.id if self.user else 'ben.hardcastle' - if self.task_script_base not in params['taskScript']: + if self.task_script_base.as_posix() not in params['taskScript']: params['taskScript'] = (self.task_script_base / params['taskScript']).as_posix() if self.is_pretest: