Skip to content

Commit

Permalink
feat(tools): Expose PF_SPACE constant
Browse files Browse the repository at this point in the history
ch_pipeline uses it, so it shouldn't be private.

Also moved the private _26M_B constant into the
function using it, to prevent it leaking out of the
module in the same way.
  • Loading branch information
ketiltrout committed Aug 2, 2024
1 parent 437e7eb commit 0dd18ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ch_util/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,10 @@
#
# etc.

# Private data
# ============
# Data
# ====

_26M_B = 2.14 # m
_PF_SPACE = 22.0 # Pathfinder cylinder spacing
PF_SPACE = 22.0 # Pathfinder cylinder spacing


# Classes
Expand Down Expand Up @@ -2515,6 +2514,7 @@ def delay(

# Add the b-term for baselines including the 26m Galt telescope
if bterm:
_26M_B = 2.14 # m
b_delay = _26M_B / scipy.constants.c * np.cos(src_dec)

galt_feeds = get_holographic_index(feeds)
Expand Down

0 comments on commit 0dd18ca

Please sign in to comment.