code: def get_discrete_dims(self):
          
          discrete_dims = []
          for i in range(self.dimensionality):
              if self.space_expanded[i].type == 'discrete':
                  discrete_dims += [i]
          return discrete_dims
docs: Returns the dimension of the discrete components of the domain.