From 9f8bde082c1fa54e6fab40c9534514b7d7f1e813 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Thu, 9 Dec 2021 09:16:47 +0100 Subject: [PATCH] L2SS-499: Update our Jupyter documentation to use import of tangostationcontrol --- docs/source/devices/sst-xst.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/devices/sst-xst.rst b/docs/source/devices/sst-xst.rst index cdb689e45..092bdda83 100644 --- a/docs/source/devices/sst-xst.rst +++ b/docs/source/devices/sst-xst.rst @@ -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) -- GitLab