Package: b2-plotter
b2_plotterDescriptionTheb2_plotterpackage 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.ReleasesVersion 4.0.3Use numpy's std instead of mean and add parenthesis to cut f stringVersion 4.0.2Shift the data sidebands (when blinding is enabled) by +/- 3 sigmaVersion 4.0.1Remove the actual duplicate data label..Version 4.0.0Remove duplicate data label in plotData()Version 3.0.9Again bugfix data plottingVersion 3.0.8Bugfix data plottingVersion 3.0.7Add signalregion and massvar to constructor call and remove it as a parameter from plotFom, getpurity, getsigeffSplit up plot into two functions, plotMC and plotDataAdd blinding functionality to plotData functionVersion 3.0.6Add blinding to invariant mass distributions through introduction of addBlinding parameter to initializationVersion 3.0.5Update example.ipynbVersion 3.0.4Bugfix missing call to colors parameterVersion 3.0.3Make colors() for plot an argument with default for all MC types, so that
it can be overridden if neededVersion 3.0.2Bugfix additional root_pandas callVersion 3.0.1Remove deprecated root_pandas library, replace with uprootUpdate main() with a working example usage for xi03piAdd unit testsVersion 2.0.92.0.8 bugfix (missing comma)Version 2.0.8Remove scaled signal feature -- will work on this on a later releaseSpecify the colors of plot() histograms since the signal was defaulting to greyVersion 2.0.7Bugfix to version 2.0.6, where scaled signal was not properly showingVersion 2.0.6Change functions to return plots instead of displaying them, and remove interactive featureAdd a scaled signal histogram to the plot functionUpdate dynamic range calculation in plotFom for isGreaterThan = False cuts to prevent division by zero errorsVersion 2.0.5Addcutsargument toplotFomVersion 2.0.4Last push didnt include changes, so include bugfixAdd dist/, .pytest_cache, and .ipynb_checkpoints to git ignoreVersion 2.0.3Bugfix call to numpy.histogram() (was called np.histogram)Version 2.0.2Implement unit tests for constructor TypeError raisesVersion 2.0.1Implement data plotting in plot()Implement unit tests for functions in non-interactive modeVersion 1.0.9Set myrange = () in plotFom to enable the dynamic range calculation from v.1.0.5 if the user does not provide a range.Version 1.0.8Implement dynamic range calculation in plotStepBugfix labels not showing up on plotFom for myrange = () (default)Bugfix get_sigeff (missing period)Version 1.0.7Bugfix (remove () from numpy.size, as size is a property, not a method)Version 1.0.6Remove deprecated var total_bkg from plotFom()Version 1.0.5Create example files for interactive sessionChange massvar name to be consistent (massVar in get_purity but massvar in FOM, etc)Implement dynamic range calculation in plotFomVersion 1.0.4Bugfix main and implement a for loop to plot multiple variablesCreate usage details in README.mdVersion 1.0.3Change readme such that recent versions are at the topRemoveplotBiasfunction, as it is very nicheRemove unused parametermyrangein get_sigeff and get_purityAdd main() functionAdd interactivity boolean in constructor call to decide whether or not to save plots to a .png or show them directlyVersion 1.0.2Edit README.mdRemove tests/ directory (unit tests are not particularly useful for this package)Rename directories so imports are more intuitiveVersion 1.0.1Add unit testsSwitch backend to hatchlingMove metadeta to pyproject.toml and clean it upRemove brackets from LICENSE.txtCreate tests/ directoryVersion 1.0.0Initial launch.