Skip to content

Commit

Permalink
3.10 logging error
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Dec 11, 2024
1 parent d694a70 commit 6c4b947
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion iblrig_custom_tasks/_sp_passiveVideo/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def __init__(self, **kwargs):
self.paths.STATS_FILE_PATH = self.paths.DATA_FILE_PATH.with_name('_sp_videoData.stats.pqt')
self.video = None
self.trial_num = -1
self._log_level = logging.getLevelNamesMapping()[kwargs.get('log_level', 'INFO')]
# For py3.11 use logging.getLevelNamesMapping instead
self._log_level = logging.getLevelName(kwargs.get('log_level', 'INFO'))
columns = ['intervals_0', 'intervals_1']
self.data = pd.DataFrame(pd.NA, index=range(self.task_params.NREPEATS), columns=columns)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "project_extraction"
version = "0.5.0post0"
version = "0.5.1"
description = "Custom extractors for satellite tasks"
dynamic = [ "readme" ]
keywords = [ "IBL", "neuro-science" ]
Expand Down

0 comments on commit 6c4b947

Please sign in to comment.