Example #1
0
        #Print results to an output text file
        with open(args.out, 'a') as f:
            f.write(f"#{args} \n")
            f.write("name \n")
            for n in clean_set:
                f.write(f"{n} \n")

    # Get the light curves
    print("Getting light curves from the alerts...")
    from get_lc_kowalski import get_lightcurve_alerts, \
                                get_lightcurve_alerts_aux, create_tbl_lc

    # If there are candidates at all..
    if clean_set is not None:
        light_curves_alerts = get_lightcurve_alerts(username,
                                                    password,
                                                    clean_set)

        # Add prv_candidates photometry to the light curve
        print("Getting light curves from the alerts prv...")
        light_curves_aux = get_lightcurve_alerts_aux(username,
                                                     password,
                                                     clean_set)
    else:
        light_curves_alerts, light_curves_aux = None, None

    # Are there any candidates?
    if light_curves_alerts is not None and light_curves_aux is not None:
        light_curves = light_curves_alerts + light_curves_aux
    elif light_curves_alerts is not None:
        light_curves = light_curves_alerts
Example #2
0
        #Print results to an output text file
        with open(args.out, 'a') as f:
            f.write(f"#{args} \n")
            f.write("name \n")
            for n in clean_set:
                f.write(f"{n} \n")

    # Get the light curves
    print("Getting light curves from the alerts...")
    from get_lc_kowalski import get_lightcurve_alerts, \
                                get_lightcurve_alerts_aux, create_tbl_lc

    # If there are candidates at all..
    if clean_set is not None:
        light_curves_alerts = get_lightcurve_alerts(username, password,
                                                    clean_set)

        # Add prv_candidates photometry to the light curve
        print("Getting light curves from the alerts prv...")
        light_curves_aux = get_lightcurve_alerts_aux(username, password,
                                                     clean_set)
    else:
        light_curves_alerts, light_curves_aux = None, None

    # Are there any candidates?
    if light_curves_alerts is not None and light_curves_aux is not None:
        light_curves = light_curves_alerts + light_curves_aux
    elif light_curves_alerts is not None:
        light_curves = light_curves_alerts
    elif light_curves_aux is not None:
        light_curves = light_curves_aux