# Latest

**URL:** https://discourse.julialang.org/latest.md?page=998

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 999

---

## [How reliable are the warning flags in the vscode profile viewer?](https://discourse.julialang.org/t/how-reliable-are-the-warning-flags-in-the-vscode-profile-viewer/83325)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 2\
**Last updated:** [June 27, 2022, 7:14am UTC](https://discourse.julialang.org/t/how-reliable-are-the-warning-flags-in-the-vscode-profile-viewer/83325 "2022-06-27T07:14:23Z")

</div>

I’m profiling a function using the vscode-julia @profview macro. When I do this some lines in the function are flagged as dynamic dispatch which I have a hard time believing, since according to @code\_warntype the argumen…

---

## [Lock a cell to prevent accidental editing](https://discourse.julialang.org/t/lock-a-cell-to-prevent-accidental-editing/83378)

<div class="topic-metadata">

**Author:** [@OuricoDC](https://discourse.julialang.org/u/OuricoDC)\
**Replies:** 1\
**Last updated:** [June 27, 2022, 7:10am UTC](https://discourse.julialang.org/t/lock-a-cell-to-prevent-accidental-editing/83378 "2022-06-27T07:10:35Z")

</div>

Hi, is there a way to lock a notebook cell to prevent accidental modification/ deletion in VSCode? Thanks ODC

---

## [How to convert day of year (DOY) to date](https://discourse.julialang.org/t/how-to-convert-day-of-year-doy-to-date/83290)

<div class="topic-metadata">

**Author:** [@Bjorn\_De](https://discourse.julialang.org/u/Bjorn_De)\
**Replies:** 3\
**Last updated:** [June 27, 2022, 6:07am UTC](https://discourse.julialang.org/t/how-to-convert-day-of-year-doy-to-date/83290 "2022-06-27T06:07:25Z")

</div>

Hey, I cannot find a solution to convert DOY to date, for example Date("2021-146", "yyyy-ddd") is not working. Any ideas? Thanks Bjoern

---

## [DataInterpolations.jl - defining function without broadcasting syntax](https://discourse.julialang.org/t/datainterpolations-jl-defining-function-without-broadcasting-syntax/83366)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 1\
**Last updated:** [June 27, 2022, 1:35am UTC](https://discourse.julialang.org/t/datainterpolations-jl-defining-function-without-broadcasting-syntax/83366 "2022-06-27T01:35:05Z")

</div>

I’m trying to fit a curve using DataInterpolations.jl and want to fit a curve with some fixed and variable parameters. The fixed number of terms can vary, which is why I’m starting with a sum of a generator (below, take c…

---

## [Why Base.summarysize is not exported to Main?](https://discourse.julialang.org/t/why-base-summarysize-is-not-exported-to-main/83367)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 3\
**Last updated:** [June 27, 2022, 12:30am UTC](https://discourse.julialang.org/t/why-base-summarysize-is-not-exported-to-main/83367 "2022-06-27T00:30:26Z")

</div>

I find more useful Base.summarysize than sizeof so why summarysize is not exported to Main? v = collect(1:1000); s = Set(v); sizeof(v), sizeof(s) Base.summarysize(v), Base.summarysize(s) (Base.summarysize(v), Base.summa…

---

## [Why throw on overlong slice?](https://discourse.julialang.org/t/why-throw-on-overlong-slice/83345)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 7\
**Last updated:** [June 26, 2022, 11:29pm UTC](https://discourse.julialang.org/t/why-throw-on-overlong-slice/83345 "2022-06-26T23:29:22Z")

</div>

Python: In \[1\]: \[1,2\]\[0:4\] Out\[1\]: \[1, 2\] Julia: julia\> \[1,2\]\[1:5\] ERROR: BoundsError: attempt to access 2-element Vector{Int64} at index \[1:5\] Why does Julia throw on overlong slice? Is this somehow useful for perfo…

---

## [Making multivariate Kolmogorov-Smirnov benchmarks](https://discourse.julialang.org/t/making-multivariate-kolmogorov-smirnov-benchmarks/75114)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 8\
**Last updated:** [June 26, 2022, 10:01pm UTC](https://discourse.julialang.org/t/making-multivariate-kolmogorov-smirnov-benchmarks/75114 "2022-06-26T22:01:47Z")

</div>

Hey, I’m trying to produce empirical multivariate Kolmogorov-Smirnov benchs to later benchmark an estimator. I have the following code for the moment : # The goal of this file is to compute kolmogorov-smirnov p-values …

---

## [How to play an audio in Julia?](https://discourse.julialang.org/t/how-to-play-an-audio-in-julia/31881)

<div class="topic-metadata">

**Author:** [@Ronneesley](https://discourse.julialang.org/u/Ronneesley)\
**Replies:** 33\
**Last updated:** [June 26, 2022, 9:24pm UTC](https://discourse.julialang.org/t/how-to-play-an-audio-in-julia/31881 "2022-06-26T21:24:26Z")

</div>

Since AudioIO.jl is unmaintained and LibSndFile.jl isn’t working well. There is another “famous” Julia’s audio module? I have an audio in .ogg or .mp3 (any format). I want to read and play it.

---

## [Bug or feature of the NamedTuple constuctor](https://discourse.julialang.org/t/bug-or-feature-of-the-namedtuple-constuctor/83368)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 1\
**Last updated:** [June 26, 2022, 8:50pm UTC](https://discourse.julialang.org/t/bug-or-feature-of-the-namedtuple-constuctor/83368 "2022-06-26T20:50:57Z")

</div>

julia\> NamedTuple{(:a,:b)}((; b=2, a=1)) (a = 1, b = 2) julia\> NamedTuple{(:a,:b), NTuple{2,Int}}((; b=2, a=1)) (a = 2, b = 1) Curious, is not it?

---

## [How to produce an array with specific entries of a matrix?](https://discourse.julialang.org/t/how-to-produce-an-array-with-specific-entries-of-a-matrix/83359)

<div class="topic-metadata">

**Author:** [@Hupdup](https://discourse.julialang.org/u/Hupdup)\
**Replies:** 3\
**Last updated:** [June 26, 2022, 4:30pm UTC](https://discourse.julialang.org/t/how-to-produce-an-array-with-specific-entries-of-a-matrix/83359 "2022-06-26T16:30:36Z")

</div>

Hi, I have an array “s\_norm” with 120 entrys. For every entry a neural network should give me the values for these states so as an output i have a matrix with 3 values for every s\_norm (a 120x3 matrix) I also have a…

---

## [Question about FixedEffectModels?](https://discourse.julialang.org/t/question-about-fixedeffectmodels/83363)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 7\
**Last updated:** [June 26, 2022, 5:26pm UTC](https://discourse.julialang.org/t/question-about-fixedeffectmodels/83363 "2022-06-26T17:26:20Z")

</div>

Dear all, When I use FixedEffectModels with Vcov.cluster, I get the different p values from the results of Stata. julia\> using DataFrames, RDatasets, FixedEffectModels julia\> df = dataset("plm", "GrunFeld"); julia\> …

---

## [\[ANN\] jlrs 0.14: MSVC support, runtime builder, improved return types, nested field access](https://discourse.julialang.org/t/ann-jlrs-0-14-msvc-support-runtime-builder-improved-return-types-nested-field-access/83358)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 0\
**Last updated:** [June 26, 2022, 1:56pm UTC](https://discourse.julialang.org/t/ann-jlrs-0-14-msvc-support-runtime-builder-improved-return-types-nested-field-access/83358 "2022-06-26T13:56:06Z")

</div>

jlrs is a crate for the Rust programming language that provides access to most of the Julia C API, it can be used to embed Julia in Rust applications and to use functionality from the Julia C API when writing ccallable f…

---

## [Looking for pytorch method alternative in flux](https://discourse.julialang.org/t/looking-for-pytorch-method-alternative-in-flux/83360)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 5\
**Last updated:** [June 26, 2022, 4:56pm UTC](https://discourse.julialang.org/t/looking-for-pytorch-method-alternative-in-flux/83360 "2022-06-26T16:56:40Z")

</div>

i am looking for pytorch’s interpolate(out, scale\_factor=2, mode=“nearest”) torch.nn.functional.interpolate — PyTorch 1.12 documentation method alternative in Flux

---

## [How to implement the ANOVA post-hoc test in Julia?](https://discourse.julialang.org/t/how-to-implement-the-anova-post-hoc-test-in-julia/83310)

<div class="topic-metadata">

**Author:** [@Aesth\_Estheticism](https://discourse.julialang.org/u/Aesth_Estheticism)\
**Replies:** 2\
**Last updated:** [June 26, 2022, 3:53pm UTC](https://discourse.julialang.org/t/how-to-implement-the-anova-post-hoc-test-in-julia/83310 "2022-06-26T15:53:33Z")

</div>

I conducted hypothesis test using HypohesisTest package, however, it seems that can’t do post-hoc test. Is there a package could do it?

---

## [Github CI with private repository in Julia](https://discourse.julialang.org/t/github-ci-with-private-repository-in-julia/81207)

<div class="topic-metadata">

**Author:** [@davide-f](https://discourse.julialang.org/u/davide-f)\
**Replies:** 13\
**Last updated:** [June 26, 2022, 2:46pm UTC](https://discourse.julialang.org/t/github-ci-with-private-repository-in-julia/81207 "2022-06-26T14:46:04Z")

</div>

Dear Community, I am having problems on a CI of a private repository of mine, the following error arises during the buildkpg phase of the CI: caused by: GitError(Code:EUSER, Class:Callback, Aborting, user cancelled cre…

---

## [Where can I find documentation for instream()](https://discourse.julialang.org/t/where-can-i-find-documentation-for-instream/83355)

<div class="topic-metadata">

**Author:** [@dodoplus](https://discourse.julialang.org/u/dodoplus)\
**Replies:** 3\
**Last updated:** [June 26, 2022, 2:30pm UTC](https://discourse.julialang.org/t/where-can-i-find-documentation-for-instream/83355 "2022-06-26T14:30:36Z")

</div>

It seems that MTK has an instream() operator. I think this is inspired by Modelica’s similarly named operator. Are there any examples using instream()? I could only find a single test using it (in state\_selection.jl). …

---

## [ANN: KiteControllers](https://discourse.julialang.org/t/ann-kitecontrollers/83356)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [June 26, 2022, 1:12pm UTC](https://discourse.julialang.org/t/ann-kitecontrollers/83356 "2022-06-26T13:12:18Z")

</div>

Im proud to announce the package KiteControllers version 0.1.6 (see: GitHub - aenarete/KiteControllers.jl: Controllers for airborne wind energy systems). This is the first version that includes a fully working autopilo…

---

## [Unpack vector of tuples from broadcasted function](https://discourse.julialang.org/t/unpack-vector-of-tuples-from-broadcasted-function/83350)

<div class="topic-metadata">

**Author:** [@drarnau](https://discourse.julialang.org/u/drarnau)\
**Replies:** 5\
**Last updated:** [June 26, 2022, 1:32pm UTC](https://discourse.julialang.org/t/unpack-vector-of-tuples-from-broadcasted-function/83350 "2022-06-26T13:32:59Z")

</div>

Hello, I think this is really simple but I can’t figure it out. I have a function which I broadcast, something like: function gives3(x) return x^2, x^3, x^4 end inputs = \[1, 2, 3, 4, 5\] output = gives3.(inputs) …

---

## [Attempting to reimplement SRGAN from Pytorch to Flux, any help appreciated](https://discourse.julialang.org/t/attempting-to-reimplement-srgan-from-pytorch-to-flux-any-help-appreciated/66869)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 4\
**Last updated:** [June 26, 2022, 7:47am UTC](https://discourse.julialang.org/t/attempting-to-reimplement-srgan-from-pytorch-to-flux-any-help-appreciated/66869 "2022-06-26T07:47:42Z")

</div>

Pytorch: class ConvBlock(nn.Module): def \_\_init\_\_( self, in\_channels, out\_channels, discriminator=False, use\_act=True, use\_bn=True, \*\*kwargs, ): su…

---

## [Pullback for both Flux model's inputs and parameters](https://discourse.julialang.org/t/pullback-for-both-flux-models-inputs-and-parameters/83316)

<div class="topic-metadata">

**Author:** [@luciano-drozda](https://discourse.julialang.org/u/luciano-drozda)\
**Replies:** 9\
**Last updated:** [June 26, 2022, 9:08am UTC](https://discourse.julialang.org/t/pullback-for-both-flux-models-inputs-and-parameters/83316 "2022-06-26T09:08:08Z")

</div>

How can I obtain pullback for a Flux model not only w.r.t. its params but also its inputs ? outputs, back = Zygote.pullback( () -\> model(inputs), Flux.params(model) ) returns the adjoint (i.e., back) for the model para…

---

## [Converting array of array of array to multidimensional array](https://discourse.julialang.org/t/converting-array-of-array-of-array-to-multidimensional-array/34337)

<div class="topic-metadata">

**Author:** [@luiarthur](https://discourse.julialang.org/u/luiarthur)\
**Replies:** 9\
**Last updated:** [June 26, 2022, 7:42am UTC](https://discourse.julialang.org/t/converting-array-of-array-of-array-to-multidimensional-array/34337 "2022-06-26T07:42:11Z")

</div>

Hi, Not sure if this has been answered already. My question is similar to this topic: Very best way to concatenate an array of arrays Basically, I want a more general solution. That is, if I have a multidimensional ar…

---

## [Experience sharing: are julia applications limited to supercomputers?](https://discourse.julialang.org/t/experience-sharing-are-julia-applications-limited-to-supercomputers/83347)

<div class="topic-metadata">

**Author:** [@green](https://discourse.julialang.org/u/green)\
**Replies:** 3\
**Last updated:** [June 26, 2022, 4:53am UTC](https://discourse.julialang.org/t/experience-sharing-are-julia-applications-limited-to-supercomputers/83347 "2022-06-26T04:53:44Z")

</div>

Hi, Most stories I heard so far from people with julia are using supercomputers. Has anyone experienced using julia for serious computer science research / projects with only a standard laptop or desktop computer? I wo…

---

## [Efficient recursive iteration over self referencing struct](https://discourse.julialang.org/t/efficient-recursive-iteration-over-self-referencing-struct/83322)

<div class="topic-metadata">

**Author:** [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Replies:** 11\
**Last updated:** [June 25, 2022, 11:48pm UTC](https://discourse.julialang.org/t/efficient-recursive-iteration-over-self-referencing-struct/83322 "2022-06-25T23:48:47Z")

</div>

Suppose i have a Node type that may have a reference to itself on one of its fields. What is the most efficient way to implement Base.iterate for this Node type, such that at every iteration we get the next child Node? j…

---

## [Particle Collision related development where thermal energy, concentration, mass(gravitational) well defined](https://discourse.julialang.org/t/particle-collision-related-development-where-thermal-energy-concentration-mass-gravitational-well-defined/83344)

<div class="topic-metadata">

**Author:** [@wasiful\_alam](https://discourse.julialang.org/u/wasiful_alam)\
**Replies:** 0\
**Last updated:** [June 25, 2022, 10:26pm UTC](https://discourse.julialang.org/t/particle-collision-related-development-where-thermal-energy-concentration-mass-gravitational-well-defined/83344 "2022-06-25T22:26:04Z")

</div>

Hi, Need to know if there any package in Julia where Temperature, Mass, Velocity, Density, Length and Time well defined, Constants are being used. so that in any equation those can be easily written. Any previous simul…

---

## [Do C++ performance optimisations apply to Julia?](https://discourse.julialang.org/t/do-c-performance-optimisations-apply-to-julia/82567)

<div class="topic-metadata">

**Author:** [@jacobusmmsmit](https://discourse.julialang.org/u/jacobusmmsmit)\
**Replies:** 28\
**Last updated:** [June 25, 2022, 8:29pm UTC](https://discourse.julialang.org/t/do-c-performance-optimisations-apply-to-julia/82567 "2022-06-25T20:29:19Z")

</div>

Hello everyone :slight\_smile: I came across a set of tips for optimising C++ raytracing code written by Chris Wyman and wondered how much of it applies to Julia. In total there are 27 tips which I’ll share below along w…

---

## [Iterator flatten with nested tuples](https://discourse.julialang.org/t/iterator-flatten-with-nested-tuples/83339)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 3\
**Last updated:** [June 25, 2022, 8:17pm UTC](https://discourse.julialang.org/t/iterator-flatten-with-nested-tuples/83339 "2022-06-25T20:17:43Z")

</div>

I am trying to flatten the following Iterator: julia\> it=Iterators.product(1:3,1:4); collect(it) 3×4 Matrix{Tuple{Int64, Int64}}: (1, 1) (1, 2) (1, 3) (1, 4) (2, 1) (2, 2) (2, 3) (2, 4) (3, 1) (3, 2) (3, 3) …

---

## [Parameter estimation with ODEProblem/Turing error](https://discourse.julialang.org/t/parameter-estimation-with-odeproblem-turing-error/83281)

<div class="topic-metadata">

**Author:** [@jae0](https://discourse.julialang.org/u/jae0)\
**Replies:** 2\
**Last updated:** [June 25, 2022, 6:29pm UTC](https://discourse.julialang.org/t/parameter-estimation-with-odeproblem-turing-error/83281 "2022-06-25T18:29:11Z")

</div>

Hi, Trying to do parameter estimation and running into an error that I am not finding from a web search: type or paste code hereERROR: MethodError: no method matching translate!!(::Core.SSAValue, ::Tuple{Symbol, Symbol}…

---

## [Right way of applying \`inverse\_transform\`](https://discourse.julialang.org/t/right-way-of-applying-inverse-transform/83124)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 3\
**Last updated:** [June 25, 2022, 6:27pm UTC](https://discourse.julialang.org/t/right-way-of-applying-inverse-transform/83124 "2022-06-25T18:27:18Z")

</div>

Hi, I have a setup like this: dftrain, dftest = partition(df, 0.7, shuffle=true, rng=123) datapipe = ContinuousEncoder() |\> Standardizer() datatrans\_mach = machine(datapipe, dftrain) |\> fit! normalized\_train = MLJ.tran…

---

## [Product iterator with NamedTuples](https://discourse.julialang.org/t/product-iterator-with-namedtuples/83319)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 5\
**Last updated:** [June 25, 2022, 5:42pm UTC](https://discourse.julialang.org/t/product-iterator-with-namedtuples/83319 "2022-06-25T17:42:29Z")

</div>

Hi all, I was wondering whether it is possible to create a product iterator consisting of NamedTuples. The product iterator generates tuples like so: Base.product(1:3,4:5) |\> collect 3×2 Matrix{Tuple{Int64, Int64}}: …

---

## [Question about plot?](https://discourse.julialang.org/t/question-about-plot/83336)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 3\
**Last updated:** [June 25, 2022, 5:24pm UTC](https://discourse.julialang.org/t/question-about-plot/83336 "2022-06-25T17:24:37Z")

</div>

Dear all, How to fill color between (2, 3) in the graph below? julia\> using Distributions julia\> plot(Normal(0, 1))

[Previous page](https://discourse.julialang.org/latest.md?page=997)

[Next page](https://discourse.julialang.org/latest.md?page=999)
