Skip to content

Commit

Permalink
remove kachery_client dependency (LorenFrankLab#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbray32 authored Jun 27, 2024
1 parent b89ea99 commit 3ba5d0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ PositionIntervalMap.alter()
- Remove unused `UnitInclusionParameters` table from `spikesorting.v0` #1003
- Fix bug in identification of artifact samples to be zeroed out in
`spikesorting.v1.SpikeSorting` #1009
- Remove deprecated dependencies on kachery_client #1014

## [0.5.2] (April 22, 2024)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import List, Union

import datajoint as dj
import kachery_client as kc
import kachery_cloud as kcl
import numpy as np
import spikeinterface as si
from sortingview.SpikeSortingView import create_raw_traces_plot
Expand Down Expand Up @@ -103,9 +103,6 @@ def create_mountain_layout(


def _upload_data_and_return_sha1(data):
data_uri = kc.store_json(data)
data_uri = kcl.store_json(data)
data_hash = data_uri.split("/")[2]
kc.upload_file(
data_uri, channel=os.environ["FIGURL_CHANNEL"], single_chunk=True
)
return data_hash
4 changes: 2 additions & 2 deletions src/spyglass/spikesorting/v0/figurl_views/SpikeSortingView.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datajoint as dj
import kachery_client as kc
import kachery_cloud as kcl
import spikeinterface as si
from sortingview.SpikeSortingView import (
SpikeSortingView as SortingViewSpikeSortingView,
Expand Down Expand Up @@ -38,7 +38,7 @@ def make(self, key):
recording: si.BaseRecording = si.load_extractor(recording_path)
sorting: si.BaseSorting = si.load_extractor(sorting_path)

with kc.TemporaryDirectory() as tmpdir:
with kcl.TemporaryDirectory() as tmpdir:
fname = f"{tmpdir}/spikesortingview.h5"
logger.info("Preparing spikesortingview data")
prepare_spikesortingview_data(
Expand Down

0 comments on commit 3ba5d0a

Please sign in to comment.