Others functions

pylenstool.keep_only_some_potentials(pf, pot_to_keep)

Removes every potentiel which are not in the list given in argument and returns a new parameter file. If you want to keep the parameter file and make a copy, use pylenstool.keep_only_some_potentials(parameter_file,pot_to_keep)

Parameters:
pf : lenstool_param_file

pylenstool parameter file

pot_to_keep : list of string

List of potentials names

Returns:
pf_new : lenstool_param_file

Returns a new pylenstool parameter file