pymatgen.util.sequence module

This module provides utilities to chunk large sequences and display progress bars during processing.

class PBarSafe(total)[source]

Bases: object

Progress bar.

Parameters

() (total) – Total value.

report()[source]

Print progress.

update(amount)[source]

Update progress bar by amount.

Parameters

amount (float) –

get_chunks(sequence, size=1)[source]
Parameters
  • () (size) –

  • ()

Returns: