Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
openbis
openbis-public
jupyter
jupyter-openbis-gui-server
Commits
94387da8
Commit
94387da8
authored
Apr 23, 2020
by
vermeul
Browse files
fetch dataSet properties compatible with pyBIS 1.14.3 or later
parent
d90fa05d
Changes
1
Hide whitespace changes
Inline
Side-by-side
jupyter-openbis-server/sample.py
View file @
94387da8
...
...
@@ -35,9 +35,9 @@ def get_datasets(entity, start_with=None, count=None):
def
get_datasets_for_identifier
(
conn
,
identifier
,
start_with
=
None
,
count
=
None
):
datasets
=
conn
.
openbis
.
get_datasets
(
sample
=
identifier
,
start_with
=
start_with
,
count
=
count
)
datasets
=
conn
.
openbis
.
get_datasets
(
sample
=
identifier
,
props
=
[
'$name'
],
start_with
=
start_with
,
count
=
count
)
if
len
(
datasets
)
==
0
:
datasets
=
conn
.
openbis
.
get_datasets
(
experiment
=
identifier
,
start_with
=
start_with
,
count
=
count
)
datasets
=
conn
.
openbis
.
get_datasets
(
experiment
=
identifier
,
props
=
[
'$name'
],
start_with
=
start_with
,
count
=
count
)
totalCount
=
datasets
.
totalCount
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment