# Latest

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

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

**Page:** 816

---

## [Can not add Pkgs tag: buildbot ; worker ; workdir](https://discourse.julialang.org/t/can-not-add-pkgs-tag-buildbot-worker-workdir/92633)

<div class="topic-metadata">

**Author:** [@ajsagit](https://discourse.julialang.org/u/ajsagit)\
**Replies:** 2\
**Last updated:** [January 11, 2023, 4:04pm UTC](https://discourse.julialang.org/t/can-not-add-pkgs-tag-buildbot-worker-workdir/92633 "2023-01-11T16:04:58Z")

</div>

Alway works fine but recently when \] and up or add CSV / other add \[pkgs\] returns errs and the process of Julia.exe crashed. Windows 10 x64, Windows11 x64 Julia 1.7~1.84 TIA.

---

## [Extending a system with a constant parameter to allow parameter to vary](https://discourse.julialang.org/t/extending-a-system-with-a-constant-parameter-to-allow-parameter-to-vary/92566)

<div class="topic-metadata">

**Author:** [@ctessum](https://discourse.julialang.org/u/ctessum)\
**Replies:** 5\
**Last updated:** [January 11, 2023, 3:48pm UTC](https://discourse.julialang.org/t/extending-a-system-with-a-constant-parameter-to-allow-parameter-to-vary/92566 "2023-01-11T15:48:56Z")

</div>

Hello! Let’s say I have a ModelingToolkit system that has a constant parameter, for example a falling object with a constant mass: function newton() @parameters g = -9.8 @parameters m = 1.0 @variables t …

---

## [Isolate single species when plotting ensemble problem](https://discourse.julialang.org/t/isolate-single-species-when-plotting-ensemble-problem/92784)

<div class="topic-metadata">

**Author:** [@Dragolonth](https://discourse.julialang.org/u/Dragolonth)\
**Replies:** 3\
**Last updated:** [January 11, 2023, 2:57pm UTC](https://discourse.julialang.org/t/isolate-single-species-when-plotting-ensemble-problem/92784 "2023-01-11T14:57:39Z")

</div>

Hi everyone. I’ve created an ensemble problem for a reaction network with many species. However, currently, the plot shows each trajectory for each species. For example, my reaction network has 19 species, so when I spec…

---

## [Retrieving the contents of C composite types](https://discourse.julialang.org/t/retrieving-the-contents-of-c-composite-types/92749)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 14\
**Last updated:** [January 11, 2023, 3:17pm UTC](https://discourse.julialang.org/t/retrieving-the-contents-of-c-composite-types/92749 "2023-01-11T15:17:43Z")

</div>

Hi! I wrote a wrapper to a C function that defines its output as a structure, defined as follows in the associated .h file: typedef struct { double lat; double lon; } MTKt\_GeoCoord; typedef struct { MTKt\_GeoCoor…

---

## [Running julia file](https://discourse.julialang.org/t/running-julia-file/92799)

<div class="topic-metadata">

**Author:** [@nero](https://discourse.julialang.org/u/nero)\
**Replies:** 2\
**Last updated:** [January 11, 2023, 2:09pm UTC](https://discourse.julialang.org/t/running-julia-file/92799 "2023-01-11T14:09:55Z")

</div>

Greetings I have faced the following error: @DESKTOP-J----T:/mnt/c/Users/MYDRIV~1/SOFTWA~1/DUO\_EX~1/V9\_COR~1/Julia/PEC/ADDING~1$ include(“B\_input.jl”) bash: syntax error near unexpected token \`“B\_input.jl”’ Can someo…

---

## [Delete a specific row and Colum in matrix](https://discourse.julialang.org/t/delete-a-specific-row-and-colum-in-matrix/92754)

<div class="topic-metadata">

**Author:** [@ahmad88](https://discourse.julialang.org/u/ahmad88)\
**Replies:** 13\
**Last updated:** [January 11, 2023, 12:54pm UTC](https://discourse.julialang.org/t/delete-a-specific-row-and-colum-in-matrix/92754 "2023-01-11T12:54:21Z")

</div>

I have a matrix of size nn and I have a list containing specific nodes in the graph in each iteration I have to remove the specific row and corresponding column based on the value in the list, how do I can know the speci…

---

## [Hello if you have time can you please look at my code , i am finding this error ArgumentError: invalid index: 0.0 of type Float64 i would really appreciate thanks](https://discourse.julialang.org/t/hello-if-you-have-time-can-you-please-look-at-my-code-i-am-finding-this-error-argumenterror-invalid-index-0-0-of-type-float64-i-would-really-appreciate-thanks/92770)

<div class="topic-metadata">

**Author:** [@BILEHGUELLEHSAHAL](https://discourse.julialang.org/u/BILEHGUELLEHSAHAL)\
**Replies:** 5\
**Last updated:** [January 11, 2023, 11:13am UTC](https://discourse.julialang.org/t/hello-if-you-have-time-can-you-please-look-at-my-code-i-am-finding-this-error-argumenterror-invalid-index-0-0-of-type-float64-i-would-really-appreciate-thanks/92770 "2023-01-11T11:13:11Z")

</div>

using Turing using DifferentialEquations using Plots # Define the differential equation model for the microgrid system function microgrid\_model(dx, x, p, t) P\_pv, P\_wt, P\_dg, P\_load = x A\_pv, R\_pv, A\_wt, R\_wt, A\_d…

---

## [Unitful: parsing currencies](https://discourse.julialang.org/t/unitful-parsing-currencies/84705)

<div class="topic-metadata">

**Author:** [@stepanzh](https://discourse.julialang.org/u/stepanzh)\
**Replies:** 5\
**Last updated:** [January 11, 2023, 10:54am UTC](https://discourse.julialang.org/t/unitful-parsing-currencies/84705 "2023-01-11T10:54:42Z")

</div>

I have a table with cash operations. String representation of an operation contains a value and a currency name, e.g. 1.5 US$ or 1.5 RUB. I’ve decided to use Unitful.jl: Defining new units for keeping different currencie…

---

## [Equivalent of https://bookdown.org/ in Julia?](https://discourse.julialang.org/t/equivalent-of-https-bookdown-org-in-julia/13993)

<div class="topic-metadata">

**Author:** [@hgeorgako](https://discourse.julialang.org/u/hgeorgako)\
**Replies:** 12\
**Last updated:** [January 11, 2023, 10:05am UTC](https://discourse.julialang.org/t/equivalent-of-https-bookdown-org-in-julia/13993 "2023-01-11T10:05:49Z")

</div>

The bookdown R package provides a convenient workflow for writing technical documents/books. It also supports Julia in the markup files. Is there an equivalent workflow in Julia?

---

## [Capture \`DataType\` in closure](https://discourse.julialang.org/t/capture-datatype-in-closure/92752)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 7\
**Last updated:** [January 11, 2023, 9:41am UTC](https://discourse.julialang.org/t/capture-datatype-in-closure/92752 "2023-01-11T09:41:04Z")

</div>

Why is it apparently not possible to capture a DataType inside a closure in a typestable manner? Consider function create\_closure1(data) bufT = eltype(data) (i) -\> begin buf = Vector{bufT}(undef,1) …

---

## [Source for the 5-character hash in $HOME/.julia/packages/\<pkgname\>/](https://discourse.julialang.org/t/source-for-the-5-character-hash-in-home-julia-packages-pkgname/92793)

<div class="topic-metadata">

**Author:** [@harris-chris](https://discourse.julialang.org/u/harris-chris)\
**Replies:** 2\
**Last updated:** [January 11, 2023, 8:08am UTC](https://discourse.julialang.org/t/source-for-the-5-character-hash-in-home-julia-packages-pkgname/92793 "2023-01-11T08:08:05Z")

</div>

Hello all, I notice that each package in my $HOME/.julia/packages/\<pkgname\>/ folder has what looks like a 5-character hash code - for example, $HOME/.julia/packages/HTTP/aTjcj. Can anyone tell me how this hash is derive…

---

## [\[ANN\] HMMGradients.jl](https://discourse.julialang.org/t/ann-hmmgradients-jl/54542)

<div class="topic-metadata">

**Author:** [@nantonel](https://discourse.julialang.org/u/nantonel)\
**Replies:** 2\
**Last updated:** [January 11, 2023, 7:54am UTC](https://discourse.julialang.org/t/ann-hmmgradients-jl/54542 "2023-01-11T07:54:27Z")

</div>

I’m happy to announce HMMGradients.jl! This package makes it possible to use gradient descent optimization to learn the parameters of Hidden Markov Models (HMMs). These optimization techniques allow the use of deep neura…

---

## [What is ? mark in Julia?](https://discourse.julialang.org/t/what-is-mark-in-julia/92776)

<div class="topic-metadata">

**Author:** [@Kianoush\_Ramezani\_sh](https://discourse.julialang.org/u/Kianoush_Ramezani_sh)\
**Replies:** 4\
**Last updated:** [January 11, 2023, 6:42am UTC](https://discourse.julialang.org/t/what-is-mark-in-julia/92776 "2023-01-11T06:42:48Z")

</div>

e.g. what does it do here: pow2(x, n) = n \<= 0 ? 1 : x\*pow2(x, n-1) or here minmax(xx, y) = (y \< xx) ? (y, xx) : (xx, y)

---

## [Implementing broadcasting for a nested \`Vector\` with a scalar](https://discourse.julialang.org/t/implementing-broadcasting-for-a-nested-vector-with-a-scalar/92760)

<div class="topic-metadata">

**Author:** [@loonatick-src](https://discourse.julialang.org/u/loonatick-src)\
**Replies:** 7\
**Last updated:** [January 11, 2023, 6:36am UTC](https://discourse.julialang.org/t/implementing-broadcasting-for-a-nested-vector-with-a-scalar/92760 "2023-01-11T06:36:50Z")

</div>

Say I have a struct one of whose members has the type RaggedVector{T} = Vector{Vector{T}} And if we construct two conformal instances of this type xs = \[\[1, 2, 3\], \[4\], \[5, 6\]\] ys = \[\[6, 5, 4\], \[3\], …

---

## [Cannot Read LP file](https://discourse.julialang.org/t/cannot-read-lp-file/92787)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 2\
**Last updated:** [January 11, 2023, 5:11am UTC](https://discourse.julialang.org/t/cannot-read-lp-file/92787 "2023-01-11T05:11:16Z")

</div>

read\_from\_file throws an error when trying to read an LP file (min\_max\_overlap\_Gen8.lp, which is 1.6 MB and is comprised of 33,885 lines), representing a MILP. SCIP on the NEOS Server is able to read and solve the LP fil…

---

## [How to automatically load typedef and macro definition from .h files of C language?](https://discourse.julialang.org/t/how-to-automatically-load-typedef-and-macro-definition-from-h-files-of-c-language/92790)

<div class="topic-metadata">

**Author:** [@baizhan](https://discourse.julialang.org/u/baizhan)\
**Replies:** 1\
**Last updated:** [January 11, 2023, 3:42am UTC](https://discourse.julialang.org/t/how-to-automatically-load-typedef-and-macro-definition-from-h-files-of-c-language/92790 "2023-01-11T03:42:37Z")

</div>

Hello, I am learning Julia language and trying to use some external C library. Although it is easy to call C functions using ccall, it is quite difficult to handle the different typedef’s and macro define’s of a certain…

---

## [How to set data which are in the same group has the same palette color in \`RecipesBase.jl\`?](https://discourse.julialang.org/t/how-to-set-data-which-are-in-the-same-group-has-the-same-palette-color-in-recipesbase-jl/92785)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 0\
**Last updated:** [January 11, 2023, 2:07am UTC](https://discourse.julialang.org/t/how-to-set-data-which-are-in-the-same-group-has-the-same-palette-color-in-recipesbase-jl/92785 "2023-01-11T02:07:58Z")

</div>

It is similar to the following question: How to set colours for groups of elements on a plot - New to Julia - Julia Programming Language For example, I have two groups of data: one is labeled as “22” and one is labeled…

---

## [Loo cv to Bayesian Estimation of Differential Equations (challenge)](https://discourse.julialang.org/t/loo-cv-to-bayesian-estimation-of-differential-equations-challenge/92773)

<div class="topic-metadata">

**Author:** [@RMF](https://discourse.julialang.org/u/RMF)\
**Replies:** 11\
**Last updated:** [January 11, 2023, 2:06am UTC](https://discourse.julialang.org/t/loo-cv-to-bayesian-estimation-of-differential-equations-challenge/92773 "2023-01-11T02:06:41Z")

</div>

Loo cv to Bayesian Estimation of Differential Equations (challenge) applying cross validation with paretoSmooth.jl loo(model,chain)to models written in turing.jl works great, except for estimation in ODE(Bayesian Estima…

---

## [Docs workspace from Project.toml targets and extras?](https://discourse.julialang.org/t/docs-workspace-from-project-toml-targets-and-extras/92732)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 2\
**Last updated:** [January 11, 2023, 1:32am UTC](https://discourse.julialang.org/t/docs-workspace-from-project-toml-targets-and-extras/92732 "2023-01-11T01:32:34Z")

</div>

I feel that I shouldn’t need to maintain a separate environment (Project and Manifest files) for my documentation build, but rather should be able to do it using the target and extras entries in the root Project.toml. I…

---

## [Sampling gives chains which converge to two different distributions in ODE example of TuringTutorials](https://discourse.julialang.org/t/sampling-gives-chains-which-converge-to-two-different-distributions-in-ode-example-of-turingtutorials/92734)

<div class="topic-metadata">

**Author:** [@Manuel\_Eguia](https://discourse.julialang.org/u/Manuel_Eguia)\
**Replies:** 4\
**Last updated:** [January 11, 2023, 12:54am UTC](https://discourse.julialang.org/t/sampling-gives-chains-which-converge-to-two-different-distributions-in-ode-example-of-turingtutorials/92734 "2023-01-11T00:54:31Z")

</div>

I was trying to sample the posterior for the parameters and initial condition of a very simple ODE taking the example from https://turing.ml/v0.21/tutorials/10-bayesian-differential-equations/ as a model, and I was alw…

---

## [PrettyTables.jl =\> Font Type and Size](https://discourse.julialang.org/t/prettytables-jl-font-type-and-size/92782)

<div class="topic-metadata">

**Author:** [@lgmendes](https://discourse.julialang.org/u/lgmendes)\
**Replies:** 0\
**Last updated:** [January 10, 2023, 11:31pm UTC](https://discourse.julialang.org/t/prettytables-jl-font-type-and-size/92782 "2023-01-10T23:31:37Z")

</div>

How can I change the font type and size of the HTML output generated using PrettyTables.jl and presented in Pluto? It is possible to rotate the text of the header 45º degrees? begin data=fill(1.0,4,4) header=\[“aaaa…

---

## [Raw files in PowerModels](https://discourse.julialang.org/t/raw-files-in-powermodels/60479)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 1\
**Last updated:** [January 10, 2023, 11:36pm UTC](https://discourse.julialang.org/t/raw-files-in-powermodels/60479 "2023-01-10T23:36:55Z")

</div>

Hello! I am starting to use PowerModels and I’d like to run power flow calculations using input raw files. However, the raw files I have as an example are written in version 32, and PowerModels requires version 33 of PT…

---

## [In multithreading, how to make each thread pick the first/smallest available element?](https://discourse.julialang.org/t/in-multithreading-how-to-make-each-thread-pick-the-first-smallest-available-element/92678)

<div class="topic-metadata">

**Author:** [@Leo\_I](https://discourse.julialang.org/u/Leo_I)\
**Replies:** 13\
**Last updated:** [January 10, 2023, 10:07pm UTC](https://discourse.julialang.org/t/in-multithreading-how-to-make-each-thread-pick-the-first-smallest-available-element/92678 "2023-01-10T22:07:56Z")

</div>

I start julia in Linux terminal with julia -t 6. The code Threads.@threads for i=1:100 println(i," ",Threads.threadid()); sleep(3); end on my 6-core CPU returns 18 2 52 1 35 4 69 6 85 3 1 5 70 6 53 1…

---

## [Is there something so I can play a noise when Julia finished running? Like I have](https://discourse.julialang.org/t/is-there-something-so-i-can-play-a-noise-when-julia-finished-running-like-i-have/55107)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 5\
**Last updated:** [January 10, 2023, 8:52pm UTC](https://discourse.julialang.org/t/is-there-something-so-i-can-play-a-noise-when-julia-finished-running-like-i-have/55107 "2023-01-10T20:52:45Z")

</div>

is there something so I can play a noise when Julia finished running? Like I have a function function foo(beta) beta\[1\].^2.0 - beta\[2\].^0.5 #Function that pops off a sound noise() #Does this exist? end and…

---

## [How do you read structures from a file?](https://discourse.julialang.org/t/how-do-you-read-structures-from-a-file/92646)

<div class="topic-metadata">

**Author:** [@Zweta\_Fuze](https://discourse.julialang.org/u/Zweta_Fuze)\
**Replies:** 18\
**Last updated:** [January 10, 2023, 8:33pm UTC](https://discourse.julialang.org/t/how-do-you-read-structures-from-a-file/92646 "2023-01-10T20:33:11Z")

</div>

Good wishes for the New year. I want to read data that are coming from a device. These data are organized in frames with a fixed structure each one. To give an example I want to read a file “Data.dat” with 100 frames. I…

---

## [How to call a column in DataFrame that has a space in the name](https://discourse.julialang.org/t/how-to-call-a-column-in-dataframe-that-has-a-space-in-the-name/92687)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 10\
**Last updated:** [January 10, 2023, 8:10pm UTC](https://discourse.julialang.org/t/how-to-call-a-column-in-dataframe-that-has-a-space-in-the-name/92687 "2023-01-10T20:10:14Z")

</div>

Silly question here but just wondering how do you call a column in a DataFrame that has a space in its name? e.g dfs = DataFrame(Symbol("first") =\> \[6,7,8,9\], Symbol("first last") =\> \[1,2,3,4\]) 4×2 DataFrame Row │ fi…

---

## [Map! using row iteration for output](https://discourse.julialang.org/t/map-using-row-iteration-for-output/92768)

<div class="topic-metadata">

**Author:** [@prittjam](https://discourse.julialang.org/u/prittjam)\
**Replies:** 0\
**Last updated:** [January 10, 2023, 7:13pm UTC](https://discourse.julialang.org/t/map-using-row-iteration-for-output/92768 "2023-01-10T19:13:18Z")

</div>

why is this not possible? Given typeof((u₁,u₂)) Tuple{Vector{SVector{3, Float64}}, Vector{SVector{3, Float64}}} and typeof(M) MMatrix{8, 9, Float64, 72} (alias for MArray{Tuple{8, 9}, Float64, 2, 72}) I want to fill…

---

## [On the market](https://discourse.julialang.org/t/on-the-market/89949)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 6\
**Last updated:** [January 10, 2023, 7:18pm UTC](https://discourse.julialang.org/t/on-the-market/89949 "2023-01-10T19:18:52Z")

</div>

Hello all, My current funding is nearing an end, and I’m starting to look around for what’s next. Now for some shameless self-promotion… I’m the lead developer of Soss.jl and MeasureTheory.jl, as well as 14 other regis…

---

## [Benign data races?](https://discourse.julialang.org/t/benign-data-races/92424)

<div class="topic-metadata">

**Author:** [@pitsianis](https://discourse.julialang.org/u/pitsianis)\
**Replies:** 2\
**Last updated:** [January 10, 2023, 5:52pm UTC](https://discourse.julialang.org/t/benign-data-races/92424 "2023-01-10T17:52:59Z")

</div>

Somebody, please elaborate on the dangers alluded to by the manual in section “Data-race freedom” Julia is not memory safe in the presence of a data race. Be very careful about reading any data if another thread might …

---

## [Conditional logit (clogit) in Julia?](https://discourse.julialang.org/t/conditional-logit-clogit-in-julia/64215)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [January 10, 2023, 5:39pm UTC](https://discourse.julialang.org/t/conditional-logit-clogit-in-julia/64215 "2023-01-10T17:39:20Z")

</div>

Given it isn’t at all my subject, a colleague of mine interested in Julia asked if there is a Julia package that implements the “conditional logit” model, similar to the clogit function in R survival package. Having br…

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

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