|
1 | 1 | # Change Log |
2 | 2 |
|
3 | | -## [0.5.5] (Unreleased) |
| 3 | +<!-- |
| 4 | +## [0.5.6] (Unreleased) - WHEN UNCOMMENTING, ADD LINK AT BOTTOM |
4 | 5 |
|
5 | 6 | ### Release Notes |
6 | 7 |
|
7 | | -<!-- Running draft to be removed immediately prior to release. --> |
8 | | - |
9 | | -<!-- When altering tables, import all foreign key references. --> |
10 | | - |
11 | | -Table update script |
| 8 | +Running draft to be removed immediately prior to release. |
| 9 | +When altering tables, import all foreign key references. |
12 | 10 |
|
13 | 11 | ```python |
14 | | -# -- For TrackGraph -- |
15 | | -from spyglass.linearization.v1.main import TrackGraph # noqa |
16 | | - |
17 | | -TrackGraph.alter() # Add edge map parameter |
18 | | - |
19 | | -# -- For dropping deprecated tables -- |
20 | | -import datajoint as dj |
21 | | - |
22 | | -dj.FreeTable(dj.conn(), "common_nwbfile.analysis_nwbfile_log").drop() |
23 | | -dj.FreeTable(dj.conn(), "common_session.session_group").drop() |
24 | | - |
25 | | -# -- For v0 recompute -- |
26 | | -from spyglass.spikesorting.v0.spikesorting_recording import ( |
27 | | - SpikeSortingRecording, |
28 | | - SpikeSortingRecordingSelection, |
29 | | - IntervalList, |
30 | | -) |
31 | | - |
32 | | -SpikeSortingRecording().alter() |
33 | | -SpikeSortingRecording().update_ids() |
34 | | - |
35 | | -# -- For v1 recompute -- |
36 | | -from spyglass.spikesorting.v1.recording import ( |
37 | | - SpikeSortingRecording, |
38 | | - SpikeSortingRecordingSelection, |
39 | | - AnalysisNwbfile, |
40 | | -) |
41 | | - |
42 | | -SpikeSortingRecording().alter() |
43 | | -SpikeSortingRecording().update_ids() |
44 | | - |
45 | | -# -- For LFP pipeline -- |
46 | | -from spyglass.lfp.lfp_imported import ImportedLFP |
47 | | -from spyglass.lfp.lfp_merge import LFPOutput |
48 | | - |
49 | | -if len(ImportedLFP()) or len(LFPOutput.ImportedLFP()): |
50 | | - raise ValueError( |
51 | | - "Existing entries found and would be dropped in update. Please delete " |
52 | | - + "entries or start a GitHub discussion for migration assistance." |
53 | | - + f"\nImportedLFP: {len(ImportedLFP())}" |
54 | | - + f"\nLFPOutput.ImportedLFP: {len(LFPOutput.ImportedLFP())}" |
55 | | - ) |
56 | | - |
57 | | -table = LFPOutput().ImportedLFP() |
58 | | -table_name = table.full_table_name |
59 | | - |
60 | | -if len(drop_list := table.connection.dependencies.descendants(table_name)) > 1: |
61 | | - drop_list = [x for x in drop_list if x != table_name] |
62 | | - raise ValueError( |
63 | | - "Downstream tables exist and would be dropped in update." |
64 | | - + "Please drop the following tables first: \n" |
65 | | - + "\n ".join([str(t) for t in drop_list]) |
66 | | - ) |
67 | | - |
68 | | -LFPOutput().ImportedLFP().drop_quick() |
69 | | -ImportedLFP().drop() |
| 12 | +# |
70 | 13 | ``` |
71 | 14 |
|
72 | 15 | ### Infrastructure |
73 | 16 |
|
| 17 | +- Thing |
| 18 | +
|
| 19 | +### Pipelines |
| 20 | +
|
| 21 | +- Common |
| 22 | + - Thing |
| 23 | +--> |
| 24 | + |
| 25 | +## [0.5.5] (Aug 6, 2025) |
| 26 | + |
| 27 | +### Infrastructure |
| 28 | + |
74 | 29 | - Ensure merge tables are declared during file insertion #1205 |
75 | 30 | - Update URL for DANDI Docs #1210 |
76 | 31 | - Add common method `get_position_interval_epoch` #1056 |
|
0 commit comments