Skip to content

Commit

Permalink
less printing
Browse files Browse the repository at this point in the history
  • Loading branch information
jrob93 committed Nov 15, 2023
1 parent 14c7cd0 commit 048cb02
Showing 1 changed file with 3 additions and 272 deletions.
275 changes: 3 additions & 272 deletions notebooks/SSO_alerts_per_visit/alerts_per_night.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -290,276 +290,7 @@
"execution_count": 10,
"id": "0af2c49a",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0 60218 60246\n",
"load: alert_counts/counts_0.npy alert_counts/nights_0.npy\n",
"1 60246 60274\n",
"load: alert_counts/counts_1.npy alert_counts/nights_1.npy\n",
"2 60274 60302\n",
"load: alert_counts/counts_2.npy alert_counts/nights_2.npy\n",
"3 60302 60330\n",
"load: alert_counts/counts_3.npy alert_counts/nights_3.npy\n",
"4 60330 60358\n",
"load: alert_counts/counts_4.npy alert_counts/nights_4.npy\n",
"5 60358 60386\n",
"load: alert_counts/counts_5.npy alert_counts/nights_5.npy\n",
"6 60386 60414\n",
"load: alert_counts/counts_6.npy alert_counts/nights_6.npy\n",
"7 60414 60442\n",
"load: alert_counts/counts_7.npy alert_counts/nights_7.npy\n",
"8 60442 60470\n",
"load: alert_counts/counts_8.npy alert_counts/nights_8.npy\n",
"9 60470 60498\n",
"load: alert_counts/counts_9.npy alert_counts/nights_9.npy\n",
"10 60498 60526\n",
"load: alert_counts/counts_10.npy alert_counts/nights_10.npy\n",
"11 60526 60554\n",
"load: alert_counts/counts_11.npy alert_counts/nights_11.npy\n",
"12 60554 60582\n",
"load: alert_counts/counts_12.npy alert_counts/nights_12.npy\n",
"13 60582 60610\n",
"load: alert_counts/counts_13.npy alert_counts/nights_13.npy\n",
"14 60610 60638\n",
"load: alert_counts/counts_14.npy alert_counts/nights_14.npy\n",
"15 60638 60666\n",
"load: alert_counts/counts_15.npy alert_counts/nights_15.npy\n",
"16 60666 60694\n",
"load: alert_counts/counts_16.npy alert_counts/nights_16.npy\n",
"17 60694 60722\n",
"load: alert_counts/counts_17.npy alert_counts/nights_17.npy\n",
"18 60722 60750\n",
"load: alert_counts/counts_18.npy alert_counts/nights_18.npy\n",
"19 60750 60778\n",
"load: alert_counts/counts_19.npy alert_counts/nights_19.npy\n",
"20 60778 60806\n",
"load: alert_counts/counts_20.npy alert_counts/nights_20.npy\n",
"21 60806 60834\n",
"load: alert_counts/counts_21.npy alert_counts/nights_21.npy\n",
"22 60834 60862\n",
"load: alert_counts/counts_22.npy alert_counts/nights_22.npy\n",
"23 60862 60890\n",
"load: alert_counts/counts_23.npy alert_counts/nights_23.npy\n",
"24 60890 60918\n",
"load: alert_counts/counts_24.npy alert_counts/nights_24.npy\n",
"25 60918 60946\n",
"load: alert_counts/counts_25.npy alert_counts/nights_25.npy\n",
"26 60946 60974\n",
"load: alert_counts/counts_26.npy alert_counts/nights_26.npy\n",
"27 60974 61002\n",
"load: alert_counts/counts_27.npy alert_counts/nights_27.npy\n",
"28 61002 61030\n",
"load: alert_counts/counts_28.npy alert_counts/nights_28.npy\n",
"29 61030 61058\n",
"load: alert_counts/counts_29.npy alert_counts/nights_29.npy\n",
"30 61058 61086\n",
"load: alert_counts/counts_30.npy alert_counts/nights_30.npy\n",
"31 61086 61114\n",
"load: alert_counts/counts_31.npy alert_counts/nights_31.npy\n",
"32 61114 61142\n",
"load: alert_counts/counts_32.npy alert_counts/nights_32.npy\n",
"33 61142 61170\n",
"load: alert_counts/counts_33.npy alert_counts/nights_33.npy\n",
"34 61170 61198\n",
"load: alert_counts/counts_34.npy alert_counts/nights_34.npy\n",
"35 61198 61226\n",
"load: alert_counts/counts_35.npy alert_counts/nights_35.npy\n",
"36 61226 61254\n",
"load: alert_counts/counts_36.npy alert_counts/nights_36.npy\n",
"37 61254 61282\n",
"load: alert_counts/counts_37.npy alert_counts/nights_37.npy\n",
"38 61282 61310\n",
"load: alert_counts/counts_38.npy alert_counts/nights_38.npy\n",
"39 61310 61338\n",
"load: alert_counts/counts_39.npy alert_counts/nights_39.npy\n",
"40 61338 61366\n",
"load: alert_counts/counts_40.npy alert_counts/nights_40.npy\n",
"41 61366 61394\n",
"load: alert_counts/counts_41.npy alert_counts/nights_41.npy\n",
"42 61394 61422\n",
"load: alert_counts/counts_42.npy alert_counts/nights_42.npy\n",
"43 61422 61450\n",
"load: alert_counts/counts_43.npy alert_counts/nights_43.npy\n",
"44 61450 61478\n",
"load: alert_counts/counts_44.npy alert_counts/nights_44.npy\n",
"45 61478 61506\n",
"load: alert_counts/counts_45.npy alert_counts/nights_45.npy\n",
"46 61506 61534\n",
"load: alert_counts/counts_46.npy alert_counts/nights_46.npy\n",
"47 61534 61562\n",
"load: alert_counts/counts_47.npy alert_counts/nights_47.npy\n",
"48 61562 61590\n",
"load: alert_counts/counts_48.npy alert_counts/nights_48.npy\n",
"49 61590 61618\n",
"load: alert_counts/counts_49.npy alert_counts/nights_49.npy\n",
"50 61618 61646\n",
"load: alert_counts/counts_50.npy alert_counts/nights_50.npy\n",
"51 61646 61674\n",
"load: alert_counts/counts_51.npy alert_counts/nights_51.npy\n",
"52 61674 61702\n",
"load: alert_counts/counts_52.npy alert_counts/nights_52.npy\n",
"53 61702 61730\n",
"load: alert_counts/counts_53.npy alert_counts/nights_53.npy\n",
"54 61730 61758\n",
"load: alert_counts/counts_54.npy alert_counts/nights_54.npy\n",
"55 61758 61786\n",
"load: alert_counts/counts_55.npy alert_counts/nights_55.npy\n",
"56 61786 61814\n",
"load: alert_counts/counts_56.npy alert_counts/nights_56.npy\n",
"57 61814 61842\n",
"load: alert_counts/counts_57.npy alert_counts/nights_57.npy\n",
"58 61842 61870\n",
"load: alert_counts/counts_58.npy alert_counts/nights_58.npy\n",
"59 61870 61898\n",
"load: alert_counts/counts_59.npy alert_counts/nights_59.npy\n",
"60 61898 61926\n",
"load: alert_counts/counts_60.npy alert_counts/nights_60.npy\n",
"61 61926 61954\n",
"load: alert_counts/counts_61.npy alert_counts/nights_61.npy\n",
"62 61954 61982\n",
"load: alert_counts/counts_62.npy alert_counts/nights_62.npy\n",
"63 61982 62010\n",
"load: alert_counts/counts_63.npy alert_counts/nights_63.npy\n",
"64 62010 62038\n",
"load: alert_counts/counts_64.npy alert_counts/nights_64.npy\n",
"65 62038 62066\n",
"load: alert_counts/counts_65.npy alert_counts/nights_65.npy\n",
"66 62066 62094\n",
"load: alert_counts/counts_66.npy alert_counts/nights_66.npy\n",
"67 62094 62122\n",
"load: alert_counts/counts_67.npy alert_counts/nights_67.npy\n",
"68 62122 62150\n",
"load: alert_counts/counts_68.npy alert_counts/nights_68.npy\n",
"69 62150 62178\n",
"load: alert_counts/counts_69.npy alert_counts/nights_69.npy\n",
"70 62178 62206\n",
"load: alert_counts/counts_70.npy alert_counts/nights_70.npy\n",
"71 62206 62234\n",
"load: alert_counts/counts_71.npy alert_counts/nights_71.npy\n",
"72 62234 62262\n",
"load: alert_counts/counts_72.npy alert_counts/nights_72.npy\n",
"73 62262 62290\n",
"load: alert_counts/counts_73.npy alert_counts/nights_73.npy\n",
"74 62290 62318\n",
"load: alert_counts/counts_74.npy alert_counts/nights_74.npy\n",
"75 62318 62346\n",
"load: alert_counts/counts_75.npy alert_counts/nights_75.npy\n",
"76 62346 62374\n",
"load: alert_counts/counts_76.npy alert_counts/nights_76.npy\n",
"77 62374 62402\n",
"load: alert_counts/counts_77.npy alert_counts/nights_77.npy\n",
"78 62402 62430\n",
"load: alert_counts/counts_78.npy alert_counts/nights_78.npy\n",
"79 62430 62458\n",
"load: alert_counts/counts_79.npy alert_counts/nights_79.npy\n",
"80 62458 62486\n",
"load: alert_counts/counts_80.npy alert_counts/nights_80.npy\n",
"81 62486 62514\n",
"load: alert_counts/counts_81.npy alert_counts/nights_81.npy\n",
"82 62514 62542\n",
"load: alert_counts/counts_82.npy alert_counts/nights_82.npy\n",
"83 62542 62570\n",
"load: alert_counts/counts_83.npy alert_counts/nights_83.npy\n",
"84 62570 62598\n",
"load: alert_counts/counts_84.npy alert_counts/nights_84.npy\n",
"85 62598 62626\n",
"load: alert_counts/counts_85.npy alert_counts/nights_85.npy\n",
"86 62626 62654\n",
"load: alert_counts/counts_86.npy alert_counts/nights_86.npy\n",
"87 62654 62682\n",
"load: alert_counts/counts_87.npy alert_counts/nights_87.npy\n",
"88 62682 62710\n",
"load: alert_counts/counts_88.npy alert_counts/nights_88.npy\n",
"89 62710 62738\n",
"load: alert_counts/counts_89.npy alert_counts/nights_89.npy\n",
"90 62738 62766\n",
"load: alert_counts/counts_90.npy alert_counts/nights_90.npy\n",
"91 62766 62794\n",
"load: alert_counts/counts_91.npy alert_counts/nights_91.npy\n",
"92 62794 62822\n",
"load: alert_counts/counts_92.npy alert_counts/nights_92.npy\n",
"93 62822 62850\n",
"load: alert_counts/counts_93.npy alert_counts/nights_93.npy\n",
"94 62850 62878\n",
"load: alert_counts/counts_94.npy alert_counts/nights_94.npy\n",
"95 62878 62906\n",
"load: alert_counts/counts_95.npy alert_counts/nights_95.npy\n",
"96 62906 62934\n",
"load: alert_counts/counts_96.npy alert_counts/nights_96.npy\n",
"97 62934 62962\n",
"load: alert_counts/counts_97.npy alert_counts/nights_97.npy\n",
"98 62962 62990\n",
"load: alert_counts/counts_98.npy alert_counts/nights_98.npy\n",
"99 62990 63018\n",
"load: alert_counts/counts_99.npy alert_counts/nights_99.npy\n",
"100 63018 63046\n",
"load: alert_counts/counts_100.npy alert_counts/nights_100.npy\n",
"101 63046 63074\n",
"load: alert_counts/counts_101.npy alert_counts/nights_101.npy\n",
"102 63074 63102\n",
"load: alert_counts/counts_102.npy alert_counts/nights_102.npy\n",
"103 63102 63130\n",
"load: alert_counts/counts_103.npy alert_counts/nights_103.npy\n",
"104 63130 63158\n",
"load: alert_counts/counts_104.npy alert_counts/nights_104.npy\n",
"105 63158 63186\n",
"load: alert_counts/counts_105.npy alert_counts/nights_105.npy\n",
"106 63186 63214\n",
"load: alert_counts/counts_106.npy alert_counts/nights_106.npy\n",
"107 63214 63242\n",
"load: alert_counts/counts_107.npy alert_counts/nights_107.npy\n",
"108 63242 63270\n",
"load: alert_counts/counts_108.npy alert_counts/nights_108.npy\n",
"109 63270 63298\n",
"load: alert_counts/counts_109.npy alert_counts/nights_109.npy\n",
"110 63298 63326\n",
"load: alert_counts/counts_110.npy alert_counts/nights_110.npy\n",
"111 63326 63354\n",
"load: alert_counts/counts_111.npy alert_counts/nights_111.npy\n",
"112 63354 63382\n",
"load: alert_counts/counts_112.npy alert_counts/nights_112.npy\n",
"113 63382 63410\n",
"load: alert_counts/counts_113.npy alert_counts/nights_113.npy\n",
"114 63410 63438\n",
"load: alert_counts/counts_114.npy alert_counts/nights_114.npy\n",
"115 63438 63466\n",
"load: alert_counts/counts_115.npy alert_counts/nights_115.npy\n",
"116 63466 63494\n",
"load: alert_counts/counts_116.npy alert_counts/nights_116.npy\n",
"117 63494 63522\n",
"load: alert_counts/counts_117.npy alert_counts/nights_117.npy\n",
"118 63522 63550\n",
"load: alert_counts/counts_118.npy alert_counts/nights_118.npy\n",
"119 63550 63578\n",
"load: alert_counts/counts_119.npy alert_counts/nights_119.npy\n",
"120 63578 63606\n",
"load: alert_counts/counts_120.npy alert_counts/nights_120.npy\n",
"121 63606 63634\n",
"load: alert_counts/counts_121.npy alert_counts/nights_121.npy\n",
"122 63634 63662\n",
"load: alert_counts/counts_122.npy alert_counts/nights_122.npy\n",
"123 63662 63690\n",
"load: alert_counts/counts_123.npy alert_counts/nights_123.npy\n",
"124 63690 63718\n",
"load: alert_counts/counts_124.npy alert_counts/nights_124.npy\n",
"125 63718 63746\n",
"load: alert_counts/counts_125.npy alert_counts/nights_125.npy\n",
"126 63746 63774\n",
"load: alert_counts/counts_126.npy alert_counts/nights_126.npy\n",
"127 63774 63802\n",
"load: alert_counts/counts_127.npy alert_counts/nights_127.npy\n",
"128 63802 63830\n",
"load: alert_counts/counts_128.npy alert_counts/nights_128.npy\n",
"129 63830 63858\n",
"load: alert_counts/counts_129.npy alert_counts/nights_129.npy\n",
"130 63858 63886\n",
"load: alert_counts/counts_130.npy alert_counts/nights_130.npy\n"
]
}
],
"outputs": [],
"source": [
"# directory where the query results are saved\n",
"save_dir = \"alert_counts\"\n",
Expand All @@ -578,12 +309,12 @@
" \n",
" t0 = mjd_nights[i]\n",
" t1 = mjd_nights[i+1]\n",
" print(i,t0,t1)\n",
"# print(i,t0,t1)\n",
"\n",
" fname_count = \"{}/counts_{}.npy\".format(save_dir,i)\n",
" fname_night = \"{}/nights_{}.npy\".format(save_dir,i)\n",
" \n",
" print(\"load: {} {}\".format(fname_count,fname_night))\n",
"# print(\"load: {} {}\".format(fname_count,fname_night))\n",
" counts = np.load(fname_count)\n",
" nights = np.load(fname_night)\n",
" \n",
Expand Down

0 comments on commit 048cb02

Please sign in to comment.