Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making NITRATES Pip Installable #7

Merged
merged 125 commits into from Apr 28, 2023
Merged

Making NITRATES Pip Installable #7

merged 125 commits into from Apr 28, 2023

Conversation

parsotat
Copy link
Contributor

I have tested the code and made sure that it runs and verified that the jupyter notebooks produce the same output.

The code still needs to be tested on a high performance computing environment and have some hardcoded paths changed.

Example_LLH_setup_fixed_dirs_py3_pip.pdf
Example_Reading_Results_py3_pip.pdf

Example_LLH_setup_fixed_dirs_py2_no_debug.pdf
Example_Reading_Results_py2_no_debug.pdf

@Tohuvavohu
Copy link
Contributor

@g3-raman Has this configuration been tested with the a full run on the cluster?

…be able to be set by the user in various function calls.
…o be set by the user in various function calls and to import based on new organization of repo.
…to be set by the user in various function calls and to import based on new organization of repo.
…to be set by the user in various function calls and to import based on new organization of repo.
…to be set by the user in various function calls and to import based on new organization of repo.
… to be set by the user in various function calls and to import based on new organization of repo.
…be able to be set by the user in various function calls and to import based on new organization of repo.
…be able to be set by the user in various function calls and to import based on new organization of repo.
…ll be able to be set by the user in various function calls and to import based on new organization of repo.
…ll be able to be set by the user in various function calls.
…ble to be set by the user in various function calls and to import based on new organization of repo.
…to be set by the user in various function calls and to import based on new organization of repo.
… to be set by the user in various function calls and to import based on new organization of repo.
…to be set by the user in various function calls and to import based on new organization of repo.
@Tohuvavohu
Copy link
Contributor

I think all we need is a successful full run on the cluster with identical results, and then this can be merged (modulo catching up on a few commits that are behind).

@jjd330
Copy link
Contributor

jjd330 commented Apr 27, 2023

This line https://github.com/parsotat/NITRATES/blob/main/nitrates/llh_analysis/do_llh_outFoV4realtime2.py#L39 ,
should be importing get_out_res_fnames instead of get_in_res_fnames

@jjd330
Copy link
Contributor

jjd330 commented Apr 28, 2023

Running the search with this fork and the pennstate branch of UtilityBelt https://github.com/Swift-BAT/UtilityBelt/tree/pennstate on the PSU cluster gave me identical results to the realtime search for trigger F704233744. To run the search I ran it as
. analyze_trigger.sh F704233744 /storage/work/jjd330/local/NITRATES_pipinstall/F704233744/ 2023-04-26T20:28:59.97

LLH in FoV analysis results around Peaks

Unnamed: 0 imx imy theta phi Epeak gamma time dur timeID bkg_nllh nllh A TS squareID ra dec dt
273 273 -1.563 0.311 57.891971 191.253525 212.132034 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427801 84089.225496 0.059285 70.981720 582 92.418634 -81.064842 8.192
291 291 -1.559 0.347 57.948699 192.548263 212.132034 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427801 84088.755853 0.060086 70.988336 583 89.739837 -80.057966 8.192
432 432 -1.249 -0.077 51.370831 176.472219 365.850058 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427789 84086.239452 0.020318 71.023775 923 177.569520 -78.809483 8.192
300 300 -1.561 0.239 57.656541 188.704786 212.132034 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427801 84083.786709 0.059186 71.058301 581 100.982988 -82.879864 8.192
921 921 -1.107 0.401 49.657578 199.912427 460.577935 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427784 84082.546493 0.015458 71.075752 1134 109.024282 -70.946451 8.192
453 453 -1.199 -0.063 50.209781 176.992229 460.577935 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427784 84082.484368 0.014222 71.076626 1023 173.483105 -77.897591 8.192
777 777 -1.145 0.147 49.099167 187.315858 460.577935 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427777 84081.416729 0.013450 71.091646 1078 137.170151 -76.696262 8.192
616 616 -1.181 0.435 51.530903 200.220363 460.577935 -1.000000e-01 7.042338e+08 16.384 819216384 86608.427789 84080.909231 0.016964 71.098784 1035 103.611932 -71.698025 8.192
1242 1242 -1.209 0.411 51.934941 198.775484 365.850058 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427790 84078.107287 0.022153 71.138182 985 104.241363 -72.886934 8.192
918 918 -1.253 0.427 52.931707 198.818192 365.850058 -2.775558e-17 7.042338e+08 16.384 819216384 86608.427793 84076.509631 0.022867 71.160637 935 101.158067 -73.325308 8.192
1263 1263 -1.201 0.357 51.405757 196.554702 460.577935 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427786 84074.848285 0.015773 71.183980 1033 109.104989 -74.072485 8.192
1611 1611 -1.201 0.357 51.405757 196.554702 365.850058 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427788 84074.278676 0.021031 71.191981 983 109.104989 -74.072485 8.192
1084 1084 -1.167 0.375 50.791980 197.814121 460.577935 -1.000000e-01 7.042338e+08 16.384 819216384 86608.427787 84072.332415 0.016337 71.219314 1034 108.892883 -72.917631 8.192
777 777 -1.107 0.403 49.673964 200.003882 460.577935 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427784 84065.730454 0.015712 71.311953 1135 108.865487 -70.897109 8.192
423 423 -1.213 -0.109 50.610791 174.865201 365.850058 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427788 84064.234602 0.019654 71.332926 972 181.266572 -77.558516 8.192
939 939 -1.125 0.423 50.238909 200.606261 460.577935 -2.000000e-01 7.042338e+08 16.384 819216384 86608.427787 84059.166521 0.016476 71.403939 1085 106.660471 -70.803898 8.192

