Skip to content

Commit a3c7005

Browse files
authored
Change BLOB fields to LONGBLOB in DecodingParameters (LorenFrankLab#1463)
* Change BLOB fields to LONGBLOB in DecodingParameters Updated the 'decoding_params' and 'decoding_kwargs' fields from BLOB to LONGBLOB in the DecodingParameters table definition to support larger data storage for model initialization parameters and keyword arguments. * Update changelog for DecodingParameters changes Added a code example using DecodingParameters.alter() and documented the change from BLOB to LONGBLOB fields in DecodingParameters (LorenFrankLab#1463).
1 parent 973a5b7 commit a3c7005

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Running draft to be removed immediately prior to release. When altering tables,
88
import all foreign key references.
99

1010
```python
11-
#
11+
from spyglass.decoding.v1.core import DecodingParameters
12+
13+
DecodingParameters().alter()
1214
```
1315

1416
### Documentation
@@ -58,6 +60,7 @@ import all foreign key references.
5860
- Allow multiple VideoFile entries during ingestion #1462
5961
- Decoding
6062
- Ensure results directory is created if it doesn't exist #1362
63+
- Change BLOB fields to LONGBLOB in DecodingParameters #1463
6164
- Position
6265
- Ensure video files are properly added to `DLCProject` # 1367
6366
- DLC parameter handling improvements and default value corrections #1379

src/spyglass/decoding/v1/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class DecodingParameters(SpyglassMixin, dj.Lookup):
3838
definition = """
3939
decoding_param_name : varchar(80) # a name for this set of parameters
4040
---
41-
decoding_params : BLOB # initialization parameters for model
42-
decoding_kwargs = NULL : BLOB # additional keyword arguments
41+
decoding_params : LONGBLOB # initialization parameters for model
42+
decoding_kwargs = NULL : LONGBLOB # additional keyword arguments
4343
"""
4444

4545
pk = "decoding_param_name"

0 commit comments

Comments
 (0)