Chipdelmal/MGSurvE

Traps Kernels dictionary has to have sequential indices

Chipdelmal opened this issue · 2 comments

As of now, the indices of the kernels have to be sequential integers:
tKer={0: T_KERNEL, 1: T_KERNEL}
so, this fails:
tKer={1: T_KERNEL}

Need to fix the way the traps probabilities are iterated at https://github.com/Chipdelmal/MGSurvE/blob/main/MGSurvE/matrices.py#L75.

This is needed both for usability and trap type optimization purposes.

A trapsMatrix array is created with size equal to the max length of the trap index provided to the landscape and is set to 1 in every entry.

A trapsMatrix array should be provided if optimization over trap types is going to take place.