swiftest.Simulation.convert

swiftest.Simulation.convert#

Simulation.convert(param_file, newcodename='Swiftest', plname='pl.swiftest.in', tpname='tp.swiftest.in', cbname='cb.swiftest.in', conversion_questions={}, dask=False, **kwargs)[source]#

Converts simulation input files from one format to another (Swift, Swifter, or Swiftest).

Parameters:
  • param_file (string) – File name of the input parameter file

  • newcodename (string) – Name of the desired format (Swift/Swifter/Swiftest)

  • plname (string) – File name of the massive body input file

  • tpname (string) – File name of the test particle input file

  • cbname (string) – File name of the central body input file

  • conversion_questions (dictronary) – Dictionary of additional parameters required to convert between formats

  • dask (bool, default False) – Use Dask to lazily load data (useful for very large datasets)

Returns:

oldparam (Dict) – The old parameter configuration.