icecube.simprod.jcorsika.corsika_stage module¶
- icecube.simprod.jcorsika.corsika_stage.corsika_stage(version, url=None, location=None, platform=None, directory='/Users/buildbot/actions-runner/_work/icetray/build', suffix='.tar.gz')¶
Prepare CORSIKA files and executables.
As a result of this function, there should be a corsika directory containing the run or bin directory where CORSIKA executables can be found. This corsika directory is expected to be named according to this formats:
corsika-{version}corsika-{version}.{platform}This function first looks for the corsika directory in the location specified by the ‘location’ parameter. If not found, it then looks for a tarball at the following URLs:
{url}/corsika-{version}{suffix}{url}/corsika-{version}.{platform}{suffix}- Parameters:
version (corsika version (something like '73700')) –
url (A url where corsika tarballs can be downloaded.) –
location (A directory where one should find the corsika directory.) –
platform (This is normally just an identifying string added to the file or directory name.) –
directory (The directory where the corsika directory should end up.) –
suffix (The suffix of the tarball. '.tar.gz' by default. This is replaced by .md5sum to find the corresponding md5sum file.) –
- Returns:
topdir
- Return type:
string. The path to the corsika location (the directory containing the run or bin directory)
- icecube.simprod.jcorsika.corsika_stage.fetch_tarball(url=None, filebase=None, suffix='.tar.gz', directory='$TMPDIR/etc/nega_icesoft')¶
Get the corsika tarball
The URL of the tarball is {url}/{filebase}{suffix} and its md5sum is {url}/{filebase}.md5sum This function assumes that the directory that results from uncompressing is called {filebase}
- Parameters:
url (repository of tarballs) –
filebase (the basename of the tarball without the suffix) –
suffix (.tar.gz by default) –
directory (the location where tarball is to be uncompressed) –
- Returns:
topdir
- Return type:
the directory that results from uncompressing.