ACID_code_v2.DataList

class ACID_code_v2.DataList(data_list: list[Data] | Data, save_dir: str | None = None, verbose: IntLike | bool | None = None)[source]

A class that stores Data instances in a list indexed by order. Holds some useful methods for analysis or to be called by result. This can map the order number of an instrument to the 0-indexed python list.

append(data: Data, overwrite: bool = False, extend: bool = False, force_order: IntLike | None = None) None[source]
Appends a Data instance to the data list

“Note that the order range of the class is kept, if you want to set a new order range,

“ “Use the set_order_range() method first to change it.”

set_order_range(order_range: ACID_code_v2.utils.Array1D)[source]

A list or numpy array of the order range

sort_by_order()[source]

Sorts the data list by order number, and updates the o2i mapping accordingly.

save(save_dir: str | None = None)[source]
classmethod load(path: str)[source]
property save_dir