src.model_utils package

Submodules

src.model_utils.clear module

Script for clearing all the finished runs from the SSD.

src.model_utils.clear.clear(project='sdat2/seager19')

Clear the logs.

Parameters

project (str) – Wandb project. Defaults to src.constants.DEFAULT_PROJECT.

Return type

None

src.model_utils.mem_to_input module

Convert mem sting into input function

src.model_utils.mem_to_input.mem_to_dict(mem)

Single mem variable to dictionary of inputs.

Uses logic in mems_to_df.

Parameters

mem (str) – The mem input e.g “EEEE”

Returns

dictionary of inputs, e.g.

Return type

dict

src.model_utils.mem_to_input.mems_to_df(mem_list)

Turn a list of mems into a dataframe of inputs.

Parameters

mem_list (List[str]) – List of mem to turn into corresponding dataframe of inputs.

Returns

A dataframe

Return type

pd.DataFrame

Example

Work out what inputs a list of runs got:

mems_to_df(["EEEE", "CCCC", "66E6"])

Module contents