plopm.utils.initialization module

Utiliy functions to set the requiried input values by plopm.

plopm.utils.initialization.ini_dic(cmdargs)

Initialize the global dictionary

Args:

cmdargs (dict): Command arguments

Returns:

dic (dict): Modified global dictionary

plopm.utils.initialization.ini_properties(dic)

Define the properties to plot

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

plopm.utils.initialization.ini_slides(dic, n)

Initialize dictionary entries used for the 2D maps

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

plopm.utils.initialization.ini_summary(dic)

Initialize the needed objects for the summary plots

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

plopm.utils.initialization.initialize_mass(mskl)

Initialize the mass properties according to the given variable

Args:

dic (dict): Global dictionary

Returns:

dic (dict): Modified global dictionary

plopm.utils.initialization.initialize_spatial(unit)

Handle the units for the axis in the spatial maps

Args:

unit (str): Type for the axis unit

Returns:

scale (float): Scale for the coordinates

unit (str): Units for the axis

plopm.utils.initialization.is_summary(dic)

Check flag arguments and files for summary plot

Args:

dic (dict): Global dictionary

Returns:

bool: True if one variable is in the summary keys