round_columns#

skysim.utils.round_columns(table, column_names=('ra', 'dec', 'magnitude'), decimals=5)[source]#

Round columns of an Astropy Table.

Parameters:
tableastropy.table.Table

Table.

column_nameslist[str], optional

Names of columns to be rounded, by default [“ra”,”dec”,”magnitude”].

decimalsint | list[int], optional

Number of decimal places to keep, can be list of ints (same size as column_names) or a single value, by default 5.

Returns:
astropy.table.Table

table with column_names rounded to decimals.