Lv2_swift_lc.py
def att_file_use(eventfile):
    """
    For a given event file, determines what attitude file to use

    eventfile - path to the event file
    """
    obsid = str(pathlib.Path(eventfile).name)[:13]

    attflag = fits.open(eventfile)[1].header['ATTFLAG']
    if attflag == '110':
        return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'pat.fits.gz'
    elif attflag == '100':
        return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'sat.fits.gz'
    elif attflag == '111':
        return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'uat.fits.gz'

    For a given event file, determines what attitude file to use

    eventfile - path to the event file
    
For a given event file, determines what attitude file to use
eventfile - path to the event file
For a given event file determines what attitude file to use eventfile - path to the event file
def att_file_use(eventfile):
    obsid = str(pathlib.Path(eventfile).name)[:13]
    attflag = fits.open(eventfile)[1].header['ATTFLAG']
    if attflag == '110':
        return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'pat.fits.gz'
    elif attflag == '100':
        return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'sat.fits.gz'
    elif attflag == '111':
        return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'uat.fits.gz'
def att_file_use ( eventfile ) : obsid = str ( pathlib . Path ( eventfile ) . name ) [ : 13 ] attflag = fits . open ( eventfile ) [ 1 ] . header [ 'ATTFLAG' ] if attflag == '110' : return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'pat.fits.gz' elif attflag == '100' : return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'sat.fits.gz' elif attflag == '111' : return '/Volumes/Samsung_T5/NGC300_ULX_Swift/auxil/' + obsid + 'uat.fits.gz'
For a given event file, determines what attitude file to use
eventfile - path to the event file
For a given event file determines what attitude file to use eventfile - path to the event file
"""
    For a given event file, determines what attitude file to use

    eventfile - path to the event file
    """
eventfile