Skip to content

Commit

Permalink
make sure the path name is not interpreted as lab for registration
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jun 28, 2023
1 parent 872b99f commit 3273539
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ This is only possible within minor releases, for example 7.1.0 to 7.3.1.
If going from a major release to another, (for example 6.X.X to 7.X.X) then follow the full installation instructions for the release.

cd C:\iblrig
git fetch --tags
git checkout tags/7.3.0

Where 7.X.X is the version you want to update to.
Expand Down
5 changes: 0 additions & 5 deletions scripts/ibllib_utils/register_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,6 @@ def register_session(self, ses_path, users=None, file_list=True, **kwargs):
if kwargs.get('projects', False):
ses_['projects'] = ensure_list(kwargs.pop('projects'))
assert ('subject', 'number') not in kwargs
if 'lab' not in kwargs and details['lab']:
kwargs.update({'lab': details['lab']})
elif details['lab'] and kwargs.get('lab', details['lab']) != details['lab']:
names = (kwargs['lab'], details['lab'])
_logger.warning('lab kwarg "%s" does not match lab name in path ("%s")' % names)
ses_.update(kwargs)

if not session: # Create from scratch
Expand Down

0 comments on commit 3273539

Please sign in to comment.