Usage for buildtarfile

Return to directory of Todd's CASA extensions

This command is useful to administrators for distributing a snapshot of the tools.

au.buildtarfile(path=os.path.dirname(__file__), outpath='~')

Will create a file at ~/analysis_scripts.tar containing six files (analysisUtils.py, readscans.py, plotbandpass.py, mpfit.py, XmlObjectifier.py, fileIOPython.py) from the currently active directory (i.e. the one from which you are running analysisUtils). The tar file will unpack into ./analysis_scripts/. The first argument can be set to point to an alternative cvs checkout area (the final directory of the path: 'analysis_scripts' can be included or left off). The second argument can be set to place the resulting tarfile elsewhere.

Example:
CASA <2>: au.buildtarfile()
Extracting files from /users/thunter/test/AIV/science
analysis_scripts/analysisUtils.py
analysis_scripts/fileIOPython.py
analysis_scripts/mpfit.py
analysis_scripts/plotbandpass.py
analysis_scripts/readscans.py
analysis_scripts/XmlObjectifier.py
Tar file left at = ~/analysis_scripts.tar

-- ToddHunter - 2011-11-15
Topic revision: r3 - 2011-12-14, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback