rescale_time
- tulips.tulips.rescale_time(indices, m, time_scale_type='model_number')[source]
Rescale the time.
Rescale time indices depending on the time_type.
- Parameters
- indicesnp.array or list of int
Containing selected indices.
- mmesa Object
- time_scale_typestr
One of model_number, linear, or log_to_end. For model_number, the time follows the moment when a new MESA model was saved. For linear, the time follows linear steps in star_age. For log_to_end, the time axis is tau = log10(t_final - t), where t_final is the final star_age of the model.
- Returns
- ind_selectlist
New list of indices that reflect the rescaling in time.