Skip to content

Commit

Permalink
Give UUID to artifact interval (#993)
Browse files Browse the repository at this point in the history
* Give UUID to artifact interval

* Add ability to set smoothing sigma in get_firing_rate (#994)

* add option to set spike smoothing sigma

* update changelog

* Add docstrings to SortedSpikesGroup and Decoding methods (#996)

* Add docstrings

* update changelog

* fix spelling

---------

Co-authored-by: Samuel Bray <[email protected]>

* Add Common Errors doc (#997)

* Add Common Errors

* Update changelog

* Mua notebook (#998)

* documented some of mua notebook

* mua notebook documented

* documented some of mua notebook

* synced py script

* Dandi export and read (#956)

* compile exported files, download dandiset, and organize

* add function to translate files into dandi-compatible names

* add table to store dandi name translation and steps to populate

* add dandiset validation

* add function to fetch nwb from dandi

* add function to change obj_id of nwb_file

* add dandi upload call and fix circular import

* debug dandi file streaming

* fix circular import

* resolve dandi-streamed files with fetch_nwb

* implement review comments

* add admin tools to fix common dandi discrepencies

* implement tool to cleanup common dandi errors

* add dandi export to tutorial

* fix linting

* update changelog

* fix spelling

* style changes from review

* reorganize function locations

* fix circular import

* make dandi dependency optional in imports

* store dandi instance of data in DandiPath

* resolve case of pre-existing dandi entries for export

* cleanup bugs from refactor

* update notebook

* Apply suggestions from code review

Co-authored-by: Chris Broz <[email protected]>

* add requested changes from review

* make method check_admin_privilege in LabMember

---------

Co-authored-by: Chris Broz <[email protected]>

* Minor fixes (#999)

* give analysis nwb new uuid when created

* fix function argument

* update changelog

* Fix bug in change in analysis_file object_id (#1004)

* fix bug in change in analysis_file_object_id

* update changelog

* Remove classes for usused tables (#1003)

* #976

* Remove notebook reference

* Non-daemon parallel populate (#1001)

* initial non daemon parallel commit

* resolve namespace and pickling errors

* fix linting

* update changelog

* implement review comments

* add parallel_make flag to spikesorting recording tables

* fix multiprocessing spawn error on mac

* move propert

---------

Co-authored-by: Samuel Bray <[email protected]>

* Update pipeline column for IntervalList

---------

Co-authored-by: Samuel Bray <[email protected]>
Co-authored-by: Samuel Bray <[email protected]>
Co-authored-by: Chris Broz <[email protected]>
Co-authored-by: Denisse Morales-Rodriguez <[email protected]>
Co-authored-by: Samuel Bray <[email protected]>
  • Loading branch information
6 people authored Jun 18, 2024
1 parent 8eadc30 commit 97933e7
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/spyglass/lfp/v1/lfp_artifact.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import uuid

import datajoint as dj
import numpy as np

Expand Down Expand Up @@ -183,27 +185,19 @@ def make(self, key):
dict(
artifact_times=artifact_times,
artifact_removed_valid_times=artifact_removed_valid_times,
# name for no-artifact time name using recording id
artifact_removed_interval_list_name="_".join(
[
key["nwb_file_name"],
key["target_interval_list_name"],
"LFP",
key["artifact_params_name"],
]
),
artifact_removed_interval_list_name=uuid.uuid4(),
)
)

interval_key = { # also insert into IntervalList
"nwb_file_name": key["nwb_file_name"],
"interval_list_name": key["artifact_removed_interval_list_name"],
"valid_times": key["artifact_removed_valid_times"],
"pipeline": "lfp_artifact",
"pipeline": self.full_table_name,
}

LFPArtifactRemovedIntervalList.insert1(key, replace=True)
IntervalList.insert1(interval_key, replace=True)
LFPArtifactRemovedIntervalList.insert1(key)
IntervalList.insert1(interval_key)
self.insert1(key)


Expand Down

0 comments on commit 97933e7

Please sign in to comment.