Skip to content

Commit f76a936

Browse files
authored
Merge pull request #765 from int-brain-lab/hotfix/2.35.1
Ensure no REST cache used when searching sessions in IBLRegistationCl…
2 parents 6e8ff9d + af626c5 commit f76a936

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

ibllib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import logging
33
import warnings
44

5-
__version__ = '2.35.0'
5+
__version__ = '2.35.1'
66
warnings.filterwarnings('always', category=DeprecationWarning, module='ibllib')
77

88
# if this becomes a full-blown library we should let the logging configuration to the discretion of the dev

ibllib/oneibl/registration.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from one.alf.files import get_session_path, folder_parts, get_alf_path
1111
from one.registration import RegistrationClient, get_dataset_type
1212
from one.remote.globus import get_local_endpoint_id, get_lab_from_endpoint_id
13-
from one.webclient import AlyxClient
13+
from one.webclient import AlyxClient, no_cache
1414
from one.converters import ConversionMixin
1515
import one.alf.exceptions as alferr
1616
from one.util import datasets2records, ensure_list
@@ -219,10 +219,11 @@ def register_session(self, ses_path, file_list=True, projects=None, procedures=N
219219
subject = self.assert_exists(subject, 'subjects')
220220

221221
# look for a session from the same subject, same number on the same day
222-
session_id, session = self.one.search(subject=subject['nickname'],
223-
date_range=date,
224-
number=number,
225-
details=True, query_type='remote')
222+
with no_cache(self.one.alyx):
223+
session_id, session = self.one.search(subject=subject['nickname'],
224+
date_range=date,
225+
number=number,
226+
details=True, query_type='remote')
226227
if collections is None: # No task data
227228
assert len(session) != 0, 'no session on Alyx and no tasks in experiment description'
228229
# Fetch the full session JSON and assert that some basic information is present.

release_notes.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
## Release Note 2.35.0
22

3-
## features
3+
### features
44
- Adding LightningPose task
55

6-
## bugfixes
6+
### bugfixes
77
- SessionLoader can now handle trials that are not in the alf collection
88
- Extraction of trials from pre-generated sequences supports iblrigv8 keys
99

10+
#### 2.35.1
11+
- Ensure no REST cache used when searching sessions in IBLRegistationClient
12+
1013
## Release Note 2.34.0
1114

12-
## features
15+
### features
1316
- Task assert_expected_input now take into account revisions
1417
- Camera qc and video motion now take into account dynamic pipeline folder
1518

16-
## bugfixes
19+
### bugfixes
1720
- Typo in raw_ephys_data documentation
1821
- oneibl.register_datasets accounts for non existing sessions when checking protected dsets
1922

@@ -24,20 +27,20 @@
2427

2528
## Release Note 2.33.0
2629

27-
## features
30+
### features
2831
- Datasets no longer registered by default if protected, need to force registration
2932
- Tasks now allows datasets to be registered before qc computation
3033
- Histology channel upload now reads in channel map from data when available
3134

32-
## bugfixes
35+
### bugfixes
3336
- PostDLC tasks looks in alf folder for lick datasets
3437

3538
## Release Notes 2.32
3639

37-
## features
40+
### features
3841
- SDSC patcher automatically support revisions
3942

40-
## other
43+
### other
4144
- Add extra key to alignment qc with manual resolution for channel upload
4245

4346
#### 2.32.3

0 commit comments

Comments
 (0)