Misha Mikhasenko

Results 54 comments of Misha Mikhasenko
trafficstars

I see. You are probably right. One might need to apply one more `|> simplify` after your extra rule.

That were the tests: ```julia function df(f1,f2,lims; Ns = 10) xv = range(lims..., length=Ns) dyv = f1.(xv) .- f2.(xv) return sqrt(sum(abs2, dyv) / Ns) end @testset "convolution with gauss" begin...

## Benchmark 1: `gauss` on `randn()` ```julia using AlgebraPDF # gauss = FGauss((μ=2.4, σ=1.3)) |> Normalized((-10.0, 10.0)) data = randn(10_000) nll = NegativeLogLikelihood(gauss, data) ``` Now, calling the function with...

Roughly same time when using `FlaggedNamedTuple` for parameters ```julia gauss = FGauss(Ext(μ=2.4, σ=1.3)) |> Normalized((-10.0, 10.0)) ``` ```julia 213.200 μs (165 allocations: 160.39 KiB) 206.500 μs (175 allocations: 160.77 KiB)...

do you know how to check subtypes of the PyObject? I am afraid it cannot be done by the dispatch, i.e. requires conversion to Julia structure upfront. I saw you...

any experience with reading TCanvas in TFile using uproot? I cannot find the way to extract content from `PyObject `. ``` julia o._fields # Vector{Any} with 0 elements o._members #...

I have got the next opportunity (an urgent need) to get the extraction of the canvas data working. ```julia julia> c0 = TFile("file.root")["page0"] PyObject julia> keys(c0) 39-element Vector{Symbol}: :__class__ :__delattr__...

yes, indeed. To get the data points and the curves from the plot ![image](https://user-images.githubusercontent.com/22725744/143876987-269d8f24-a0c5-4c00-bbf3-06281ae5f0ea.png)

sure [plot.ReIm.pre.att0911.pdf.zip](https://github.com/JuliaHEP/UpROOT.jl/files/7618557/plot.ReIm.pre.att0911.pdf.zip) you get the canvas by ``` c0 = TFile("plot.ReIm.pre.att0911.pdf.root")["page0"] ```

In the ROOT I would do something like this: ```bash root> c1 = (TCanvas*)page0->GetListOfPrimitives()->First() root> l1 = c1->GetListOfPrimitives()->FirstLink() root> m1 = (TMultiGraph*)l1->Next()->GetObject() root> m1->GetListOfGraphs()->GetEntries() (int) 11 root> g1 = (TGraph*)m1->GetListOfGraphs()->First()...