Skip to content

Update observables_bs.py#258

Closed
gkhreich98 wants to merge 2 commits intoflav-io:masterfrom
gkhreich98:master
Closed

Update observables_bs.py#258
gkhreich98 wants to merge 2 commits intoflav-io:masterfrom
gkhreich98:master

Conversation

@gkhreich98
Copy link

Add Ang Obs for Bs2Phiee

Add Ang Obs for Bs2Phiee

import flavio
from . import observables
import observables
Copy link
Member

Choose a reason for hiding this comment

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

Is there a particular reason why this has been changed? I think here the relative import should be kept.

Copy link
Member

Choose a reason for hiding this comment

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

If you look at the output of the unit tests, you will see that this change actually leads to ModuleNotFoundError: No module named 'observables'

'S3': {'func_num': lambda y, J, J_bar, J_h: S_experiment_num_Bs(y, J, J_bar, J_h, 3), 'tex': r'\overline{S_3}', 'desc': 'Time-averaged, CP-averaged angular observable'},
'S4': {'func_num': lambda y, J, J_bar, J_h: S_experiment_num_Bs(y, J, J_bar, J_h, 4), 'tex': r'\overline{S_4}', 'desc': 'Time-averaged, CP-averaged angular observable'},
'S5': {'func_num': lambda y, J, J_bar, J_h: S_experiment_num_Bs(y, J, J_bar, J_h, 5), 'tex': r'\overline{S_5}', 'desc': 'Time-averaged, CP-averaged angular observable'},
'S5': {'func_num': lambda y, J, J_bar, J_h: S_experiment_num_Bs(y, J, J_bar, J_h, 5), 'tex': r'\overline{S_5}', 'desc': 'Time-averaged, CP-averaged angular observable'},
Copy link
Member

Choose a reason for hiding this comment

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

The two lines above are exactly the same, but S6c is missing.

_observables_p = {
'P1': {'func_num': lambda y, J, J_bar, J_h: S_experiment_num_Bs(y, J, J_bar, J_h, 3)/2., 'tex': r'P_1', 'desc': "CP-averaged \"optimized\" angular observable"},
'ATIm': {'func_num': lambda y, J, J_bar, J_h: A_experiment_num_Bs(y, J, J_bar, J_h, 9)/2., 'tex': r'A_T^\text{Im}', 'desc': "Transverse CP asymmetry"},
'ATRe': {'func_num': lambda y, J, J_bar, J_h: A_experiment_num_Bs(y, J, J_bar, J_h, 9)/4., 'tex': r'A_T^\text{2}', 'desc': "\"optimized\" angular CP asymmetry"},
Copy link
Member

Choose a reason for hiding this comment

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

There are several issues here:

  • The function used for the prediction of ATRe is just 1/2 times the one used for ATIm, which seems to be wrong.
  • The tex name of ATRe is A_T^\text{2}, which seems to be a different observable.

_obs.set_description(obsdict['desc'][0].capitalize() + obsdict['desc'][1:] + r" in $" + _process_tex + r"$")
_obs.tex = r"$" + obsdict['tex'] + r"(" + _process_tex + r")$"
_obs.add_taxonomy(_process_taxonomy)
return _obs
Copy link
Member

Choose a reason for hiding this comment

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

These two functions make_metadata_binned_Bs and make_metadata_differential_Bs do not seem to be used anywhere at the moment.

@peterstangl
Copy link
Member

This PR has been superseded by PR #274.

@peterstangl peterstangl closed this Feb 3, 2026
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.

2 participants