<jupyter_start><jupyter_text><jupyter_code>plt.plot(gb18[1][1]['ab_mag'])
gb18[0][1]
gb18_loaded = pickle.load(open('/content/drive/My Drive/pTSA_microlensing/gb18.pkl', 'rb'))
gb18_loaded[0][0]
!wget https://exoplanetarchive.ipac.caltech.edu/data/ExoData/MOA/candlist_AlertID.dat
alert=pd.read_csv("candlist_AlertID.dat", skiprows=13, delim_whitespace=True, header=None, names=['field', 'chip', 'subframe', 'ID', 'tag', 'x', 'y', 'RA', 'DEC', 'sep', 
                                                                                                  'alertID1', 'alertX1', 'alertY1',
                                                                                                  'alertID2', 'alertX2', 'alertY2'])
alert
alert['filepath']=alert['field'] + "/R/" + alert['chip'].apply(str) + "/" + alert['field'] + "-R-" + alert['chip'].apply(str) + "-" + alert['subframe'].apply(str) + "-" + alert['ID'].apply(str) + ".phot"
alert['filepath']
pickle.dump(alert, open('/content/drive/My Drive/pTSA_microlensing/alerts.pkl', 'wb'))
alert[['filepath', 'alertID1']][alert['filepath'].str.startswith(gb18_loaded[1][0])]
alert['filepath'].isin([gb18_loaded[0][0]]).any()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.21237458193979933, 'fraction_numerical': 0.027591973244147156, 'mean_word_length': 2.9635761589403975, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '30783', 'license': 'MIT', 'n_tokens_mistral': 426, 'n_tokens_neox': 410, 'n_words': 47, 'path': 'MOAdataload.ipynb', 'repo_name': 'dibyajit30/ExoplanetHunting', 'size': '1196'}