-
Notifications
You must be signed in to change notification settings - Fork 22
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
Specify ntransits #43
base: master
Are you sure you want to change the base?
Conversation
I guess this causes a few of the tests to fail. I'll take a look this afternoon |
Good news for you: You can ignore the issues with python 2, and the errors in the python3 tests might be unrelated to your changes. I just opened a pull request to remove the python2 tests and I'm seeing the same errors opening ROOT files 😭 |
oh noes, maybe we need to work on the root file reading dependencies next. That is good news for me though I will take another look to make sure. Thanks! I have at least one other functional (rather than test related) item I want to check, I want to confirm if LiFF uses sidereal or solar days in its conversion from the hours in the file to ntransits. HAL appears to use 24 hours/transit, and if liff is different I wanted to make that consistent. Its a small difference, but I think consistency would be better than not. |
Yes, #45 needs to be fixed before this can be merged. Maybe it's an easy fix to the interface, maybe we can fix the version of root to be installed. I'm not sure when I'll be able to work on it though. The difference between sidereal and solar days is way below our systematic uncertainty, so I wouldn't spend too much time hunting it down at this stage (maybe add a separate issue to come back to later). Can you please add a simple unit test for this new feature? Doesn't have to be complex, just to show the value of |
Any updates on the unit tests for this pull request @cbrisboi ? The issue with the TFile interface has been fixed on the master branch. |
Yes, I think so. @cbrisboi might have to merge the current master branch into this one to get all the tests to run though. Independently of adding a unit test, it would also be good to see if this actually gives reasonable results on something like the Crab strip. |
@cbrisboi any updates on this? Will you add some unit tests so we can merge this? |
Need updated hal for gammaln
…nctions now return transits to pass to Maptree object
…rom data_analysis_bins
@henrikef I have merged threeML/hawc_hal master branch into this branch and added a unit test. I found during the process of writing the unit test that the hdf5 and root files transit fields were being treated differently, I have fixed that now that it was identified from failing the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cbrisboi , nice work!
Can you please fix the linter error (see my first comment) so that the tests can run?
I'll review again once that's done. We don't expect the tests on conda to pass right now until the next version of threeML gets tagged, but the tests against the master branch of threeML should pass.
…tatements for root and hdf5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now, only thing left is to get the tests passing.
Hi @cbrisboi! Thanks for implementing this! Please pull in the most recent version of the hawc_hal master into your branch and resolve any conflicts. Note that the Once the tests pass, this is ready to merge. |
This PR has become stale. Please check the status |
@cbrisboi has since left the collaboration. Any volunteers to finish this (adding tests) so it can be merged? |
@xiaojieww Is anyone looking at this? |
Seems not currently. I plan to solve the #68 first, if still no one working on this I will take a look at it. |
I think this request can be closed since #84 has been merged. |
This pull request fixes #32.
May not be sufficiently tested (yet), but I believe the essential functionality is there, so I opened the request.
This allows for subsets of data to be properly analyzed which may only contain (for example) 300 days of data taken over 1500 days. This allows the user to set the HAL plugin to compute the flux over the full 1500 days rather than the 300 days of data contained in the map itself.