From d8294b770621ee021355dd1e3db2da1b08023c13 Mon Sep 17 00:00:00 2001 From: Keya Loding Date: Tue, 20 Aug 2024 14:23:08 -0400 Subject: [PATCH] removed unused function --- sleap_io/io/nwb.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sleap_io/io/nwb.py b/sleap_io/io/nwb.py index 8a33c24f..4e922a52 100644 --- a/sleap_io/io/nwb.py +++ b/sleap_io/io/nwb.py @@ -460,20 +460,6 @@ def read_nwb(path: str) -> Labels: return labels -def read_nwb_training(processing_modules: LabelledDict) -> Labels: - """Read an NWB formatted file with NWB training data to a SLEAP `Labels` object. - - Args: - processing_modules: A dictionary of processing modules from the NWB file. - - Returns: - A `Labels` object. - """ - for processing_module in processing_modules.values(): - if isinstance(processing_module, PoseTraining): - return pose_training_to_labels(processing_module) - - def write_nwb( labels: Labels, nwbfile_path: str, @@ -773,7 +759,7 @@ def append_nwb( See also: append_nwb_data """ - with NWBHDF5IO(filename, mode="w", load_namespaces=True) as io: + with NWBHDF5IO(filename, mode="a", load_namespaces=True) as io: nwb_file = io.read() if as_training: nwb_file = append_nwb_training(