Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregate trials #843

Merged
merged 3 commits into from
Sep 19, 2024
Merged
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
6 changes: 3 additions & 3 deletions ibllib/io/session_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
- once copy is complete aggregate the qc from file.
"""
import yaml
import uuid
import logging
import socket
from pathlib import Path
from copy import deepcopy

Expand All @@ -32,8 +34,6 @@
from iblutil.io.params import FileLock
from packaging import version

from ibllib.pipes.misc import create_basic_transfer_params

_logger = logging.getLogger(__name__)
SPEC_VERSION = '1.0.0'

Expand Down Expand Up @@ -440,7 +440,7 @@ def get_remote_stub_name(session_path, device_id=None):
>>> get_remote_stub_name(Path.home().joinpath('subject', '2020-01-01', '001'), 'host-123')
Path.home() / 'subject/2020-01-01/001/_devices/2020-01-01_1_subject@host-123.yaml'
"""
device_id = device_id or create_basic_transfer_params()['TRANSFER_LABEL']
device_id = device_id or f'{socket.gethostname()}_{uuid.getnode()}'
exp_ref = '{date}_{sequence:d}_{subject:s}'.format(**ConversionMixin.path2ref(session_path))
remote_filename = f'{exp_ref}@{device_id}.yaml'
return session_path / '_devices' / remote_filename
Loading