def save_table(): # Column field names for table fieldnames = ["name_TAP","RA_TAP", "Dec_TAP", "priority_TAP", "mag_TAP", "tE_TAP", "tE_err_TAP", "exposureTime_TAP"] delimiter = "," logger.info("Update .csv file with events using update_CSV script...") update_CSV.update(TAP_TARGET_TABLE_OUTPUT_FILEPATH, online_TAP_events, fieldnames=fieldnames, delimiter=delimiter) """
def save_triggers(): global update_local_events logger.info("Outputting event to .csv record of event triggers...") try: update_CSV.update(EVENT_TRIGGER_RECORD_FILEPATH, event_trigger_dict, fieldnames=FIELDNAMES, delimiter=DELIMITER) except Exception as ex: logger.warning("Exception outputting .csv record of event triggers") logger.warning(ex) update_local_events = False return