lfp_merge.py LFPOutput ¶ Bases: _Merge, SpyglassMixin Source code in src/spyglass/lfp/lfp_merge.py 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52@schema class LFPOutput(_Merge, SpyglassMixin): definition = """ merge_id: uuid --- source: varchar(32) """ class LFPV1(SpyglassMixin, dj.Part): # noqa: F811 definition = """ -> master --- -> LFPV1 """ class ImportedLFP(SpyglassMixin, dj.Part): # noqa: F811 definition = """ -> master --- -> ImportedLFP """ class CommonLFP(SpyglassMixin, dj.Part): # noqa: F811 """Table to pass-through legacy LFP""" definition = """ -> master --- -> CommonLFP """ def fetch1_dataframe(self, *attrs, **kwargs): # Note: `proj` below facilitates operator syntax eg Table & restrict nwb_lfp = self.fetch_nwb(self.proj())[0] return pd.DataFrame( nwb_lfp["lfp"].data, index=pd.Index(nwb_lfp["lfp"].timestamps, name="time"), ) CommonLFP ¶ Bases: SpyglassMixin, Part Table to pass-through legacy LFP Source code in src/spyglass/lfp/lfp_merge.py 37 38 39 40 41 42 43 44class CommonLFP(SpyglassMixin, dj.Part): # noqa: F811 """Table to pass-through legacy LFP""" definition = """ -> master --- -> CommonLFP """