Releases: OstapHEP/ostap
Releases · OstapHEP/ostap
v1.4.7.0
v1.4.7.0
New features:
- Slight improvements in
ostap.fittig.minuit
- add new test for
ROOT.TMiniut
decorations :test_fitting_minuit
- allow
pathos
to be used for paralellization for python version > 3.6 - add test
test_parallel_dill
to check the the problem with combination of different versions ofROOT
,dill
andpython
. - improve
ostap.fitting.toys
- improve
ostap.parallel.parallel_toys
- add
test_fitting_toys
- add
test_parallel_toys
- add examples/tests for evaluation of significance with toys
- improve the output of
ls
-method for forcompressed_shelve
- few minor tweaks needed for
picalib
- add
DisplayTree
intoostap.logger.utils
- useful tool to render the tree-like structures - impove
ls
methods for all shelve-like databases - add
ls_tree
andls_table
method forROOT.TDirectory
f = ROOT.TFile ( .. )
f.ls_tree ()
f.ls_table()
- speedup construction of Bernstein polynomials from the list of roots
- re-write
PDF.wilks
method to useROOT.RooProfileLL
- add methods
PDF.graph_nll
andPDF.graph_profile
for
a bit more easy and more fast drawing of NLL-scans and profiles
pdf = ...
g1 = pdf.graph_nll ( 'S' , vrange ( 0 , 20.0 , 100 ) , dataset )
g2 = pdf.graph_profile ( 'S' , vrange ( 0 , 20.0 , 100 ) , dataset , fix = ['gamma','mu'] )
- allow to suppress certain RooFit message topics from the configuration file, e.g.
[RooFit]
RemoveTopics = Plotting ,
Caching ,
Eval ,
Minization ,
Integration ,
Optimization ,
NumericIntegration ,
Fitting
- Add more flexibility for parallel
Task
: one can specify the additional environment variables, prepend and append path-like environment variables, execution directory, ... variables are expanded.
mytask = MyTask (... )
mytask.environment [ 'LD_LIBRARY_PATH' ] = 'some_directory1:some_directory2'
mytask.prepend_to [ 'PATH' ] = 'some_directory1:some_directory2:some_directory3'
mytask.append_to [ 'PYTHONPATH' ] = '$HOME/python' ## will be expanded at remote host
mytask.directory = 'some_existing_remote_directory'
mytask.dot_in_path = '.' in sys.path
- add new function
random_random
intoostap/parallel/utils.py
, that sets (hopefully) proper seeds for therandom
,ROOT.gRandom
andROOT.RooRandom
- add invocation of
random_random
frominitialize_remote
for the parallel toys. - add methods
graph_nll
andgraph_profile
for classSimFit
pdf = ...
g1 = pdf.graph_nll ( 'S' , vrange ( 0 , 20.0 , 100 ) , dataset )
g2 = pdf.graph_profile ( 'S' , vrange ( 0 , 20.0 , 100 ) , dataset , fix = ['gamma','mu'] )
Backward incompatible changes
Bug fixes:
- Tiny fix in
ROOT.TMinuit.cor
- Tiny fix in
ROOT.TMinuit.cov
- more fixes in
ostap/fitting/minuit.py
- small fixes in
ostap/fitting/toys.py
- tiny fix in
ostap/math/random_ext.py
- Fix signature of
ds_project
method fromostap.fitting.dataset.py
- few minor fixes needed for
picalib
- fix
Ostap::HistoProject::project
for weightedRooAbsData
,
now uncertainties are evaluated correctly, properly accounting the errors in weights - fix typo in
paralllel_toys2
- fix
random_random
for python3
v1.4.6.0
v1.4.6.0
New features:
- Add new method
dct_params
forROOT.RooFitResult
, that gets a dictionary of all parameter values plotting/canvas.py
: Add option to save the canvas congent in tar/tgz/zip-archives:
canvas >> 'test.zip'
canvas >> 'test.tar'
canvas >> 'test.tgz'
ostap/fitting/toys.py
new module with simple functions to performfitting toys
pdf = ...
results , stats = make_toys ( pdf , ## PDF to use
1000 , ## number of toys
[ 'mass' ] , ## varibales in dataset
{ 'nEvents' : 5000 } , ## configuration of pdf.generate
{ 'ncpus' : 2 } , ## configuration of pdf.fitTo
{ 'mean' : 0.0 , 'sigma' : 1.0 } ## parameters to use for generation
)
ostap/parallel/parallel_toys.py
a version of fnuctoion above for the
parallel execution via multiprocessing and/or parallel python)- add method
evaluate
forROOT.RooFitResult
to evaluate the arbintrary function of
fit-parameters with uncertaionties
res = ... ## ROOT.RooFitResult object
fun = lambda x,y,z : x*x+y*y+z*z
val = res.evaluate ( fun , ('x' , 'y' , 'z') )
- add
EvalNVEcov
andEvalNVEcor
evaluators intoostap.math.derivative
module.
These objects evalaute the value of function of N-argument taking into account
the uncertainties and correlations - add method
max_cor
toROOT.RooFitResult
to obtain the maximal correlation coefficient
res = ... ## ROOT.RooFitResult
coefficient , variable = res.max_cor ( 'X' ) ## get the maximal correlation
- add the column
Global/max correlation
for the table form ofROOT.RooFitResult
- add
ncpus
argument toostap.parallel.parallel_toys.parallel_toys
Backward incompatible changes
Bug fixes:
- Minor fix in
Files.hadd
- Couple of minor fixes in
ROOT.RooFitResult.sum
ROOT.RooFitResult.multiply
- Couple of minor fixes in
ostap.math.derivative
v1.4.5.0
v1.4.5.0
New features:
- Add new functions:
parameters
parameter
( and shortcut as__getitem__
)
for the base classPDF
to allow "easy" access to the values of
parameters by name, e.g.a = pdf['A']
ora = pdf.parameter('A')
- New function
mid_point
is added toPDF
-base class,
defined as 0.5*(x_low + x_high), where f(x_low)=f(x_high)=0.5 * f_max.
x_low and x_high are the same points used for evaluation of FWHM.
It characterises the location of the peak, similar tomode
,median
,
get_mean
and other related functions - Add
ResoBukin
- symmetric resolution function based on Bukin-pdf. - Update
tests_fitting_resolutions.py
- Add
Losev
-function&pdf - a kind of asymmetric hyperbolic secant functionOstap::Math::Losev
Ostap::Models::Losev
ostap.fitting.signals.Losev_pdf
- tune
RooFitResult.table
printout method - update some fitting examples
- add option/property
directory
forostap.parallel.task.Task
to indicate
the directory where the job needs to be executed - add option/property
environment
forostap.parallel.task.Task
to
setup additional environmental variables (if needed) - Add argument
keys
for the methodclone
for all databases, allowng to
copy only certain keys into cloned database. (Default: copy all keys) - add
json
,gif
andjpg
output formats for defaultcanvas >> 'aaa'
operator - add
hadd
method forostap.trees.data_utils.Files
to merge ROOT file viahadd
script
Backward incompatible changes
- MASSIVE RENAME/FIX: Apolonios -> Apollonios
- Add
jobid
argument forTask.process
- All existing tasks are updated properly
- All new functions and tasks must take this argument into account!
Bug fixes:
- Fix minor bug in
ResoBukin
-resolution function
v1.4.4.2
v1.4.4.2
New features:
table
function forRooFitResult
: print object in a form of a nice tableostap.logger.utils
set of minor functions for nice printoutpretty_float
: print floatpretty_ve
: print float and errorpretty_2ve
: print float with asymmetric errors
ostap.logger.table
: add functionalign_column
to aling the column for a given table
Bug fixes:
Very similar to v1.4.4.0 with tiny fix for old version of ROOT
Very similar to v1.4.4.0 with tiny fix for old version of ROOT
v1.4.4.0: 1. Redesign all *shelve-like data bases,
- Redesign all *shelve-like data bases:
- add abstract base class
- implement concrete databases :
- zipshelve (ZIP/GZIP compression )
- bz2shelve (BZIP2 compression) in terms of base class
- lzshelve (LZMA-compression) only for python3
- impove timing functions
- improve
TTree.the_variables
- selector via frames: change order of variables in snapshot
- improve statistics for selectors
- improve a bit printout for TTree/TChain (sorted, type,...)
- improve a bit printout for DataFrame (sorted)
- generate temporary column names for DataFrame using hash instead of random
- it allows better debugging (reproducible)
- re-enable security key for paralell python servers
- Update all tree-collection utilities
- Files
- Data
- Data2
- DataAndLuimi
- Add colorization to progress bars
- fix (hope) segfaults for adding new branch to tuple
- Improve colorization
- make optional use of terminaltables package
- add local function to format tables
- improve printout of trees and datasets
- more improvements in tables&colorization
- improve reweighting machinery
- add 2D and 3D moments for the historgams
- improve 2D histos comparison functions
- improve progress bar
- fix addition of new brnaches to
TTree/TChain
and wholeIFuncTree
machinery - change the names for example-tests
- add script to check the dependensies
- one more attempt to fix the crash for
FuncTH1
add_branches
- Notifier is not invoked... Invoke it explicitely!FuncTH1::Notify
: reset/delete formula instead of Notify...- fixes in
Notifier
- few more fixes
- add a test for
add_branches
- make a try to polish a bit the Doxygen/Sphinx machinery
PDF.draw_nll
: fix bug for the weighted datasets- Update
test_tools_reweight2.py
- Add
Ostap::Math::ChebyshevApproximation
- bug fix in
add_branch
- extend
PDF.nll
to accept all keywords - unify
PDF.nll
keywords withpdf.fitTo
keywords - tmva & tmva/chopping: fix problem with non-deleted temporary files/directories
cleanup
: add concept of "local" trash, to be deleted whenCleanUp
instance is deletedmp_pathos
¶llel/task
: improve the output of the final statistics, add total time and CPU gain due to paralellization- minor fix in
TGraphAsymmErrors.transform
add_branch
/add_new_branch
- extend current functionlaity allowing to add several branches at once
- Add "clone" methods for all io-databases
- Add
dump_root
module/utility/recipe to allow reading of databases
created with "old" ROOT versions, with old version of streamers - add/extend math-function for graphs
- remove drawing artifacts for
PDF.draw_nll
method - Add
ROOT.TGraph.remove
method - Improve
ROOT.TGraph.filter
method - Add plotting options for
combined_background
,combined_signal
andcombined_components
- Extend the signature for
Ostap::Math::gauss_pdf
/gauss_cdf
- Add
PSSmear_pdf
- smeared version forPhaseSpace
-based PDFs - Add
signals
&backgrounds
keywords forFit1D
-constructor - Add 'args' argument to draw-functions
- Add possibility for prefilter of data for
TMVA
/chopping
. - Allow TMVA/chopping tools to process
RooFit
datasets: (converted internally toTTree
) - optimize evaluation of polynomials in
Ostap::Math
- Add
Ostap::Math::Clenshaw::term
- evaluate the N-th term of the recursive sequence - Add
Ostap::Math::barrier_factor
- evaluation of Blatt-Weisskopf angular momentum
centrifugal form factors for arbitrary angular momenta - Fix but in
VE.purity
: Thanks to Alexey Dziuba - Improve configuration of canvas&styles
- Few fixes in
Dalitz
, epsecially for drawing it - Add
DalitzIntegrator
for relatively efficient integration over Dalitz plot - Add true analytical 3-body phase space
- Add check for duplicated variable/pdfs names
- Add
ProgressBar
action forDataFrame
, now one can display the progress bar
during the processing of large frames. - Add context manager to remove/add certain topics to
RooMsgService
1.4.3.1
osX
1.4.3.0
osX
Relelase v1.4.2.0
Relelase v1.4.2.0
version v1.4.1.0
Updates in many subpackages...