Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bnd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package interface
from .cli import dl, up, to_pyal, batch_ks, init
from .cli import dl, up, to_pyal, batch_ks, init, to_nwb
from .data_transfer import upload_session, download_session, download_animal

__all__ = ["dl", "up", "to_pyal", "batch_ks", "upload_session", "download_session", "download_animal", "init"]
__all__ = ["dl", "up", "to_pyal", "batch_ks", "upload_session", "download_session", "download_animal", "init", "to_nwb"]

2 changes: 1 addition & 1 deletion bnd/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def get_animal_name(session_name) -> str:
def get_subdirectories_from_pattern(directory: Path, subdir_pattern: str):
subdirectory_paths = list(directory.glob(subdir_pattern))

return subdirectory_paths
return sorted(subdirectory_paths)


def _load_config() -> Config:
Expand Down
3 changes: 3 additions & 0 deletions bnd/pipeline/nwbtools/beneuro_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def temporally_align_data_interfaces(self):
spikeglx_output_folder_path = spikeglx_output_folder_path[
self.recording_to_process
]
assert f"g{self.recording_to_process}" in str(spikeglx_output_folder_path), \
f"double check file paths: {spikeglx_output_folder_path=}"

elif len(spikeglx_output_folder_path) == 1:
spikeglx_output_folder_path = spikeglx_output_folder_path[0]

Expand Down
Loading