Skip to content

Commit d26b34e

Browse files
authored
Remove old function call (#843)
1 parent 286d7dd commit d26b34e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ibllib/io/session_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
- once copy is complete aggregate the qc from file.
2424
"""
2525
import yaml
26+
import uuid
2627
import logging
28+
import socket
2729
from pathlib import Path
2830
from copy import deepcopy
2931

@@ -32,8 +34,6 @@
3234
from iblutil.io.params import FileLock
3335
from packaging import version
3436

35-
from ibllib.pipes.misc import create_basic_transfer_params
36-
3737
_logger = logging.getLogger(__name__)
3838
SPEC_VERSION = '1.0.0'
3939

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

0 commit comments

Comments
 (0)