Skip to content

Commit

Permalink
Remove old function call (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1o0 committed Sep 19, 2024
1 parent 286d7dd commit d26b34e
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit d26b34e

Please sign in to comment.