Skip to content
Snippets Groups Projects
Commit 9f8bde08 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-499: Update our Jupyter documentation to use import of tangostationcontrol

parent c70d8014
No related branches found
No related tags found
1 merge request!192L2SS-499: Expose tangostationcontrol package to jupyter
......@@ -63,7 +63,7 @@ Typically, ``N_ant == 192``, and ``N_blocks == 136``.
The metadata refers to the *blocks*, which are emitted by the FPGAs to represent the XSTs between 12 x 12 consecutive antennas. The following code converts block numbers to the indices of the first antenna pair in a block::
from common.baselines import baseline_from_index
from tangostationcontrol.common.baselines import baseline_from_index
def first_antenna_pair(block_nr: int) -> int:
coarse_a, coarse_b = baseline_from_index(block_nr)
......@@ -71,7 +71,7 @@ The metadata refers to the *blocks*, which are emitted by the FPGAs to represent
Conversely, to calculate the block index for an antenna pair ``(a,b)``, use::
from common.baselines import baseline_index
from tangostationcontrol.common.baselines import baseline_index
def block_nr(a: int, b: int) -> int:
return baseline_index(a // 12, b // 12)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment