# Latest

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

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

**Page:** 462

---

## [TrueColor raster satellite image](https://discourse.julialang.org/t/truecolor-raster-satellite-image/111401)

<div class="topic-metadata">

**Author:** [@haffner](https://discourse.julialang.org/u/haffner)\
**Replies:** 19\
**Last updated:** [March 11, 2024, 10:56am UTC](https://discourse.julialang.org/t/truecolor-raster-satellite-image/111401 "2024-03-11T10:56:34Z")

</div>

I’m trying to compose a TrueColor image from three raster channels a VIIRS granule stored in a netCDF4 file. I’d like to do this in pure Julia but haven’t figured it out yet. I can read the data using NCDatasets.jl, bu…

---

## [Custom Noise Process for DifferentialEquations.jl](https://discourse.julialang.org/t/custom-noise-process-for-differentialequations-jl/111418)

<div class="topic-metadata">

**Author:** [@StefanPerko](https://discourse.julialang.org/u/StefanPerko)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 10:03am UTC](https://discourse.julialang.org/t/custom-noise-process-for-differentialequations-jl/111418 "2024-03-11T10:03:34Z")

</div>

I’m trying to define my own noise process for usage with the SDEProblem function. Mathematically its defined like this: take a Brownian motion on \[0,1\]. Stick the path on \[0,1\] at its own tail (continuously) to get a pr…

---

## [Static array or tuple allocate at construction](https://discourse.julialang.org/t/static-array-or-tuple-allocate-at-construction/111447)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 9:11am UTC](https://discourse.julialang.org/t/static-array-or-tuple-allocate-at-construction/111447 "2024-03-11T09:11:28Z")

</div>

I have some code that allocates on the heap (and shouldn’t) while constructing a StaticArray. The hunt leads me to this MWE: using StaticArrays, BenchmarkTools @btime SVector{4,Float64}(2. \*i for i=1:4) # good, no…

---

## [Works in debugger, segfaults when compiled](https://discourse.julialang.org/t/works-in-debugger-segfaults-when-compiled/111385)

<div class="topic-metadata">

**Author:** [@mpeters2](https://discourse.julialang.org/u/mpeters2)\
**Replies:** 3\
**Last updated:** [March 11, 2024, 2:28am UTC](https://discourse.julialang.org/t/works-in-debugger-segfaults-when-compiled/111385 "2024-03-11T02:28:54Z")

</div>

I’m trying to translate some C/C++ code to take a screenshot of an SDL window. My code works in the debugger, but not in normal compiled mode. It’s based on the following C/C++ code: void SosariaInputController::SaveS…

---

## [Avogadro's number as a floating-point value](https://discourse.julialang.org/t/avogadros-number-as-a-floating-point-value/111379)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 18\
**Last updated:** [March 11, 2024, 2:10am UTC](https://discourse.julialang.org/t/avogadros-number-as-a-floating-point-value/111379 "2024-03-11T02:10:14Z")

</div>

Ok, on this topic: What on earth were the SI people thinking when they specced the current value of avogadro’s number? julia\> Int128(6.02214076e23) 602214075999999987023872 I get that they wanted to spec a nice round n…

---

## [Pecuzal Tmax](https://discourse.julialang.org/t/pecuzal-tmax/111436)

<div class="topic-metadata">

**Author:** [@ccccc](https://discourse.julialang.org/u/ccccc)\
**Replies:** 0\
**Last updated:** [March 10, 2024, 11:28pm UTC](https://discourse.julialang.org/t/pecuzal-tmax/111436 "2024-03-10T23:28:35Z")

</div>

Does anyone know what’s the relation of the PECUZAL algorithm to Tmax? What’s a reasonable Tmax to use? I had thought that length(dataset) ÷ 2 - 1 should be ok, but I get a bounds error when I go up this high (only, som…

---

## [\[ANN\] FFTIndexing.jl](https://discourse.julialang.org/t/ann-fftindexing-jl/111433)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 0\
**Last updated:** [March 10, 2024, 9:23pm UTC](https://discourse.julialang.org/t/ann-fftindexing-jl/111433 "2024-03-10T21:23:52Z")

</div>

FFTIndexing.jl is a small package I’ve written that provides a few types that you can use to index an array in a manner that exposes the underlying frequency bins from a Fourier transform. This package accomplishes simi…

---

## [Makie Contourf Giving Incorrect Whitespace in Contours](https://discourse.julialang.org/t/makie-contourf-giving-incorrect-whitespace-in-contours/111222)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 9\
**Last updated:** [March 10, 2024, 4:51pm UTC](https://discourse.julialang.org/t/makie-contourf-giving-incorrect-whitespace-in-contours/111222 "2024-03-10T16:51:55Z")

</div>

Hello, I am trying to plot the initial condition of some simulations I am running. The simulation is two-dimensional and the initial condition is composed of some hyperbolic tangents. The issue is that when I plot this…

---

## [Enforcing nonneg. constraint in parameter Optimization](https://discourse.julialang.org/t/enforcing-nonneg-constraint-in-parameter-optimization/111298)

<div class="topic-metadata">

**Author:** [@paul188](https://discourse.julialang.org/u/paul188)\
**Replies:** 1\
**Last updated:** [March 10, 2024, 3:01pm UTC](https://discourse.julialang.org/t/enforcing-nonneg-constraint-in-parameter-optimization/111298 "2024-03-10T15:01:05Z")

</div>

(I moved this post to “New to Julia”) Hi, I am quite new to Julia, so this might be obvious, but I cannot figure it out. I have a model consisting of parameters and a set of ODEs. In the MWE below, I just substitute by…

---

## [Is the use of DAGs in causal inference commonplace?](https://discourse.julialang.org/t/is-the-use-of-dags-in-causal-inference-commonplace/108984)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 7\
**Last updated:** [March 10, 2024, 10:45am UTC](https://discourse.julialang.org/t/is-the-use-of-dags-in-causal-inference-commonplace/108984 "2024-03-10T10:45:09Z")

</div>

A few years ago I worked through Richard McElreath’s Statistical Rethinking. In it, McElreath discusses the use of Directed Acyclic Graphs to specify/analyze causal models, briefly covers do-calculus, etc. I don’t work i…

---

## [SDE driven by a NoiseTransport noise](https://discourse.julialang.org/t/sde-driven-by-a-noisetransport-noise/110422)

<div class="topic-metadata">

**Author:** [@Damiano](https://discourse.julialang.org/u/Damiano)\
**Replies:** 6\
**Last updated:** [March 10, 2024, 2:31pm UTC](https://discourse.julialang.org/t/sde-driven-by-a-noisetransport-noise/110422 "2024-03-10T14:31:05Z")

</div>

Hi everybody, first of all let me say that I still consider myself new to Julia (and even programming in general), so everything I say and write is likely to contain very naive mistakes. Also, if there is anything I sho…

---

## [StaticRange precompile fails on Julia 1.10.2](https://discourse.julialang.org/t/staticrange-precompile-fails-on-julia-1-10-2/111248)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 6\
**Last updated:** [March 10, 2024, 1:27pm UTC](https://discourse.julialang.org/t/staticrange-precompile-fails-on-julia-1-10-2/111248 "2024-03-10T13:27:56Z")

</div>

My student has an error precompiling static ranges in Julia 1.10.2. Pls. advice.

---

## [Error when compiling PyCall with PackageCompiler.jl](https://discourse.julialang.org/t/error-when-compiling-pycall-with-packagecompiler-jl/111422)

<div class="topic-metadata">

**Author:** [@bd1](https://discourse.julialang.org/u/bd1)\
**Replies:** 0\
**Last updated:** [March 10, 2024, 1:17pm UTC](https://discourse.julialang.org/t/error-when-compiling-pycall-with-packagecompiler-jl/111422 "2024-03-10T13:17:09Z")

</div>

I wanted to use Julia code in my Python script via PyJulia. However, every time the JIT run takes too long, so I turned to PackageCompiler.jl to make it faster by compiling the required functions into a system image. I n…

---

## [Package to save/read defaults](https://discourse.julialang.org/t/package-to-save-read-defaults/111407)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [March 10, 2024, 10:24am UTC](https://discourse.julialang.org/t/package-to-save-read-defaults/111407 "2024-03-10T10:24:35Z")

</div>

I’ve seen some time ago a post mentioning a package enabling to save and read package (and probably user) defaults. Unfortunately at the moment I didn’t need it, and now can’t remember the name, no can find the post. Any…

---

## [Cannot set linestyle to :solid with observable using GLMakie](https://discourse.julialang.org/t/cannot-set-linestyle-to-solid-with-observable-using-glmakie/111413)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 2\
**Last updated:** [March 10, 2024, 10:05am UTC](https://discourse.julialang.org/t/cannot-set-linestyle-to-solid-with-observable-using-glmakie/111413 "2024-03-10T10:05:04Z")

</div>

I want to change the linestyle of lines in an axis using an observable for the linestyle. When using the little code snippet below, it works for setting the linestyle to :dot, :dash, :dotdash, but not for setting the lin…

---

## [PowerDynamics read each vector from simulation](https://discourse.julialang.org/t/powerdynamics-read-each-vector-from-simulation/111416)

<div class="topic-metadata">

**Author:** [@Igor](https://discourse.julialang.org/u/Igor)\
**Replies:** 0\
**Last updated:** [March 10, 2024, 9:30am UTC](https://discourse.julialang.org/t/powerdynamics-read-each-vector-from-simulation/111416 "2024-03-10T09:30:52Z")

</div>

PowerDynamics.ju, Example\_node\_construction.ju I get solution = simulate(fault1, powergrid, operationpoint, timespan) How read own vector from solution? I try determin type julia\> typeof(solution1) PowerDynamics.P…

---

## [Creating a CLI app in Julia](https://discourse.julialang.org/t/creating-a-cli-app-in-julia/111160)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 7\
**Last updated:** [March 10, 2024, 8:40am UTC](https://discourse.julialang.org/t/creating-a-cli-app-in-julia/111160 "2024-03-10T08:40:31Z")

</div>

I have to share my code in a way that my non-programming colleagues can use it on their own. Currently there is a Julia function which accepts a path to an Excel file, containing all data and metadata, does processing, c…

---

## [Scalar and Arrays: indexing the same way?](https://discourse.julialang.org/t/scalar-and-arrays-indexing-the-same-way/111409)

<div class="topic-metadata">

**Author:** [@hsgg](https://discourse.julialang.org/u/hsgg)\
**Replies:** 5\
**Last updated:** [March 10, 2024, 4:36am UTC](https://discourse.julialang.org/t/scalar-and-arrays-indexing-the-same-way/111409 "2024-03-10T04:36:05Z")

</div>

I have a situation where an array of objects, say galaxies, can have either the same value for a property, or each has a different value. I would like to use the same function in both cases. For example, if the property …

---

## [Colouring edges in GraphMakie.jl](https://discourse.julialang.org/t/colouring-edges-in-graphmakie-jl/109082)

<div class="topic-metadata">

**Author:** [@Mahnoor\_Pop](https://discourse.julialang.org/u/Mahnoor_Pop)\
**Replies:** 2\
**Last updated:** [March 9, 2024, 11:50pm UTC](https://discourse.julialang.org/t/colouring-edges-in-graphmakie-jl/109082 "2024-03-09T23:50:33Z")

</div>

Hi! I’m making a graph based on an adjacency matrix of 1’s and 2’s (which indicates which colour the edge should be). Currently, I can’t colour individual edges like shown in the third example of this page. I think this…

---

## [PSA: Linking to Package Documentation in GitHub Repos](https://discourse.julialang.org/t/psa-linking-to-package-documentation-in-github-repos/111364)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 3\
**Last updated:** [March 9, 2024, 11:11pm UTC](https://discourse.julialang.org/t/psa-linking-to-package-documentation-in-github-repos/111364 "2024-03-09T23:11:59Z")

</div>

If you maintain a package, I’d like a minute of your time. Thanks to Documenter.jl, the vast majority of packages I’ve found have documentation. Due to GitHub’s utter dominance of the repo hosting landscape, and the def…

---

## [Convert NamedTuple with matrix to DataFrame](https://discourse.julialang.org/t/convert-namedtuple-with-matrix-to-dataframe/111399)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 7\
**Last updated:** [March 9, 2024, 11:09pm UTC](https://discourse.julialang.org/t/convert-namedtuple-with-matrix-to-dataframe/111399 "2024-03-09T23:09:05Z")

</div>

Hello, I was wondering if there is a simple way to convert a NamedTuple with a mix of vectors and matrices, such as, np = (x = \[1 1; 1 2; 2 1; 2 2\], y = \[1,2,3,4\]) to a DataFrame, such as df = DataFrame(x1 = \[1,1,2,2…

---

## [Bit manipulations with llvmcall give strange results](https://discourse.julialang.org/t/bit-manipulations-with-llvmcall-give-strange-results/111403)

<div class="topic-metadata">

**Author:** [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Replies:** 11\
**Last updated:** [March 9, 2024, 10:58pm UTC](https://discourse.julialang.org/t/bit-manipulations-with-llvmcall-give-strange-results/111403 "2024-03-09T22:58:28Z")

</div>

I’m playing around with llvmcall. The following function g is supposed to convert x::UInt8 into an Int8 tuple of length N whose first 8 entries are the bits of x and the higher ones are zero. unvec(t::Tuple{Vararg{VecEl…

---

## [Changes of A.jl are not understood from B.jl that includes A.jl](https://discourse.julialang.org/t/changes-of-a-jl-are-not-understood-from-b-jl-that-includes-a-jl/110498)

<div class="topic-metadata">

**Author:** [@DoctorDro](https://discourse.julialang.org/u/DoctorDro)\
**Replies:** 96\
**Last updated:** [March 9, 2024, 10:43pm UTC](https://discourse.julialang.org/t/changes-of-a-jl-are-not-understood-from-b-jl-that-includes-a-jl/110498 "2024-03-09T22:43:19Z")

</div>

Dear all, I am new, so many things could be different than Matlab or any other C,C++,Fortran language here. But I experienced a weird behaviour. My script B.jl starts by including a function found in another script A.jl…

---

## [Makie.jl updating Observable causes "cannot convert a value to nothing for assignment"](https://discourse.julialang.org/t/makie-jl-updating-observable-causes-cannot-convert-a-value-to-nothing-for-assignment/111076)

<div class="topic-metadata">

**Author:** [@bryaan](https://discourse.julialang.org/u/bryaan)\
**Replies:** 3\
**Last updated:** [March 9, 2024, 9:10pm UTC](https://discourse.julialang.org/t/makie-jl-updating-observable-causes-cannot-convert-a-value-to-nothing-for-assignment/111076 "2024-03-09T21:10:15Z")

</div>

Since Makie does not have a mechanism for detecting axis limit updates I decided to make my own wrapper with Observables. I am having a strange error when triggering the notify in set\_xlims!. I think this is a deeper b…

---

## [@printf: significant digits in floating point representation](https://discourse.julialang.org/t/printf-significant-digits-in-floating-point-representation/29978)

<div class="topic-metadata">

**Author:** [@MatFi](https://discourse.julialang.org/u/MatFi)\
**Replies:** 12\
**Last updated:** [March 9, 2024, 8:58pm UTC](https://discourse.julialang.org/t/printf-significant-digits-in-floating-point-representation/29978 "2024-03-09T20:58:32Z")

</div>

hi i want tu use @sprintf to format a number to floating point representation with a fixed amount of significant digits how can I do that? The function shout act the following way: .000012340000 -\> 0.000012 .12340000…

---

## [BinaryBuild failure on Mac](https://discourse.julialang.org/t/binarybuild-failure-on-mac/111216)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 2\
**Last updated:** [March 9, 2024, 8:37pm UTC](https://discourse.julialang.org/t/binarybuild-failure-on-mac/111216 "2024-03-09T20:37:50Z")

</div>

Hi, I got an BinaryBuild compiler error on Mac (on Mac only) with /opt/x86\_64-apple-darwin14/x86\_64-apple-darwin14/sys-root/usr/include/hfs/hfs\_format.h:794:2: error: unknown type name 'uuid\_string\_t'; did you mean 'io…

---

## [Would it be possible to add a Julia package that exports notebooks in the Jupyter notebook extension of VSCode?](https://discourse.julialang.org/t/would-it-be-possible-to-add-a-julia-package-that-exports-notebooks-in-the-jupyter-notebook-extension-of-vscode/111394)

<div class="topic-metadata">

**Author:** [@xiaoxi](https://discourse.julialang.org/u/xiaoxi)\
**Replies:** 2\
**Last updated:** [March 9, 2024, 7:53pm UTC](https://discourse.julialang.org/t/would-it-be-possible-to-add-a-julia-package-that-exports-notebooks-in-the-jupyter-notebook-extension-of-vscode/111394 "2024-03-09T19:53:49Z")

</div>

The developers of the Jupyter notebook extension of VSCode may be revising the way Jupyter notebooks are exported. So, I wonder if there is a Julia package that could also export Jupyter notebooks and if the authors of…

---

## [Alternative to 7zip when installing packages](https://discourse.julialang.org/t/alternative-to-7zip-when-installing-packages/111141)

<div class="topic-metadata">

**Author:** [@jarroyoe](https://discourse.julialang.org/u/jarroyoe)\
**Replies:** 16\
**Last updated:** [March 9, 2024, 6:43pm UTC](https://discourse.julialang.org/t/alternative-to-7zip-when-installing-packages/111141 "2024-03-09T18:43:45Z")

</div>

I just started a job where 7zip is blocked as a potential security threat (I talked to IT about it and unblocking it is basically a nonnegotiable), which basically renders installing most packages impossible. Is there a…

---

## [How to solve a large quadratic programming problem](https://discourse.julialang.org/t/how-to-solve-a-large-quadratic-programming-problem/111200)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 39\
**Last updated:** [March 9, 2024, 6:10pm UTC](https://discourse.julialang.org/t/how-to-solve-a-large-quadratic-programming-problem/111200 "2024-03-09T18:10:58Z")

</div>

Hello everyone, I was looking for the most appropriate way to solve the following minimization problem in Julia. \\arg\\min ||g-K f||^2+α||f||^2\\equiv \\arg\\min \\frac{1}{2}f^T(K^T K+αI)f-g^TKf s.t. f\\geq0 (where K,I a…

---

## [Source location of a method defined by a macro](https://discourse.julialang.org/t/source-location-of-a-method-defined-by-a-macro/111402)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 0\
**Last updated:** [March 9, 2024, 6:02pm UTC](https://discourse.julialang.org/t/source-location-of-a-method-defined-by-a-macro/111402 "2024-03-09T18:02:31Z")

</div>

I’m having trouble getting the source location of a method definition to be correct. The method is defined by a macro. I would like for the source location of the method to be the location of the macro call, rather tha…

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

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