add_offset_double_rowland_channels

marxs.design.rowland.add_offset_double_rowland_channels(geometry, offsets={'1': [0, -2.5, -7.5], '1m': [0, -2.5, -2.5], '2': [0, 2.5, 2.5], '2m': [0, 2.5, 7.5]})[source] [edit on github]

Generate Rowland tori for multiple spectral channels in a double-tori design.

While this function can generate four separate channels (splitting the original and the original mirrored channel in two each). Rowland tori are added to the input geometry dictionary.

Parameters:
geometrydict

Dictionary with the keys from ` double_rowland_from_channel_distance`.

offsetsdict

Dictionary with the keys that hold the channel ids and the values that hold the offsets in the x, y, and z direction. The default value is set for a total of four channels, where each of the original and the original mirrored channel is split in two. However, the function can be used to generate any number of channels with the naming convention that channels 1, 2, 3, … are generated from the original channel and channels 1m, 2m, 3m, … are generated from the original mirrored channel.