# Latest

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

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

**Page:** 432

---

## [\[blogpost\] From FASTQ to CNV calls in Julia](https://discourse.julialang.org/t/blogpost-from-fastq-to-cnv-calls-in-julia/113084)

<div class="topic-metadata">

**Author:** [@jonathanBieler](https://discourse.julialang.org/u/jonathanBieler)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 4:21pm UTC](https://discourse.julialang.org/t/blogpost-from-fastq-to-cnv-calls-in-julia/113084 "2024-04-17T16:21:35Z")

</div>

---

## [Isfile() for JLD2 appears to be giving segmentation faults / bus errors on a computer cluster](https://discourse.julialang.org/t/isfile-for-jld2-appears-to-be-giving-segmentation-faults-bus-errors-on-a-computer-cluster/113019)

<div class="topic-metadata">

**Author:** [@andrewkhardy](https://discourse.julialang.org/u/andrewkhardy)\
**Replies:** 5\
**Last updated:** [April 17, 2024, 4:15pm UTC](https://discourse.julialang.org/t/isfile-for-jld2-appears-to-be-giving-segmentation-faults-bus-errors-on-a-computer-cluster/113019 "2024-04-17T16:15:27Z")

</div>

I’m posting a question because I’m not sure if I’m making a silly mistake, or if there’s something a bit more subtle going wrong. I am running a Julia script on a HPC cluster. One aspect of this script is that it checks…

---

## [How to interrupt fun(a,b) in a for loop after 10 seconds?](https://discourse.julialang.org/t/how-to-interrupt-fun-a-b-in-a-for-loop-after-10-seconds/112951)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 27\
**Last updated:** [April 17, 2024, 2:55pm UTC](https://discourse.julialang.org/t/how-to-interrupt-fun-a-b-in-a-for-loop-after-10-seconds/112951 "2024-04-17T14:55:06Z")

</div>

How to interrupt fun(a,b) in a for loop after 10 seconds? If terminated before execution, fun x,y,z=false for i=1:k x,y,z=fun(a,b) ??? 10 sek \> x,y,z=false,false,false end Thank you very much for your help, GPT doesn’…

---

## [Instantiate concrete type programmaticaly](https://discourse.julialang.org/t/instantiate-concrete-type-programmaticaly/113071)

<div class="topic-metadata">

**Author:** [@Sigmund](https://discourse.julialang.org/u/Sigmund)\
**Replies:** 1\
**Last updated:** [April 17, 2024, 2:45pm UTC](https://discourse.julialang.org/t/instantiate-concrete-type-programmaticaly/113071 "2024-04-17T14:45:57Z")

</div>

I want to instantiate a the following concrete type, Base.@kwdef struct A x::Int y::Int = 123 end but I’m having problems when all fields are not given. While this works: julia\> a = A(\[1, 2\]...) A(1, 2) juli…

---

## [Cannot declare Main.foo constant; it already has a value](https://discourse.julialang.org/t/cannot-declare-main-foo-constant-it-already-has-a-value/112453)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [April 17, 2024, 2:45pm UTC](https://discourse.julialang.org/t/cannot-declare-main-foo-constant-it-already-has-a-value/112453 "2024-04-17T14:45:15Z")

</div>

I experiment with setting the value of foo, decide I’m happy with it, and I want to make it const but I can’t. Can something be done to make this less annoying? julia\> foo = \[\] Any\[\] julia\> const foo = \[\] ERROR: cannot…

---

## [Reading Eigen Matrix data from a static library](https://discourse.julialang.org/t/reading-eigen-matrix-data-from-a-static-library/113077)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 2:45pm UTC](https://discourse.julialang.org/t/reading-eigen-matrix-data-from-a-static-library/113077 "2024-04-17T14:45:08Z")

</div>

I have a C++ (library and) application using Eigen. There’s some data hard-coded in there, in an Eigen matrix, that I suppose I might be able to load from the compiled static library. I can see the symbol there with nm. …

---

## [CUDA: blockdimensions and launch\_configuration](https://discourse.julialang.org/t/cuda-blockdimensions-and-launch-configuration/113069)

<div class="topic-metadata">

**Author:** [@ErwinMoller](https://discourse.julialang.org/u/ErwinMoller)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 2:00pm UTC](https://discourse.julialang.org/t/cuda-blockdimensions-and-launch-configuration/113069 "2024-04-17T14:00:25Z")

</div>

Hello, I am working on my understanding of blocks and threads/Block (which is called blockDimension). So I wrote a simple kernel (called gpu\_heavy! to impress my friends) that writes some values back to 4 CuArrays. (…

---

## [Julia documentation is improving!](https://discourse.julialang.org/t/julia-documentation-is-improving/113070)

<div class="topic-metadata">

**Author:** [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 2:01pm UTC](https://discourse.julialang.org/t/julia-documentation-is-improving/113070 "2024-04-17T14:01:14Z")

</div>

Just wanted to pass along a note that my experience recently with Julia documentation (core language docs) has been improved compared to the past. It isn’t that the past was bad, but just wanted to convey a message that …

---

## [\[New Publication\] LymphoDose](https://discourse.julialang.org/t/new-publication-lymphodose/113058)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 1\
**Last updated:** [April 17, 2024, 1:59pm UTC](https://discourse.julialang.org/t/new-publication-lymphodose/113058 "2024-04-17T13:59:35Z")

</div>

Hello everyone :smiley:, I am pleased to announce the recent publication of LymphoDose: a lymphocyte dose estimation framework - application to brain radiotherapy, entirely developed in Julia (and the plot with Makie.jl)…

---

## [Interactive maps in Julia (folium equivalent)](https://discourse.julialang.org/t/interactive-maps-in-julia-folium-equivalent/71424)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 5\
**Last updated:** [April 17, 2024, 1:20pm UTC](https://discourse.julialang.org/t/interactive-maps-in-julia-folium-equivalent/71424 "2024-04-17T13:20:53Z")

</div>

What’s the closest thing we have that’s equivalent to folium in Python, i.e. a package that lets me take a set of lat/lon coordinates and plot them on an interactive map, including ideally the ability to have custom html…

---

## [Using TensorOperations.jl when contracting tensors not following strict Einstein summation convention](https://discourse.julialang.org/t/using-tensoroperations-jl-when-contracting-tensors-not-following-strict-einstein-summation-convention/113034)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 8\
**Last updated:** [April 17, 2024, 12:47pm UTC](https://discourse.julialang.org/t/using-tensoroperations-jl-when-contracting-tensors-not-following-strict-einstein-summation-convention/113034 "2024-04-17T12:47:46Z")

</div>

I am trying to implement the following computation on a GPU. @tensor S\[i,j\] = A\[a1,j\]\*F\[a1,i,a2\]\*B\[a2,j\] As per the strict Einstein summation convention, this is not a valid expression as the index j appears twice on t…

---

## [Makie: cannot plot with symlog colorscale](https://discourse.julialang.org/t/makie-cannot-plot-with-symlog-colorscale/113043)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 5\
**Last updated:** [April 17, 2024, 12:46pm UTC](https://discourse.julialang.org/t/makie-cannot-plot-with-symlog-colorscale/113043 "2024-04-17T12:46:24Z")

</div>

I’m trying to plot a 2d array with both positive an negative values, using a “symlog” colorscale in Makie. This is what I get, looks weird – I cannot make any sense out of colorbar labels: And this is what I expecte…

---

## [Fixedpoints for one dimensonal ODE DynamicalSystems.jl](https://discourse.julialang.org/t/fixedpoints-for-one-dimensonal-ode-dynamicalsystems-jl/113065)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 12:35pm UTC](https://discourse.julialang.org/t/fixedpoints-for-one-dimensonal-ode-dynamicalsystems-jl/113065 "2024-04-17T12:35:17Z")

</div>

Hello, i try calculate fixed points for one dimensional ODE and get next error: ERROR: MethodError: no method matching /(::Int64, ::SMatrix{1, 1, IntervalArithmetic.Interval{Float64}, 1}) Closest candidates are: /(::…

---

## [Weird spike in time to determinant computation with size of matrx](https://discourse.julialang.org/t/weird-spike-in-time-to-determinant-computation-with-size-of-matrx/113059)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 2\
**Last updated:** [April 17, 2024, 12:09pm UTC](https://discourse.julialang.org/t/weird-spike-in-time-to-determinant-computation-with-size-of-matrx/113059 "2024-04-17T12:09:13Z")

</div>

On my university’s cluster (and not on my PC), I see this extremely weird scaling of time to compute determinants with the size of the matrix. For example, if I do this for dim in 96:1:104 @btime logdet(x) se…

---

## [Any variational bayesian package that allows user defined custom distribution (getq in turing)](https://discourse.julialang.org/t/any-variational-bayesian-package-that-allows-user-defined-custom-distribution-getq-in-turing/112946)

<div class="topic-metadata">

**Author:** [@swsw](https://discourse.julialang.org/u/swsw)\
**Replies:** 1\
**Last updated:** [April 17, 2024, 8:13am UTC](https://discourse.julialang.org/t/any-variational-bayesian-package-that-allows-user-defined-custom-distribution-getq-in-turing/112946 "2024-04-17T08:13:02Z")

</div>

Hi all, I wondered if there’s any package that allow the user to specify any kind of distribution as q(Z). I think in https://turinglang.org/v0.30/tutorials/09-variational-inference/ it is mentioned that by default the…

---

## [Multimodule project: Error when calling function from imported module in Julia](https://discourse.julialang.org/t/multimodule-project-error-when-calling-function-from-imported-module-in-julia/113045)

<div class="topic-metadata">

**Author:** [@dmgcodevil](https://discourse.julialang.org/u/dmgcodevil)\
**Replies:** 1\
**Last updated:** [April 17, 2024, 7:52am UTC](https://discourse.julialang.org/t/multimodule-project-error-when-calling-function-from-imported-module-in-julia/113045 "2024-04-17T07:52:28Z")

</div>

I’m new to Julia. I want to organize my code into modules. I have three modules: ModuleA.jl : module ModuleA include("ModuleB.jl") export process using .ModuleB function process(foo::Foo) end end ModuleB.jl : modul…

---

## [Drawing variables from truncated normal with mean as another variable](https://discourse.julialang.org/t/drawing-variables-from-truncated-normal-with-mean-as-another-variable/113044)

<div class="topic-metadata">

**Author:** [@gonzalo](https://discourse.julialang.org/u/gonzalo)\
**Replies:** 2\
**Last updated:** [April 17, 2024, 4:40am UTC](https://discourse.julialang.org/t/drawing-variables-from-truncated-normal-with-mean-as-another-variable/113044 "2024-04-17T04:40:56Z")

</div>

Hi All, I want to drawing random variables from truncated normal with mean as another variable. However it didn’t work and I got the following wrong message. Is there anyone who can help me with it? Gonzalo using Turi…

---

## [Makie - transformation of coordinates when using PolarAxis vs Axis](https://discourse.julialang.org/t/makie-transformation-of-coordinates-when-using-polaraxis-vs-axis/112989)

<div class="topic-metadata">

**Author:** [@BenjaminDoran](https://discourse.julialang.org/u/BenjaminDoran)\
**Replies:** 2\
**Last updated:** [April 17, 2024, 4:20am UTC](https://discourse.julialang.org/t/makie-transformation-of-coordinates-when-using-polaraxis-vs-axis/112989 "2024-04-17T04:20:40Z")

</div>

Is there a way to check in a makie plotting recipe what type of axis is being plotted on? I am trying to work on a plotting recipe for AbstractTrees with both ‘dendrogram’ layouts and circular layouts Ideally, a…

---

## [From Modelica source code to Julia](https://discourse.julialang.org/t/from-modelica-source-code-to-julia/80837)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 15\
**Last updated:** [April 17, 2024, 2:06am UTC](https://discourse.julialang.org/t/from-modelica-source-code-to-julia/80837 "2024-04-17T02:06:26Z")

</div>

Hi All, Is there any way to import a Model from Modelica-file to Julia lang? I mean I have the model in the Modelica that can be simulated by Dymola. Of course, I can get the fmu compiled file and load it to Julia. But…

---

## [Precompiling a function for \`ForwardDiff\` call](https://discourse.julialang.org/t/precompiling-a-function-for-forwarddiff-call/113041)

<div class="topic-metadata">

**Author:** [@liamh](https://discourse.julialang.org/u/liamh)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 11:47pm UTC](https://discourse.julialang.org/t/precompiling-a-function-for-forwarddiff-call/113041 "2024-04-16T23:47:01Z")

</div>

I am using ForwardDiff on my own function. While I expect that the first call spends a substantial amount of time compiling, subsequent identical calls are also spending 99.8+% of the time compiling. I have tried reviewi…

---

## [Convert XML Paths to DataFrame Columns](https://discourse.julialang.org/t/convert-xml-paths-to-dataframe-columns/113042)

<div class="topic-metadata">

**Author:** [@jjAtNxtPt](https://discourse.julialang.org/u/jjAtNxtPt)\
**Replies:** 0\
**Last updated:** [April 17, 2024, 12:00am UTC](https://discourse.julialang.org/t/convert-xml-paths-to-dataframe-columns/113042 "2024-04-17T00:00:57Z")

</div>

I pull data from a database into a data frame with just two columns, ID and XMLData. I need to parse out a list of 125 (for now) up to 240+ xpaths into new columns of the dataframe. I broadcast the parse function over …

---

## [Is the number of threads used by Pluto capped?](https://discourse.julialang.org/t/is-the-number-of-threads-used-by-pluto-capped/73499)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 5\
**Last updated:** [April 16, 2024, 11:40pm UTC](https://discourse.julialang.org/t/is-the-number-of-threads-used-by-pluto-capped/73499 "2024-04-16T23:40:17Z")

</div>

I’m on a Linux box and launched Julia with 16 threads, and then launched Pluto as follows: And yet Pluto only seems to have 8 threads available Am I doing something wrong or misunderstanding things? Or is multith…

---

## [PackageCompiler.jl: Best practices to create cross-platform relocatable app?](https://discourse.julialang.org/t/packagecompiler-jl-best-practices-to-create-cross-platform-relocatable-app/105408)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 11:08pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-best-practices-to-create-cross-platform-relocatable-app/105408 "2024-04-16T23:08:52Z")

</div>

Hi community, I was experimenting with PackageCompiler.jl, and I created a relocatable app, which seems to be portable to other machines running the same operating system. But how can I compile binaries for every opera…

---

## [\`HiGHS.jl\` gives strange results](https://discourse.julialang.org/t/highs-jl-gives-strange-results/112995)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [April 16, 2024, 10:02pm UTC](https://discourse.julialang.org/t/highs-jl-gives-strange-results/112995 "2024-04-16T22:02:02Z")

</div>

using JuMP, HiGHS ## Case-1 M1 = Model(HiGHS.Optimizer) @variable(M1, d\[1:2\]) g1 = @expression(M1, (1/100) \* (d\[1\] - 1)) g2 = @expression(M1, (1/100) \* (d\[2\] - 2)) @constraint(M1, 0 \<= g1 \<= 1) @constraint(M1, 0 \<= g2 \<=…

---

## [Makie recipe subplots?](https://discourse.julialang.org/t/makie-recipe-subplots/113037)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 8:56pm UTC](https://discourse.julialang.org/t/makie-recipe-subplots/113037 "2024-04-16T20:56:29Z")

</div>

I could not figure this out, but does Makie recipe support making multiple subplots? For instance: function Makie.plot!(plt::MyPlot) lines!(plt\[1,1\], ...) scatter!(plt\[1,2\], ...) end

---

## [Efficiently loading a batch of .mat files](https://discourse.julialang.org/t/efficiently-loading-a-batch-of-mat-files/113036)

<div class="topic-metadata">

**Author:** [@vict\_riag](https://discourse.julialang.org/u/vict_riag)\
**Replies:** 2\
**Last updated:** [April 16, 2024, 8:46pm UTC](https://discourse.julialang.org/t/efficiently-loading-a-batch-of-mat-files/113036 "2024-04-16T20:46:13Z")

</div>

Hello, I am new at optimizing julia code. Currently I am working on a project translating a model in MATLAB to Julia. There is a large amount of starting data for this model written in .mat files. Right now, I am develo…

---

## [API reference for Julia Embedding in C](https://discourse.julialang.org/t/api-reference-for-julia-embedding-in-c/3963)

<div class="topic-metadata">

**Author:** [@tastelessjolt](https://discourse.julialang.org/u/tastelessjolt)\
**Replies:** 13\
**Last updated:** [April 16, 2024, 8:05pm UTC](https://discourse.julialang.org/t/api-reference-for-julia-embedding-in-c/3963 "2024-04-16T20:05:21Z")

</div>

Is there any official API reference for Julia Embedding in C, or should we be understanding by going through the code or asking here? And specifically, How to create and access the data in the tuple? How to convert a …

---

## [How to check what other packages an installed package uses?](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950)

<div class="topic-metadata">

**Author:** [@Nikos\_Gianniotis](https://discourse.julialang.org/u/Nikos_Gianniotis)\
**Replies:** 4\
**Last updated:** [April 16, 2024, 7:58pm UTC](https://discourse.julialang.org/t/how-to-check-what-other-packages-an-installed-package-uses/112950 "2024-04-16T19:58:24Z")

</div>

I have installed package X in my Julia environment. How can I check what other packages package X is using and what their versions are? I believe that, in previous versions of Julia, I could use something like e.g. Pkg.…

---

## [Large amount of RAM for double for loop for dictionaries](https://discourse.julialang.org/t/large-amount-of-ram-for-double-for-loop-for-dictionaries/113029)

<div class="topic-metadata">

**Author:** [@christmas\_jones](https://discourse.julialang.org/u/christmas_jones)\
**Replies:** 10\
**Last updated:** [April 16, 2024, 7:20pm UTC](https://discourse.julialang.org/t/large-amount-of-ram-for-double-for-loop-for-dictionaries/113029 "2024-04-16T19:20:38Z")

</div>

I have a function that computes a float value from two dictionaries (basically by ‘multiplying’ the dictionaries, with a constraint that the keys (tuples) summed pairwise are in another set), but it uses a huge amount of…

---

## [Undistort Points in Julia](https://discourse.julialang.org/t/undistort-points-in-julia/113027)

<div class="topic-metadata">

**Author:** [@dennispureza](https://discourse.julialang.org/u/dennispureza)\
**Replies:** 1\
**Last updated:** [April 16, 2024, 6:50pm UTC](https://discourse.julialang.org/t/undistort-points-in-julia/113027 "2024-04-16T18:50:45Z")

</div>

Hello everyone, I was looking for a Julia package with a function to undistort image points like Matlab’s undistortPoints(), and since I couldn’t find any, I am currently trying to code a function myself.I already have …

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

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