XENONnT / appletree

A high-performance program simulates and fits response of XENON
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Add multiple nodep_data_names support #187

Open mhliu0001 opened 1 month ago

mhliu0001 commented 1 month ago

Previously only one nodep_data_name is supported. Most of the time we are setting this to "batch_size". But sometimes it is necessary to set multiple nodep_data_names, like ["x", "y", "z", "num_photons", "num_electrons"]. This PR adds support for multiple nodep_data_names.

MWE:

import appletree as apt
er = apt.ERBand(bins=[bins_cs1, bins_cs2], bins_type="irreg")
er.deduce(data_names=["s1_area", "s2_area", "anti_correlation_eff"], nodep_data_names=["num_photon", "num_electron", "x", "y", "z"], force_no_eff=True)
er.compile()
print(er.code)
coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 11167818604

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
appletree/component.py 11 12 91.67%
<!-- Total: 11 12 91.67% -->
Totals Coverage Status
Change from base Build 10709265769: 0.03%
Covered Lines: 2445
Relevant Lines: 2869

💛 - Coveralls