LLH out of FoV analysis results

Unnamed: 0 theta phi time dur timeID Epeak gamma nllh A TS bkg_nllh hp_ind ra dec dt
132 132 68.188162 192.583302 7.042338e+08 16.384 819216384 1000.000000 2.4 83689.654283 0.032834 76.403842 86608.427807 2057 33.748882 -78.285144 8.192
114 114 68.188162 192.583302 7.042338e+08 16.384 819216384 158.489319 1.0 83688.359217 0.063240 76.420790 86608.427807 2057 33.748882 -78.285144 8.192
129 129 68.188162 192.583302 7.042338e+08 16.384 819216384 630.957344 2.4 83687.084977 0.031259 76.437462 86608.427807 2057 33.748882 -78.285144 8.192
127 127 68.188162 192.583302 7.042338e+08 16.384 819216384 630.957344 2.0 83685.517088 0.030773 76.457972 86608.427807 2057 33.748882 -78.285144 8.192
130 130 68.188162 192.583302 7.042338e+08 16.384 819216384 1000.000000 2.0 83685.517088 0.030773 76.457972 86608.427807 2057 33.748882 -78.285144 8.192
133 133 68.188162 192.583302 7.042338e+08 16.384 819216384 1584.893192 2.0 83685.517088 0.030773 76.457972 86608.427807 2057 33.748882 -78.285144 8.192
130 130 71.250268 193.943382 7.042338e+08 16.384 819216384 158.489319 0.8 83685.422034 0.072814 76.459215 86608.427810 2059 26.999243 -75.341631 8.192
121 121 68.188162 192.583302 7.042338e+08 16.384 819216384 398.107171 2.2 83684.561593 0.029898 76.470468 86608.427807 2057 33.748882 -78.285144 8.192
131 131 71.250268 193.943382 7.042338e+08 16.384 819216384 158.489319 1.0 83683.228943 0.063374 76.487893 86608.427810 2059 26.999243 -75.341631 8.192
114 114 71.250268 193.943382 7.042338e+08 16.384 819216384 158.489319 1.0 83683.228943 0.063374 76.487893 86608.427810 2059 26.999243 -75.341631 8.192
132 132 71.250268 193.943382 7.042338e+08 16.384 819216384 158.489319 1.2 83683.201949 0.054949 76.488246 86608.427810 2059 26.999243 -75.341631 8.192
128 128 68.188162 192.583302 7.042338e+08 16.384 819216384 630.957344 2.2 83678.648231 0.031287 76.547757 86608.427807 2057 33.748882 -78.285144 8.192
115 115 68.188162 192.583302 7.042338e+08 16.384 819216384 158.489319 1.6 83678.133051 0.041877 76.554487 86608.427807 2057 33.748882 -78.285144 8.192
131 131 68.188162 192.583302 7.042338e+08 16.384 819216384 1000.000000 2.2 83677.196605 0.032060 76.566719 86608.427807 2057 33.748882 -78.285144 8.192
126 126 68.188162 192.583302 7.042338e+08 16.384 819216384 1000.000000 2.2 83677.196605 0.032060 76.566719 86608.427807 2057 33.748882 -78.285144 8.192
134 134 68.188162 192.583302 7.042338e+08 16.384 819216384 1584.893192 2.2 83676.761637 0.032527 76.572399 86608.427807 2057 33.748882 -78.285144 8.192

Copy link
Contributor

@Tohuvavohu Tohuvavohu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jjd330 jjd330 merged commit 9fa8514 into Swift-BAT:main Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants