The b2_plotter
package consists of the class Plotter(), whereby several plots based on numpy arrays and pandas dataframes can be created easily from interpretation of Belle II ROOT mDST files.
- Bugfix getSigEff calculation with scale parameter
- Add scale/bgscale functionality to plotFom, plotStep, getPurity, getSigEff (latter 2 renamed for consistency)
- Use numpy's std instead of mean and add parenthesis to cut f string
- Shift the data sidebands (when blinding is enabled) by +/- 3 sigma
- Remove the actual duplicate data label..
- Remove duplicate data label in plotData()
- Again bugfix data plotting
- Bugfix data plotting
- Add signalregion and massvar to constructor call and remove it as a parameter from plotFom, getpurity, getsigeff
- Split up plot into two functions, plotMC and plotData
- Add blinding functionality to plotData function
- Add blinding to invariant mass distributions through introduction of addBlinding parameter to initialization
- Update example.ipynb
- Bugfix missing call to colors parameter
- Make colors() for plot an argument with default for all MC types, so that it can be overridden if needed
- Bugfix additional root_pandas call
- Remove deprecated root_pandas library, replace with uproot
- Update main() with a working example usage for xi03pi
- Add unit tests
- 2.0.8 bugfix (missing comma)
- Remove scaled signal feature -- will work on this on a later release
- Specify the colors of plot() histograms since the signal was defaulting to grey
- Bugfix to version 2.0.6, where scaled signal was not properly showing
- Change functions to return plots instead of displaying them, and remove interactive feature
- Add a scaled signal histogram to the plot function
- Update dynamic range calculation in plotFom for isGreaterThan = False cuts to prevent division by zero errors
- Add
cuts
argument toplotFom
- Last push didnt include changes, so include bugfix
- Add dist/, .pytest_cache, and .ipynb_checkpoints to git ignore
- Bugfix call to numpy.histogram() (was called np.histogram)
- Implement unit tests for constructor TypeError raises
- Implement data plotting in plot()
- Implement unit tests for functions in non-interactive mode
- Set myrange = () in plotFom to enable the dynamic range calculation from v.1.0.5 if the user does not provide a range.
- Implement dynamic range calculation in plotStep
- Bugfix labels not showing up on plotFom for myrange = () (default)
- Bugfix get_sigeff (missing period)
- Bugfix (remove () from numpy.size, as size is a property, not a method)
- Remove deprecated var total_bkg from plotFom()
- Create example files for interactive session
- Change massvar name to be consistent (massVar in get_purity but massvar in FOM, etc)
- Implement dynamic range calculation in plotFom
- Bugfix main and implement a for loop to plot multiple variables
- Create usage details in README.md
- Change readme such that recent versions are at the top
- Remove
plotBias
function, as it is very niche - Remove unused parameter
myrange
in get_sigeff and get_purity - Add main() function
- Add interactivity boolean in constructor call to decide whether or not to save plots to a .png or show them directly
- Edit README.md
- Remove tests/ directory (unit tests are not particularly useful for this package)
- Rename directories so imports are more intuitive
- Add unit tests
- Switch backend to hatchling
- Move metadeta to pyproject.toml and clean it up
- Remove brackets from LICENSE.txt
- Create tests/ directory
Initial launch.