def get_all_entries(self, charge_to_discharge=True):
        """
        Return all entries input for the electrode.

        Args:
            charge_to_discharge:
                order from most charge to most discharged state? Defaults to
                True.

        Returns:
            A list of all entries in the electrode (both stable and unstable),
            ordered by amount of the working ion.
        """
        all_entries = list(self.get_stable_entries())
        all_entries.extend(self.get_unstable_entries())
        # sort all entries by amount of working ion ASC
        fsrt = lambda e: e.composition.get_atomic_fraction(self.working_ion)
        all_entries = sorted([e for e in all_entries],
                             key=fsrt)
        return all_entries if charge_to_discharge else all_entries.reverse()
def get_all_entries ( self , charge_to_discharge = True ) : all_entries = list ( self . get_stable_entries ( ) ) all_entries . extend ( self . get_unstable_entries ( ) ) fsrt = lambda e : e . composition . get_atomic_fraction ( self . working_ion ) all_entries = sorted ( [ e for e in all_entries ] , key = fsrt ) return all_entries if charge_to_discharge else all_entries . reverse ( )
Return all entries input for the electrode.

        Args:
            charge_to_discharge:
                order from most charge to most discharged state? Defaults to
                True.

        Returns:
            A list of all entries in the electrode (both stable and unstable),
            ordered by amount of the working ion.