Skip to content

Releases: LorenFrankLab/spyglass

0.5.5

06 Aug 16:41
4a198e5

Choose a tag to compare

What's Changed

New Contributors

Database Changes

To update your database to reflect these changes, we recommend running the following script. If you have any issues, please contact maintainers via our Discussions page.

# -- For TrackGraph --
from spyglass.linearization.v1.main import TrackGraph  # noqa

TrackGraph.alter()  # Add edge map parameter

# -- For dropping deprecated tables --
import datajoint as dj

dj.FreeTable(dj.conn(), "common_nwbfile.analysis_nwbfile_log").drop()
dj.FreeTable(dj.conn(), "common_session.session_group").drop()

# -- For v0 recompute --
from spyglass.spikesorting.v0.spikesorting_recording import (
    SpikeSortingRecording,
    SpikeSortingRecordingSelection,
    IntervalList,
)

SpikeSortingRecording().alter()
SpikeSortingRecording().update_ids()

# -- For v1 recompute --
from spyglass.spikesorting.v1.recording import (
    SpikeSortingRecording,
    SpikeSortingRecordingSelection,
    AnalysisNwbfile,
)

SpikeSortingRecording().alter()
SpikeSortingRecording().update_ids()

# -- For LFP pipeline --
from spyglass.lfp.lfp_imported import ImportedLFP
from spyglass.lfp.lfp_merge import LFPOutput

if len(ImportedLFP()) or len(LFPOutput.ImportedLFP()):
    raise ValueError(
        "Existing entries found and would be dropped in update. Please delete "
        + "entries or start a GitHub discussion for migration assistance."
        + f"\nImportedLFP: {len(ImportedLFP())}"
        + f"\nLFPOutput.ImportedLFP: {len(LFPOutput.ImportedLFP())}"
    )

table = LFPOutput().ImportedLFP()
table_name = table.full_table_name

if len(drop_list := table.connection.dependencies.descendants(table_name)) > 1:
    drop_list = [x for x in drop_list if x != table_name]
    raise ValueError(
        "Downstream tables exist and would be dropped in update."
        + "Please drop the following tables first: \n"
        + "\n ".join([str(t) for t in drop_list])
    )

LFPOutput().ImportedLFP().drop_quick()
ImportedLFP().drop()

Full Changelog: 0.5.4...0.5.5

0.5.4

20 Dec 17:09
75ad067

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.3...0.5.4

0.5.3

27 Aug 16:40
ecf468e

Choose a tag to compare

Database Changes

This release (a) removes the old 'common' ripple pipeline in favor of the dedicated subpackage (see #1061), and (b) edits the definitions of PositionIntervalMap and PositionGroup (see #870, #1008). Users with existing databases should run the following:

import datajoint as dj
from spyglass.common.common_behav import PositionIntervalMap
from spyglass.decoding.v1.core import PositionGroup

dj.schema("common_ripple").drop()
PositionIntervalMap.alter()
PositionGroup.alter()

Software Changes

New Contributors

Full Changelog: 0.5.2...0.5.3

0.5.2

22 Apr 22:28
96691c3

Choose a tag to compare

What's Changed

Full Changelog: 0.5.1...0.5.2

0.5.1

08 Mar 16:14

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.0...0.5.1

See also CHANGELOG.md

0.5.0

10 Feb 02:13
be6e414

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.4.3...0.5.0

See also CHANGELOG.md