exosim.utils.iterators#

Functions#

iterate_over_opticalElements(input, key, last_key, val)

It iterates over the optical element of a given class and returns the edited dictionary

iterate_over_chunks(dataset, **kwargs)

Iterates over the dataset chunks using tqdm to produce an adaptive progress bass

searchsorted(known_array, test_array)

Module Contents#

iterate_over_opticalElements(input, key, last_key, val)[source]#

It iterates over the optical element of a given class and returns the edited dictionary

Parameters:
  • input (dict) – input dictionaru

  • key – optical element class

  • last_key – optical element key to edit

  • val – value to edit

Return type:

dict

iterate_over_chunks(dataset, **kwargs)[source]#

Iterates over the dataset chunks using tqdm to produce an adaptive progress bass :param dataset: h5py chunked dataset used to store the data :type dataset: h5py.Dataset

Return type:

tqdm.tqdm

searchsorted(known_array, test_array)[source]#