-
Notifications
You must be signed in to change notification settings - Fork 20
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
solve issue 236 #253
solve issue 236 #253
Conversation
Codecov ReportAttention: Patch coverage is
|
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.
@GallegoSav Thanks for taking care of this. The changes look good, and the logic makes sense. I added a few minor comments to clean up the code before merging. I'll check again when you make the updates.
cosipy/data_io/UnBinnedData.py
Outdated
@@ -185,6 +185,16 @@ def read_tra(self, output_name=None, run_test=False, use_ori=False, | |||
if len(this_line) == 0: | |||
continue | |||
|
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.
Please remove empty white space (lines 188 and 189 )
cosipy/data_io/UnBinnedData.py
Outdated
|
||
# Event type: | ||
if this_line[0] == "ET": | ||
#Check we are looking CO evt |
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.
#Check we are looking CO evt --> # Check that we are looking at CO events
cosipy/data_io/UnBinnedData.py
Outdated
# Event type: | ||
if this_line[0] == "ET": | ||
#Check we are looking CO evt | ||
if this_line[1] == "CO" : |
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.
Remove space before colon.
cosipy/data_io/UnBinnedData.py
Outdated
#Check we are looking CO evt | ||
if this_line[1] == "CO" : | ||
et.append(this_line[1]) | ||
else : |
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.
Remove space before colon.
cosipy/data_io/UnBinnedData.py
Outdated
# Event type: | ||
if this_line[0] == "ET": | ||
et.append(this_line[1]) | ||
|
||
|
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.
Remove empty space (line 232)
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, thanks @GallegoSav.
No description provided.