Skip to content

Commit 6dcbc97

Browse files
authored
Minor fixes (#129)
* use int instead of string for ref group * update capitalization in virus names * update no ref test
1 parent 08f776e commit 6dcbc97

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/trodes_to_nwb/convert_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def add_electrode_groups(
300300
for nwb_group in list(electrode_table["group_name"]):
301301
# use the refference electrode map and defined electrode table to find index of the reference electrode
302302
ref_group, ref_electrode = ref_electrode_map[str(nwb_group)]
303-
if ref_group == "-1":
303+
if ref_group == -1:
304304
# handle case where no reference electrode is defined
305305
ref_electrode_id.append(-1)
306306
continue
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
virus_name : AAV-1-Ef1a-DIO-ChRmine-mScarlet-WPRE
2-
construct_name : AAV-1-Ef1a-DIO-ChRmine-mScarlet-WPRE
1+
virus_name : AAV-1-EF1a-DIO-ChRmine-mScarlet-WPRE
2+
construct_name : AAV-1-EF1a-DIO-ChRmine-mScarlet-WPRE
33
description : Cre-Dependent excitatory optogenetic construct for ChRmine-mScarlet expression
44
manufacturer : AddGene
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
virus_name : AAV-8-Ef1a-DIO-ChRmine-mScarlet-WPRE
2-
construct_name : AAV-8-Ef1a-DIO-ChRmine-mScarlet-WPRE
1+
virus_name : AAV-8-EF1a-DIO-ChRmine-mScarlet-WPRE
2+
construct_name : AAV-8-EF1a-DIO-ChRmine-mScarlet-WPRE
33
description : Cre-Dependent excitatory optogenetic construct for ChRmine-mScarlet expression
44
manufacturer : Stanford University

src/trodes_to_nwb/tests/test_convert_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def test_no_reference_electrode():
252252
metadata, rec_header.find("SpikeConfiguration")
253253
)
254254
# set one tetrode to no reference
255-
ref_electrode_map["0"] = ("-1", -1)
255+
ref_electrode_map["0"] = (-1, -1)
256256
convert_yaml.add_electrode_groups(
257257
nwbfile, metadata, probe_metadata, hw_channel_map, ref_electrode_map
258258
)

0 commit comments

Comments
 (0)