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

Operators are different in apply_energy_dependent_gh_cuts and apply_global_gh_cut #954

Closed
aaguasca opened this issue Mar 29, 2022 · 6 comments
Labels
question Further information is requested

Comments

@aaguasca
Copy link
Collaborator

Dear developers, the operator in apply_energy_dependent_gh_cuts is >=, while in apply_global_gh_cut is >. Could you please explain to me why different operators are used? Thanks.

@aaguasca aaguasca added the question Further information is requested label Mar 29, 2022
@rlopezcoto
Copy link
Contributor

Hi @aaguasca , could you please point to the lines of code you are referring to?

@moralejo
Copy link
Collaborator

Probably a question for @chaimain. I don't think there is any reason. Although gammaness is a rather continuous parameter, and it should make basically no difference, it is better to do it consistently in both places.

@aaguasca
Copy link
Collaborator Author

Link to apply_global_gh_cut:

return data[data["gh_score"] > self.global_gh_cut]

Link to apply_energy_dependent_gh_cuts:

@maxnoe
Copy link
Member

maxnoe commented Mar 29, 2022

I'd also say there is no real reason and there shouldn't be any consequences, since it is very unlikely that a float lies exactly on the cut. So just change to make it consistent, but don't expect any changes in the results.

@chaimain
Copy link
Contributor

Thanks @aaguasca for spotting this discrepancy! Yes, as @moralejo and @maxnoe mentioned, there is no inherent reason for this distinction, and it is just something that I overlooked. I will fix it soon.

@chaimain
Copy link
Contributor

Solved in #965

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants