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

Support for root file input directly #101

Merged
merged 7 commits into from
Aug 24, 2023
Merged

Support for root file input directly #101

merged 7 commits into from
Aug 24, 2023

Conversation

jiangyi15
Copy link
Owner

data format option, see full example in tf_pwa/config_loader/tests/test_root_data.yml

data:
    format: root_lhcb
    data: "data.root:tree"
    data_var: "{a}_{b}" # p4 variable, used name in  matrixto build all variable
    data_weight: "x" # formula for variable
    matrix_order: ["a", "b"] 
    matrix:
        a:  ["B", "C", "D"]
        b:  ["E", "PX", "PY", "PZ"]   
    # B_E B_PX B_PY B_PZ
    # C_E C_PX C_PY C_PZ
    # D_E D_PX D_PY D_PZ

@codecov
Copy link

codecov bot commented Aug 23, 2023

Codecov Report

Merging #101 (fd994c1) into dev (8818cb7) will increase coverage by 0.23%.
The diff coverage is 91.24%.

@@            Coverage Diff             @@
##              dev     #101      +/-   ##
==========================================
+ Coverage   75.18%   75.41%   +0.23%     
==========================================
  Files         106      108       +2     
  Lines       15336    15460     +124     
  Branches     2861     2895      +34     
==========================================
+ Hits        11530    11659     +129     
+ Misses       3120     3115       -5     
  Partials      686      686              
Flag Coverage Δ
unittests 75.41% <91.24%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
tf_pwa/config_loader/config_loader.py 67.73% <ø> (+0.90%) ⬆️
tf_pwa/config_loader/plot.py 72.55% <0.00%> (-0.24%) ⬇️
tf_pwa/root_io.py 86.66% <0.00%> (-1.18%) ⬇️
tf_pwa/config_loader/data_root_lhcb.py 90.81% <90.81%> (ø)
tf_pwa/config_loader/__init__.py 100.00% <100.00%> (ø)
tf_pwa/config_loader/data.py 64.96% <100.00%> (+1.21%) ⬆️
tf_pwa/config_loader/tests/test_root_data.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@jiangyi15 jiangyi15 merged commit 3bac1b6 into dev Aug 24, 2023
12 checks passed
@jiangyi15 jiangyi15 deleted the root_input branch August 24, 2023 04:17
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.

1 participant