get_bigdata

ci_watson.artifactory_helpers.get_bigdata(*args, docopy=True, timeout=30, chunk_size=16384)[source]

Acquire requested data from a managed resource to the current directory.

Parameters:
argstuple of str

Location of file relative to TEST_BIGDATA.

docopybool

Switch to control whether or not to copy a file into the test output directory when running the test. If you wish to open the file directly from remote location or just to see path to source, set this to False. Default: True

Returns:
deststr

Absolute path to local copy of data (i.e., /path/to/example.fits).

Examples

>>> import os
>>> print(os.getcwd())
/path/to
>>> from ci_watson.artifactory_helpers import get_bigdata
>>> filename = get_bigdata('abc', '123', 'example.fits')
>>> print(filename)
/path/to/example.fits
>>> get_bigdata('abc', '123', 'example.fits', docopy=False)
/remote/root/abc/123/example.fits