The SKIRT project
advanced radiative transfer for astrophysics
pts.storedtable.convert_copy Namespace Reference

Function to "convert" stored table files by simply copying them. More...

Functions

 copyWithoutConversion (inFilePaths, outFilePaths)
 This function expects a sequence of input file paths and corresponding output file paths in one of three variations:

Detailed Description

Function to "convert" stored table files by simply copying them.

The function in this module has the same signature as the functions for converting some type of data into SKIRT stored table format, however, it expects its input files to already have the correct format.

Function Documentation

◆ copyWithoutConversion()

pts.storedtable.convert_copy.copyWithoutConversion ( inFilePaths,
outFilePaths )

This function expects a sequence of input file paths and corresponding output file paths in one of three variations:

  • multiple input paths and a single output path: the output path is used as a directory path and the input filenames are preserved.
  • single input path containing a "*" wildcard and a single output path: likewise, all matching input files are copied.
  • otherwise: each of the input files is copied to the corresponding output file path. In other words, the function has a similar signature as the functions for converting some type of data into SKIRT stored table format, however, it expects its input files to already have the correct format.