Package Ganga :: Package Core :: Package Sandbox :: Module Sandbox
[hide private]
[frames] | no frames]

Module Sandbox

source code

Classes [hide private]
  SandboxError
Functions [hide private]
 
getDefaultModules()
Return list of ganga modules which are needed for WNSandbox.
source code
 
getGangaModulesAsSandboxFiles(modules)
This returns a list of sandbox files corresponding to specified Ganga modules.
source code
 
createPackedInputSandbox(sandbox_files, inws, name)
Put all sandbox_files into tarball called name and write it into to the input workspace.
source code
 
createInputSandbox(sandbox_files, inws)
Put all sandbox_files into the input workspace.
source code
 
getPackedOutputSandbox(src_dir, dest_dir)
Unpack output files from tarball in source directory and write them to destination directory This function is called by Ganga client at the completing of job.
source code
Variables [hide private]
  logger = Ganga.Utility.logging.getLogger(modulename= True)
  __package__ = 'Ganga.Core.Sandbox'
Function Details [hide private]

getGangaModulesAsSandboxFiles(modules)

source code 

This returns a list of sandbox files corresponding to specified Ganga modules. Ganga modules are placed in a well-known location in the sandbox.

createPackedInputSandbox(sandbox_files, inws, name)

source code 
Put all sandbox_files into tarball called name and write it into to the input workspace.
        This function is called by Ganga client at the submission time.
Arguments:
        'sandbox_files': a list of File or FileBuffer objects.
        'inws': a InputFileWorkspace object
Return: a list containing a path to the tarball

createInputSandbox(sandbox_files, inws)

source code 
Put all sandbox_files into the input workspace.
        This function is called by Ganga client at the submission time.
Arguments:
        'sandbox_files': a list of File or FileBuffer objects.
        'inws': a InputFileWorkspace object
Return: a list of paths to sanbdox files in the input workspace

getPackedOutputSandbox(src_dir, dest_dir)

source code 
Unpack output files from tarball in source directory and
        write them to destination directory
        This function is called by Ganga client at the completing of job.
        Complementary to createPackedOutput()
Arguments:
        'src_dir': source directory with tarball
        'dest_dir': destination directory for output files