Skip to content

Commit 832cb1a

Browse files
authored
Merge pull request #77 from LorenFrankLab/metadata_improvements
Metadata improvements
2 parents 23ba7bc + 42c2e82 commit 832cb1a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Developers should install from source.
5353

5454
(*Note: By default, Trodes saves video-related files (`.h264`, `videoPositionTracking`, `cameraHWSync`) slightly different from this format as `{date}_{animal}_{epoch}_{tag}.{camera number}.{extension}`. This is accepted by this conversion package, and used to match camera to position tracking in epochs with mulitple cameras*)
5555

56-
2. Create a metadata yaml file for each recording session. See this [example metadata yaml file](src/trodes_to_nwb/tests/test_data/20230622_sample_metadata.yml). We recommend using the [NWB YAML Creator](https://lorenfranklab.github.io/rec_to_nwb_yaml_creator/) to create the metadata yaml file in the correct format.
56+
2. Create a metadata yaml file for each recording session. We **HIGHLY** recommend using the [NWB YAML Creator](https://lorenfranklab.github.io/rec_to_nwb_yaml_creator/) to create the metadata yaml file to ensure compatability and correct format. You can also see this [example metadata yaml file](src/trodes_to_nwb/tests/test_data/20230622_sample_metadata.yml).
5757

5858
The metadata yaml file should be named `{date}_{animal}.metadata.yml` where date is in the `YYYYMMDD` format and placed in the same directory as the `.rec` files.
5959

src/trodes_to_nwb/tests/test_convert_yaml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
from hdmf.common.table import DynamicTable, VectorData
77
from ndx_franklab_novela import CameraDevice, Probe, Shank, ShanksElectrode
88
from pynwb.file import ProcessingModule, Subject
9+
10+
from trodes_to_nwb import convert, convert_rec_header, convert_yaml
911
from trodes_to_nwb.convert_position import add_associated_video_files
1012
from trodes_to_nwb.data_scanner import get_file_info
1113
from trodes_to_nwb.tests.test_convert_rec_header import default_test_xml_tree
1214
from trodes_to_nwb.tests.utils import data_path
1315

14-
from trodes_to_nwb import convert, convert_rec_header, convert_yaml
15-
1616

1717
def test_initial_nwb_creation():
1818
metadata_path = data_path / "20230622_sample_metadata.yml"
@@ -73,7 +73,7 @@ def test_acq_device_creation():
7373
devices = nwb_file.devices
7474
assert len(devices) == 1
7575
name = f"dataacq_device0"
76-
assert devices[name].system == "Main Control Unit"
76+
assert devices[name].system == "SpikeGadgets"
7777
assert devices[name].amplifier == "Intan"
7878
assert devices[name].adc_circuit == "Intan"
7979

src/trodes_to_nwb/tests/test_data/20230622_sample_metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ subject:
1818
weight: 100
1919
data_acq_device:
2020
- name: SpikeGadgets
21-
system: Main Control Unit
21+
system: SpikeGadgets
2222
amplifier: Intan
2323
adc_circuit: Intan
2424
cameras:

src/trodes_to_nwb/tests/test_data/20230622_sample_metadataProbeReconfig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ subject:
1818
weight: 100
1919
data_acq_device:
2020
- name: SpikeGadgets
21-
system: Main Control Unit
21+
system: SpikeGadgets
2222
amplifier: Intan
2323
adc_circuit: Intan
2424
cameras:

0 commit comments

Comments
 (0)