Skip to content

Commit

Permalink
if to assert
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalvin committed Aug 13, 2024
1 parent 367f653 commit ecbf47d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flint/coadd/linmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ def generate_linmos_parameter_set(
f"linmos.primarybeam.ASKAP_PB.image = {str(holofile.absolute())}\n"
f"linmos.removeleakage = true\n"
)
if alpha is not None:
parset += f"linmos.primarybeam.ASKAP_PB.alpha = {alpha} # in radians\n"
assert alpha is not None, f"{alpha=}, which should not happen"
parset += f"linmos.primarybeam.ASKAP_PB.alpha = {alpha} # in radians\n"

# Now write the file, me hearty
logger.info(f"Writing parset to {str(parset_output_path)}.")
Expand Down

0 comments on commit ecbf47d

Please sign in to comment.