The SKIRT project
advanced radiative transfer for astrophysics
Classes | Functions
pts.simulation.skifile Namespace Reference

Reading from and adjusting a SKIRT parameter file. More...

Classes

class  SkiFile
 An instance of the SkiFile class represents a particular existing SKIRT parameter file (ski file). More...
 

Functions

def _prettyStringForFloat (value)
 This function returns a "pretty" string representation for a floating point number suitable for inclusion in a ski file. More...
 

Detailed Description

Reading from and adjusting a SKIRT parameter file.

An instance of the SkiFile class in this module allows reading from and adjusting an existing SKIRT parameter file (ski file).

Function Documentation

◆ _prettyStringForFloat()

def pts.simulation.skifile._prettyStringForFloat (   value)
private

This function returns a "pretty" string representation for a floating point number suitable for inclusion in a ski file.

The formatting proceeds in the same way as when SKIRT outputs numbers in a ski file.