rayoptics.util.dict2d module

dict2D constructs a M x N dict using row_keys and col_keys as keys

dict2D(row_keys, col_keys)[source]

returns a 2D dictionary with M row_keys and N col_keys

row(dict_2d, row_key)[source]

returns a dict of the contents of row row_key of dict_2d

col(dict_2d, col_key)[source]

returns a dict of the contents of column col_key of dict_2d

num_items_by_type(dict_2d, row_keys, col_keys)[source]

return a dict of the number of items in each row/col of dict_2d

num_items_by_cell(dict_2d, row_keys, col_keys)[source]

return a list of the number of items in each cell of dict_2d