Skip to content

Commit 33f30f2

Browse files
authored
Fix staticmethod change (#1451)
* fix staticmethod change * update changelog
1 parent 8c6ad08 commit 33f30f2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import all foreign key references.
2929
- Fix typo in VideoFile.make #1427
3030
- Fix bug in TaskEpoch.make so that it correctly handles multi-row task tables
3131
from NWB #1433
32-
- Split `SpyglassMixin` into task-specific mixins #1435
32+
- Split `SpyglassMixin` into task-specific mixins #1435 #1451
3333

3434
### Infrastructure
3535

src/spyglass/utils/mixins/analysis.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,10 @@ def create(
264264

265265
return analysis_file_name
266266

267-
@classmethod
268-
def _alter_spyglass_version(cls, nwb_file_path: str) -> None:
267+
def _alter_spyglass_version(self, nwb_file_path: str) -> None:
269268
"""Change the source script to the current version of spyglass"""
270269
with h5py.File(nwb_file_path, "a") as f:
271-
f["/general/source_script"][()] = cls._logged_env_info()
270+
f["/general/source_script"][()] = self._logged_env_info()
272271

273272
def _logged_env_info(self) -> str:
274273
"""Get the environment information for logging."""

0 commit comments

Comments
 (0)