Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
af2-at-scicore
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
af2-at-scicore
Commits
b487168c
Commit
b487168c
authored
3 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Fallback for Singularity image finding.
parent
e9ef7486
Branches
Branches containing commit
Tags
4.0.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+8
-0
8 additions, 0 deletions
CHANGELOG.md
run_af2/src/run_af2/run_singularity.py
+5
-1
5 additions, 1 deletion
run_af2/src/run_af2/run_singularity.py
with
13 additions
and
1 deletion
CHANGELOG.md
+
8
−
0
View file @
b487168c
Changes in Release 3.1.1
=================================================================================
*
`run_af2`
Python package:
*
Adapt to new AF2 versioning scheme
*
Fallback for picking up the Singularity image automatically
Changes in Release 3.1.0
=================================================================================
...
...
This diff is collapsed.
Click to expand it.
run_af2/src/run_af2/run_singularity.py
+
5
−
1
View file @
b487168c
...
...
@@ -179,7 +179,9 @@ def _assemble_singularity_call( # pylint: disable=too-many-arguments
def
_determine_af2_image
(
af2_image_dir
):
"""
Select an image from a given directory. File name of the images need to
be of form alphafold-<YYYY-MM-DD>.sif. The path to the latest image will be
returned, determined by the
'
<YYYY-MM-DD>
'
component of the file name.
"""
returned, determined by the
'
<YYYY-MM-DD>
'
component of the file name. If
the file name is of different form, an arbitrary file ending with
'
.sif
'
will be used.
"""
lst_mtch
=
"
0000-00-00
"
af2_path
=
""
af2_files
=
os
.
listdir
(
af2_image_dir
)
...
...
@@ -194,6 +196,8 @@ def _determine_af2_image(af2_image_dir):
if
mtch
.
group
(
1
)
>
lst_mtch
:
af2_path
=
af2_file
lst_mtch
=
mtch
.
group
(
1
)
elif
af2_file
.
endswith
(
"
.sif
"
):
af2_path
=
af2_file
af2_path
=
os
.
path
.
join
(
af2_image_dir
,
af2_path
)
return
af2_path
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment