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

Issue/130/grb filters #131

Merged
merged 14 commits into from Feb 10, 2023
Merged

Issue/130/grb filters #131

merged 14 commits into from Feb 10, 2023

Conversation

FusRoman
Copy link
Collaborator

IMPORTANT: Please create an issue first before opening a Pull Request.
Linked to issue(s): Closes put link

What changes were proposed in this pull request?

How is the issue this PR is referenced against solved with this PR?

How was this patch tested?

@FusRoman FusRoman added new filter Add a new filter GRB labels Nov 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2022

Codecov Report

Base: 65.95% // Head: 67.39% // Increases project coverage by +1.44% 🎉

Coverage data is based on head (83e13f3) compared to base (9573c50).
Patch coverage: 84.21% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #131      +/-   ##
==========================================
+ Coverage   65.95%   67.39%   +1.44%     
==========================================
  Files          13       14       +1     
  Lines         420      457      +37     
==========================================
+ Hits          277      308      +31     
- Misses        143      149       +6     
Impacted Files Coverage Δ
fink_filters/filter_on_axis_grb/filter.py 83.78% <83.78%> (ø)
fink_filters/__init__.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@FusRoman FusRoman linked an issue Nov 22, 2022 that may be closed by this pull request
@JulienPeloton
Copy link
Member

Shall I do the review now finally, or shall I wait?

@FusRoman
Copy link
Collaborator Author

Wait until the end of the test-suite and if all is green, you can merge the pull request

@FusRoman
Copy link
Collaborator Author

You can do the review now, and I will merge if you say everything is ok.

Copy link
Member

@JulienPeloton JulienPeloton left a comment

Choose a reason for hiding this comment

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

Thanks @FusRoman ! It is ok for me, but I left a few comments before merging.

@@ -12,4 +12,5 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
__version__ = "3.7"

__version__ = "3.8.0"
Copy link
Member

Choose a reason for hiding this comment

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

The versioning is done using x.y -- you should put 3.8

@@ -0,0 +1,186 @@
# Copyright 2019-2022 AstroLab Software
Copy link
Member

Choose a reason for hiding this comment

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

nit: 2023

25
"""
f_bogus = realbogus_score >= 0.5
f_class = fink_class.isin(["SN candidate", "Unknown", "Ambiguous"])
Copy link
Member

Choose a reason for hiding this comment

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

Here there is a potential problem. If SIMBAD is down, you will reject all alerts.

Alternatively, you can add a guard against downtime of SIMBAD. You could have another filter which is:

f_fail = fink_class.apply(lambda x: x.startswith('Fail'))

f_bronze = f_bogus & (f_class | f_fail)

But note that in this case, if SIMBAD is down, only f_bogus will apply.

@FusRoman FusRoman merged commit ccdc4eb into master Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GRB new filter Add a new filter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GRB] Implement filters for the GRB module
3 participants