Skip to content

Commit e37d625

Browse files
committed
3.10 logging error
1 parent d694a70 commit e37d625

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

iblrig_custom_tasks/_sp_passiveVideo/task.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ def __init__(self, **kwargs):
151151
self.paths.STATS_FILE_PATH = self.paths.DATA_FILE_PATH.with_name('_sp_videoData.stats.pqt')
152152
self.video = None
153153
self.trial_num = -1
154-
self._log_level = logging.getLevelNamesMapping()[kwargs.get('log_level', 'INFO')]
154+
# For py3.11 use logging.getLevelNamesMapping instead
155+
self._log_level = logging.getLevelName(kwargs.get('log_level', 'INFO'))
155156
columns = ['intervals_0', 'intervals_1']
156157
self.data = pd.DataFrame(pd.NA, index=range(self.task_params.NREPEATS), columns=columns)
157158

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "project_extraction"
7-
version = "0.5.0post0"
7+
version = "0.5.1"
88
description = "Custom extractors for satellite tasks"
99
dynamic = [ "readme" ]
1010
keywords = [ "IBL", "neuro-science" ]

0 commit comments

Comments
 (0)