HealthDict

class openpnm.utils.misc.HealthDict(**kwargs)[source]

This class adds a ‘health’ check to a standard dictionary.

This check looks into the dict values, and considers empty lists as healthy and all else as unhealthy. If one or more entries is ‘unhealthy’ the health method returns False.

Attributes
health

Methods

move_to_end(/, key[, last])

Move an existing element to the end (or beginning if last is false).