load¶
This module implements the tools to easily load BPASS data.
-
hoki.load.
model_input
(path)¶ Loads inputs from one file and put them in a dataframe
- Parameters
path (str) – Path to the file containing the input data.
-
hoki.load.
model_output
(path, hr_type=None)¶ Loads a BPASS output file
- Parameters
path (str) – Path to the file containing the target data.
hr_type (str, optional) – Type of HR diagram to load: ‘TL’, ‘Tg’ or ‘TTG’.
- Returns
Output Data
- Return type
pandas.DataFrame or hoki.hrdiagrams.HRDiagrams object
-
hoki.load.
set_models_path
(path)¶ Changes the path to the stellar models in hoki’s settings
- Parameters
path (str,) – Absolute path to the top level of the stellar models this could be a directory named something like bpass-v2.2-newmodels and the next level down should contain ‘NEWBINMODS’ and ‘NEWSINMODS’.
Notes
You are going to have to reload hoki for your new path to take effect.
-
hoki.load.
unpickle
(path)¶ Extract pickle files