You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check if the image is present locally on the system in a specified path. For our usecase, we insall the images to a specific path on /blue directory, which can be modified
58
-
via the argument to the function
60
+
Check if the image is present locally on the system in a specified path. For our usecase, we
61
+
insall the images to a specific path on /blue directory, which can be modified via the argument
62
+
to the function
59
63
60
64
Args:
61
65
name(str, required) - The name of the docker image with the tag <image>:<tag>.
62
-
path(str, optional) - This path refers to the path on the local file system designated for placing singularity images after they are pulled from the interweb.
66
+
path(str, optional) - This path refers to the path on the local file system designated for
67
+
placing singularity images after they are pulled from the interweb.
63
68
Returns:
64
-
bool: True if the singularity image is avaialble on the given path on the local host system. False otherwise.
69
+
bool: True if singularity image is avaialble on the given path on host system. False otherwise.
This function is used to run the singularity command locally for non-resource intensive tasks such as getting schema, environment variables and so on and return that output to the calling function
221
+
This function is used to run the singularity command locally for non-resource intensive tasks
222
+
such as getting schema, environment variables and so on and return that output to the calling
Copy file name to clipboardExpand all lines: slicer_cli_web/singularity/slicer_cli_web_singularity/singularity_image.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,8 +38,10 @@ def _split(name):
38
38
39
39
classSingularityImage:
40
40
"""
41
-
This class is used to produce the Singularity equivalent of the Docker Image object as part of the Python SDK. This helps us to
42
-
reuse all the functions where Docker is not not directly involved rather the snapshort of the Docker Image object should suffice to perform the necessaray operations
41
+
This class is used to produce the Singularity equivalent of the Docker Image object as part
42
+
of the Python SDK. This helps us to reuse all the functions where Docker is not not directly
43
+
involved rather the snapshort of the Docker Image object should suffice to perform the
Copy file name to clipboardExpand all lines: slicer_cli_web/singularity/slicer_cli_web_singularity/utils.py
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@
4
4
5
5
defsanitize_and_return_json(res: str):
6
6
"""
7
-
This function tries to parse the given str as json in couple different ways. If the output is still not json or a python dictionary, it raises an error.
7
+
This function tries to parse the given str as json in couple different ways. If the output is
8
+
still not json or a python dictionary, it raises an error.
This function is used to handle Issues that is occuring when Singularity switches directory when running a plugin and not having the context of where the SIF IMAGES are located for subsequent image pulls.
64
+
This function is used to handle Issues that is occuring when Singularity switches directory
65
+
when running a plugin and not having the context of where the SIF IMAGES are located for
66
+
subsequent image pulls.
62
67
This function ensures that Singularity always looks for the plugins in the proper location
63
68
64
69
Args:
65
-
image_path (str, optional) - This parameter is highly optional and is not recommended unless a specific use-case arises in the future
70
+
image_path (str, optional) - This parameter is highly optional and is not recommended unless a
0 commit comments