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.TMiniutdecorations :test_fitting_minuit - allow
pathosto be used for paralellization for python version > 3.6 - add test
test_parallel_dillto check the the problem with combination of different versions ofROOT,dillandpython. - 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
DisplayTreeintoostap.logger.utils- useful tool to render the tree-like structures - impove
lsmethods for all shelve-like databases - add
ls_treeandls_tablemethod forROOT.TDirectory
f = ROOT.TFile ( .. )
f.ls_tree ()
f.ls_table()
- speedup construction of Bernstein polynomials from the list of roots
- re-write
PDF.wilksmethod to useROOT.RooProfileLL - add methods
PDF.graph_nllandPDF.graph_profilefor
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_randomintoostap/parallel/utils.py, that sets (hopefully) proper seeds for therandom,ROOT.gRandomandROOT.RooRandom - add invocation of
random_randomfrominitialize_remotefor the parallel toys. - add methods
graph_nllandgraph_profilefor 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_projectmethod fromostap.fitting.dataset.py - few minor fixes needed for
picalib - fix
Ostap::HistoProject::projectfor weightedRooAbsData,
now uncertainties are evaluated correctly, properly accounting the errors in weights - fix typo in
paralllel_toys2 - fix
random_randomfor python3
v1.4.6.0
v1.4.6.0
New features:
- Add new method
dct_paramsforROOT.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.pynew 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.pya version of fnuctoion above for the
parallel execution via multiprocessing and/or parallel python)- add method
evaluateforROOT.RooFitResultto 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
EvalNVEcovandEvalNVEcorevaluators intoostap.math.derivativemodule.
These objects evalaute the value of function of N-argument taking into account
the uncertainties and correlations - add method
max_cortoROOT.RooFitResultto obtain the maximal correlation coefficient
res = ... ## ROOT.RooFitResult
coefficient , variable = res.max_cor ( 'X' ) ## get the maximal correlation
- add the column
Global/max correlationfor the table form ofROOT.RooFitResult - add
ncpusargument toostap.parallel.parallel_toys.parallel_toys
Backward incompatible changes
Bug fixes:
- Minor fix in
Files.hadd - Couple of minor fixes in
ROOT.RooFitResult.sumROOT.RooFitResult.multiply
- Couple of minor fixes in
ostap.math.derivative
v1.4.5.0
v1.4.5.0
New features:
- Add new functions:
parametersparameter( and shortcut as__getitem__)
for the base classPDFto allow "easy" access to the values of
parameters by name, e.g.a = pdf['A']ora = pdf.parameter('A')
- New function
mid_pointis 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_meanand 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::LosevOstap::Models::Losevostap.fitting.signals.Losev_pdf
- tune
RooFitResult.tableprintout method - update some fitting examples
- add option/property
directoryforostap.parallel.task.Taskto indicate
the directory where the job needs to be executed - add option/property
environmentforostap.parallel.task.Taskto
setup additional environmental variables (if needed) - Add argument
keysfor the methodclonefor all databases, allowng to
copy only certain keys into cloned database. (Default: copy all keys) - add
json,gifandjpgoutput formats for defaultcanvas >> 'aaa'operator - add
haddmethod forostap.trees.data_utils.Filesto merge ROOT file viahaddscript
Backward incompatible changes
- MASSIVE RENAME/FIX: Apolonios -> Apollonios
- Add
jobidargument 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:
tablefunction forRooFitResult: print object in a form of a nice tableostap.logger.utilsset 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_columnto 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/TChainand wholeIFuncTreemachinery - change the names for example-tests
- add script to check the dependensies
- one more attempt to fix the crash for
FuncTH1add_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.nllto accept all keywords - unify
PDF.nllkeywords withpdf.fitTokeywords - tmva & tmva/chopping: fix problem with non-deleted temporary files/directories
cleanup: add concept of "local" trash, to be deleted whenCleanUpinstance 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_rootmodule/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_nllmethod - Add
ROOT.TGraph.removemethod - Improve
ROOT.TGraph.filtermethod - Add plotting options for
combined_background,combined_signalandcombined_components - Extend the signature for
Ostap::Math::gauss_pdf/gauss_cdf - Add
PSSmear_pdf- smeared version forPhaseSpace-based PDFs - Add
signals&backgroundskeywords forFit1D-constructor - Add 'args' argument to draw-functions
- Add possibility for prefilter of data for
TMVA/chopping. - Allow TMVA/chopping tools to process
RooFitdatasets: (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
DalitzIntegratorfor relatively efficient integration over Dalitz plot - Add true analytical 3-body phase space
- Add check for duplicated variable/pdfs names
- Add
ProgressBaraction 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...