Made dependency handling more clear.
Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.
|...||...||@@ -46,11 +46,15 @@ def my_new_func(some_args):|
|If your code has dependencies that is large and uncommon (e.g. SpacePy) then please seperate it as it's own module. For example you may create a folder:|
|If your code has dependencies that is large and uncommon (e.g. SpacePy) then please import it in the function and be explicit about the dependencies. For example you may create a function:|
|"""Func does this.|
|Depends on spacepy. Try `pip install -U spacepy`|
|# Function body|
|Then your functions will be in swmfpy.spacepy which has its own namespace.|
|...||...||@@ -142,6 +142,9 @@ def download_magnetogram_adapt(time, map_type='fixed', **kwargs):|
|download_dir (str): (default is current dir) Relative directory|
|where you want the maps to be downloaded.|
|str: First unzipped filename found.|
|NotADirectoryError: If the adapt maps directory|
|is not found on the server.|
|...||...||@@ -230,3 +233,9 @@ def download_magnetogram_adapt(time, map_type='fixed', **kwargs):|
|# close the connection|
|# return first file name if all goes well|
|return_name = filenames|
|if '.gz' in return_name:|
|return_name = return_name[:-3]|