Skip to content

Commit

Permalink
[#914] _core_optics: add comment for split() routine
Browse files Browse the repository at this point in the history
  • Loading branch information
AD265925 authored and AD265925 committed Mar 1, 2024
1 parent 6876dbd commit 93f25f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tofu/geom/_core_optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,13 @@ def get_rays_from_cryst(
# -----------------

def split(self, direction=None, nb=None):
"""
Use to split the crystal in the direction wanted for nb pieces wanted.
If direction = 'e1', the crystal is splitted in the vertical way,
i.e. nb wide vertical crystals.
If direction = 'e2', the crystal is splitted in the horizontal way,
i.e. nb wide horizontal crystals.
"""

# ------------
# check inputs
Expand Down

0 comments on commit 93f25f1

Please sign in to comment.