context = h_init()
context.set_state('ProjectSummary', 'proposal_code', 'VLA/22A-020')
context.set_state('ProjectSummary', 'proposal_title', 'unknown')
context.set_state('ProjectSummary', 'piname', 'unknown')
context.set_state('ProjectSummary', 'observatory', 'Karl G. Jansky Very Large Array')
context.set_state('ProjectSummary', 'telescope', 'EVLA')
context.set_state('ProjectStructure', 'ppr_file', 'PPR.xml')
try:
    hifv_importdata(vis=['22A-020_sb41852157_1_1.59747.288797835645'], session=['session_1'])
    hifv_flagdata(autocorr=False, shadow=True, scan=False, quack=False, clip=True, baseband=False, edgespw=False, online=True, template=False, hm_tbuff='manual', tbuff=0.0, fileonline='22A-020_sb41852157_1_1.59747.288797835645.flagonline.txt')
finally:
    h_save()
