Main functions

Controls most functionality of package by calling the following functions. * :ref:’EoS_importing’ * :ref: ‘TOV_solving’ * :ref: ‘__s’

main.OutputC_s(input_file='', density=[], pressure=[])
Calls function to open csv (if needed) and check equation of state validity.

Then calls function to calculate speed of sound.

Parameters
  • file_name (string, optional) – string. CSV file to be opened.

  • density (array, optional) – numpy 1Darray. Passed into a check function and returned if valid.

  • pressure (array, optional) – numpy 1Darray. Passed into a check function and returned if valid.

Returns

numpy 1D array. List of speeds of sound.

Return type

C_s (array)

main.OutputMR(input_file='', density=[], pressure=[])

Outputs the mass, radius, and tidal deformability :param file_name: string. CSV file to be opened. :type file_name: string, optional :param density: numpy 1Darray. Passed into a check function and returned if valid. :type density: array, optional :param pressure: numpy 1Darray. Passed into a check function and returned if valid. :type pressure: array, optional

Returns

tuple with mass, radius, and tidal deformability. Also saves to a .txt file.

Return type

MRT (tuple)