split_spw

split_spw(spw_string: str) str[source]

Splits an SPW string on '#' characters while retaining them, and inserts a <br/> before the 'ALMA' portion to improve readability. Returns the original string if 'ALMA' is not found.

Example

Input: "X100001#X900000004#ALMA_RB_06#BB_1#SW-01#FULL_RES" Output: "X100001#<br/>X900000004#<br/>ALMA_RB_06#BB_1#SW-01#FULL_RES"

Parameters:

spw_string -- The original SPW string containing '#' delimiters.

Returns:

The reformatted SPW string with <br/> inserted before 'ALMA'.