qumas.LensmodelWrapper.utils module
- write_list_to_file(file_path, data_lines)[source]
Write the content of a list to a file.
- Parameters:
file_path (str) – Path to the file to save.
data_lines (list of str) – Lines to write to the file.
- bands_that_can_be_modeled(L, print_bands=False, keyword='IS')[source]
given a panda data frame for and unique object choose the best band for our experiment e.g. I/F814/i
- Parameters:
L (pandas.DataFrame)
- can_be_modeled(L, keywords=['IS', 'lens'], to_pandas=True)[source]
cbm:can be modeled ? given a panda data frame for and unique object
- Parameters:
L (pandas.DataFrame)
- is_know_redshift(Lenses)[source]
Given a data frame of lens system look for redshift in the system in the current table and replace - for 0.5 or 2.0
- Parameters:
Lenses (pandas.DataFrame)