Skip to main content
Ctrl+K

M⁴OPT

  • Installation
  • User Guide
  • Design
  • Developer Documentation
  • GitHub
  • Installation
  • User Guide
  • Design
  • Developer Documentation
  • GitHub

Section Navigation

  • Field of Regard Constraints (m4opt.constraints)
  • Spacecraft Dynamics (m4opt.dynamics)
  • Fields of View (m4opt.fov)
  • Synthetic Photometry (m4opt.synphot)
  • Observer Locations (m4opt.observer)
  • Sky Grid Tessellation (m4opt.skygrid)
  • Mixed Integer Linear Programs (m4opt.milp)
  • Mission Profiles (m4opt.missions)
  • Utilities (m4opt.utils)
    • progress
    • status
    • groupby_unsorted
    • atmost_1d
    • clump_nonzero
    • clump_nonzero_inclusive
    • full_indices
    • pack_boxes
    • partition_graph
    • partition_graph_color
    • solve_tsp
    • get_maxrss_bytes
    • collect_dependence
  • Command Line Interface
  • User Guide
  • Utilities (m4opt.utils)
  • groupby_unsorted

groupby_unsorted#

m4opt.utils.functional.groupby_unsorted(iterable, key)[source] [edit on github]#

Group items like itertools.groupby, but without requiring the input to be sorted.

Parameters:
  • iterable (Iterable[Item])

  • key (Callable[[Item], Key])

Return type:

Iterable[tuple[Key, Iterable[Item]]]

previous

status

next

atmost_1d

On this page
  • groupby_unsorted()
Edit on GitHub
Show Source

© Copyright 2026, M4OPT Developers.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.18.0.