Skip to content

Commit

Permalink
Merge pull request #21 from pauladkisson/remove_optional_notes
Browse files Browse the repository at this point in the history
Remove optional notes
  • Loading branch information
CodyCBakerPhD authored Jun 14, 2023
2 parents aef22e5 + c652ab9 commit 7f21bc5
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,30 +158,28 @@ def run_conversion(self, nwbfile: NWBFile, metadata: dict):
photodetector=0,
fluorophores=[0], # potentially multiple fluorophores, so list of indices
location=metadata["FiberPhotometry"]["area"],
notes="None",
)
fibers_table.add_fiber(
excitation_source=1, # integers indicated rows of excitation sources table
photodetector=0,
fluorophores=[0], # potentially multiple fluorophores, so list of indices
location=metadata["FiberPhotometry"]["area"],
notes="None",
)

# ROI Response Series
# Here we set up a list of fibers that our recording came from
fibers_ref = DynamicTableRegion(name="rois", data=[0, 1], description="source fibers", table=fibers_table)
signal_series = RoiResponseSeries(
name="SignalDfOverF",
description="The ΔF/F from the blue light excitation (480nm) corresponding to the dopamine signal.",
description="The ΔF/F from the blue light excitation (470nm) corresponding to the dopamine signal.",
data=H5DataIO(session_df.signal_dff.to_numpy(), compression=True),
unit="a.u.",
timestamps=H5DataIO(session_df.timestamp.to_numpy(), compression=True),
rois=fibers_ref,
)
reference_series = RoiResponseSeries(
name="ReferenceDfOverF",
description="The ∆F/F from the isosbestic UV excitation (400nm) corresponding to the reference signal.",
description="The ∆F/F from the isosbestic UV excitation (405nm) corresponding to the reference signal.",
data=H5DataIO(session_df.reference_dff.to_numpy(), compression=True),
unit="a.u.",
timestamps=signal_series.timestamps,
Expand All @@ -190,7 +188,7 @@ def run_conversion(self, nwbfile: NWBFile, metadata: dict):
reference_fit_series = RoiResponseSeries(
name="ReferenceDfOverFSmoothed",
description=(
"The ∆F/F from the isosbestic UV excitation (400nm) that has been smoothed "
"The ∆F/F from the isosbestic UV excitation (405nm) that has been smoothed "
"(See Methods: Photometry Active Referencing)."
),
data=H5DataIO(session_df.reference_dff_fit.to_numpy(), compression=True),
Expand All @@ -201,7 +199,7 @@ def run_conversion(self, nwbfile: NWBFile, metadata: dict):
uv_reference_fit_series = RoiResponseSeries(
name="UVReferenceFSmoothed",
description=(
"Raw fluorescence (F) from the isosbestic UV excitation (400nm) that has been smoothed "
"Raw fluorescence (F) from the isosbestic UV excitation (405nm) that has been smoothed "
"(See Methods: Photometry Active Referencing)."
),
data=H5DataIO(session_df.uv_reference_fit.to_numpy(), compression=True),
Expand Down

0 comments on commit 7f21bc5

Please sign in to comment.