PoreMS 0.3
  • API
  • Molecule
  • Pore
  • Workflow
  • Pore shape examples
  • Site
    • Page
        • Dice.neighbor
          • Dice.neighbor()
    • Dice.neighbor
      • Dice.neighbor()
    Source

    Dice.neighbor¶

    Dice.neighbor(cube_id, is_self=True)¶

    Get the ids of the cubes surrounding the given one.

    Parameters:
    indexlist

    Main cube index

    is_selfbool, optional

    True to add the main cube to the output

    Returns:
    neighborlist

    List of surrounding cube ids, optionally including given cube id

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 7.4.6.