Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.base
Commits
f22059b3
Commit
f22059b3
authored
Nov 23, 2020
by
Yannick DAYER
Browse files
[legacy] database.all_files handles 'None' groups
parent
6a60ffd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/database/database.py
View file @
f22059b3
...
...
@@ -671,12 +671,15 @@ class ZTBioDatabase(BioDatabase):
files
=
self
.
objects
(
protocol
=
self
.
protocol
,
groups
=
groups
,
**
self
.
all_files_options
)
# add all files that belong to the ZT-norm
if
add_zt_files
:
if
add_zt_files
and
groups
:
for
group
in
groups
:
if
group
==
'world'
:
continue
files
+=
self
.
tobjects
(
protocol
=
self
.
protocol
,
groups
=
group
,
model_ids
=
None
)
files
+=
self
.
zobjects
(
protocol
=
self
.
protocol
,
groups
=
group
,
**
self
.
z_probe_options
)
elif
add_zt_files
:
files
+=
self
.
tobjects
(
protocol
=
self
.
protocol
,
groups
=
groups
,
model_ids
=
None
)
files
+=
self
.
zobjects
(
protocol
=
self
.
protocol
,
groups
=
groups
,
**
self
.
z_probe_options
)
return
self
.
sort
(
files
)
@
abc
.
abstractmethod
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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