# Latest

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

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

**Page:** 395

---

## [Control Plots draw order with multiple y-axes](https://discourse.julialang.org/t/control-plots-draw-order-with-multiple-y-axes/115223)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 11:40am UTC](https://discourse.julialang.org/t/control-plots-draw-order-with-multiple-y-axes/115223 "2024-06-05T11:40:31Z")

</div>

I’m trying to make a line plot vs the right y-axis and a bar plot on the left y-axis using twinx and I run into the problem that the bars obscure the line plot. Is there any way to make Plots draw the line plot on top o…

---

## [Any expert on food chemistry here? Can sugar not be added but transformed from carbohydrates?](https://discourse.julialang.org/t/any-expert-on-food-chemistry-here-can-sugar-not-be-added-but-transformed-from-carbohydrates/115124)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 17\
**Last updated:** [June 5, 2024, 11:00am UTC](https://discourse.julialang.org/t/any-expert-on-food-chemistry-here-can-sugar-not-be-added-but-transformed-from-carbohydrates/115124 "2024-06-05T11:00:34Z")

</div>

Any expert on food chemistry here? Just a question is still roaming my mind and ChatGPT is of no help: I bought a “vegan milk” recently, marketed as “no added sugar” and where the ingredient list reads as: Water, Spelt…

---

## [Heavy macro use or not?](https://discourse.julialang.org/t/heavy-macro-use-or-not/115097)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 24\
**Last updated:** [June 5, 2024, 8:51am UTC](https://discourse.julialang.org/t/heavy-macro-use-or-not/115097 "2024-06-05T08:51:49Z")

</div>

Julia macros are powerful, capable of creating its own DSLs and so on. However, the generated code can be really hard to predict. Some could argue that the bird eye’s view of the code functionality is more important than…

---

## [Integration within ModelingToolkit Models](https://discourse.julialang.org/t/integration-within-modelingtoolkit-models/115015)

<div class="topic-metadata">

**Author:** [@HSnowden](https://discourse.julialang.org/u/HSnowden)\
**Replies:** 6\
**Last updated:** [June 5, 2024, 7:26am UTC](https://discourse.julialang.org/t/integration-within-modelingtoolkit-models/115015 "2024-06-05T07:26:22Z")

</div>

Hello, Sorry I am asking so many questions on here. I would like to be able to integrate part of an equation within a MTK model so that each time step the integration is performed with the current variables and paramete…

---

## [Specify names of states and parameters in ODEProblem?](https://discourse.julialang.org/t/specify-names-of-states-and-parameters-in-odeproblem/115145)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 6\
**Last updated:** [June 5, 2024, 6:24am UTC](https://discourse.julialang.org/t/specify-names-of-states-and-parameters-in-odeproblem/115145 "2024-06-05T06:24:46Z")

</div>

Here’s a simple problem I have where I couldn’t find any documentation; I’d like to specify the parameter names of the states and parameters to SciML’s ODEFunction e.g. using Dict(:u =\> \[:S, :I, :R\], :p =\> \[:β, :c, :γ\]).…

---

## [Eigenvectors for a selected subset of eigenvalues](https://discourse.julialang.org/t/eigenvectors-for-a-selected-subset-of-eigenvalues/115213)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 0\
**Last updated:** [June 5, 2024, 6:23am UTC](https://discourse.julialang.org/t/eigenvectors-for-a-selected-subset-of-eigenvalues/115213 "2024-06-05T06:23:11Z")

</div>

I would like to accelerate some calculations based on dense eigen spectra (non-Hermitian Matrix of dimension O(10^4)), where I’m only interested in some subset of eigenvalues (unfortunately in the middle of the spectrum,…

---

## [Getting rid of allocations when copying data from one row to another](https://discourse.julialang.org/t/getting-rid-of-allocations-when-copying-data-from-one-row-to-another/115211)

<div class="topic-metadata">

**Author:** [@GreyAerin](https://discourse.julialang.org/u/GreyAerin)\
**Replies:** 3\
**Last updated:** [June 5, 2024, 6:07am UTC](https://discourse.julialang.org/t/getting-rid-of-allocations-when-copying-data-from-one-row-to-another/115211 "2024-06-05T06:07:58Z")

</div>

I’m writing model code that requires me to replace the border values with the opposite domain values (our domain is everything but the border of the matrix) and since we have to run this value swap every iteration, I was…

---

## [How to incorporate time dependent interpolation functions while solving ensemble parameter estimation problem?](https://discourse.julialang.org/t/how-to-incorporate-time-dependent-interpolation-functions-while-solving-ensemble-parameter-estimation-problem/115121)

<div class="topic-metadata">

**Author:** [@Piyush](https://discourse.julialang.org/u/Piyush)\
**Replies:** 4\
**Last updated:** [June 5, 2024, 4:37am UTC](https://discourse.julialang.org/t/how-to-incorporate-time-dependent-interpolation-functions-while-solving-ensemble-parameter-estimation-problem/115121 "2024-06-05T04:37:21Z")

</div>

Hi everyone, Data interpolation functions/ objects are not part of the ODE function in my code and also not the part of the parameter list. Example: function V(du, u, p, t) du\[1\] = Rate(t) du\[2\] = p\[1\]\*u\[1\] +…

---

## [Solidworks output from final desiggn](https://discourse.julialang.org/t/solidworks-output-from-final-desiggn/115196)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 3\
**Last updated:** [June 4, 2024, 9:52pm UTC](https://discourse.julialang.org/t/solidworks-output-from-final-desiggn/115196 "2024-06-04T21:52:21Z")

</div>

Hi , I am doing topology optimization using gridap. I want the final design in solidworks format to make it ready for 3d printing. i have my final design as density field. how can i have the solidworks output? thank you …

---

## [Declare tuple type of arbitrary length](https://discourse.julialang.org/t/declare-tuple-type-of-arbitrary-length/115199)

<div class="topic-metadata">

**Author:** [@bsuwal](https://discourse.julialang.org/u/bsuwal)\
**Replies:** 0\
**Last updated:** [June 4, 2024, 9:41pm UTC](https://discourse.julialang.org/t/declare-tuple-type-of-arbitrary-length/115199 "2024-06-04T21:41:45Z")

</div>

Is there any way I can declare a type for my dictionary with a tuple of the same element type but of arbitrary length? For example I can currently do this: d = Dict{Tuple{Int, Int}, String}() d\[(1, 2)\] = "a" and get a…

---

## [IO type that wraps an AbstractVector{UInt8}?](https://discourse.julialang.org/t/io-type-that-wraps-an-abstractvector-uint8/114987)

<div class="topic-metadata">

**Author:** [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Replies:** 4\
**Last updated:** [May 31, 2024, 11:18pm UTC](https://discourse.julialang.org/t/io-type-that-wraps-an-abstractvector-uint8/114987 "2024-05-31T23:18:59Z")

</div>

Besides IOBuffer, which doesn’t support all AbstractVector{UInt8}, is there an existing package with a type that wraps a vector of bytes as a read-only seekable IO?

---

## [Github compile locally?](https://discourse.julialang.org/t/github-compile-locally/115167)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 5\
**Last updated:** [June 4, 2024, 9:33pm UTC](https://discourse.julialang.org/t/github-compile-locally/115167 "2024-06-04T21:33:52Z")

</div>

I am using VS Code with the Julia extension, Git (and GitKraken – vg but not free). Every time I make a change and recompile, the machine handshakes with github for a while until the recompiled version is available loca…

---

## [ModelingToolkit doesn't precompile any more](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [June 4, 2024, 9:26pm UTC](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548 "2024-06-04T21:26:55Z")

</div>

A few days ago, I installed some new packages (AbstractAlgebra, Nemo, Groebner). I also tried to install Oscar. When I tried to compile Oscar, I was told it doesn’t run on Windows, and I removed it. Since then, Modeling…

---

## [Julia v1.10.4 has been released](https://discourse.julialang.org/t/julia-v1-10-4-has-been-released/115197)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [June 4, 2024, 9:00pm UTC](https://discourse.julialang.org/t/julia-v1-10-4-has-been-released/115197 "2024-06-04T21:00:31Z")

</div>

Julia version 1.10.4, the fourth patch release in the 1.10 series of releases, is now available. Binaries are available via Juliaup and at https://julialang.org/downloads/ for macOS (Intel and M-series processors), Windo…

---

## [Wrapping make-generated artifacts in Julia package](https://discourse.julialang.org/t/wrapping-make-generated-artifacts-in-julia-package/115195)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 8:56pm UTC](https://discourse.julialang.org/t/wrapping-make-generated-artifacts-in-julia-package/115195 "2024-06-04T20:56:42Z")

</div>

I’m looking for some advice on approaches to this: I have an existing repo containing a Python package. The fact that it’s Python is maybe incidental - the package basically creates some artifacts (which happen to be JSO…

---

## [Show operator precedence?](https://discourse.julialang.org/t/show-operator-precedence/115143)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 9\
**Last updated:** [June 4, 2024, 8:22pm UTC](https://discourse.julialang.org/t/show-operator-precedence/115143 "2024-06-04T20:22:28Z")

</div>

In the old days, I used to use a handy utility every once in a while to show how the parser interprets operator precedence: % perl -MO=Deparse,-p -e '$x \< 3 && $y \< 7' (($x \< 3) and ($y \< 7)); I’ve always found this a…

---

## [Using subscript to index an array](https://discourse.julialang.org/t/using-subscript-to-index-an-array/115190)

<div class="topic-metadata">

**Author:** [@bsuwal](https://discourse.julialang.org/u/bsuwal)\
**Replies:** 4\
**Last updated:** [June 4, 2024, 7:34pm UTC](https://discourse.julialang.org/t/using-subscript-to-index-an-array/115190 "2024-06-04T19:34:05Z")

</div>

Is there any macro or functionality that would allow me to index the elements of an array by subscript? For eg if I had an array: A = \[1, 2, 3\] I would like to have code such as: for i=1:length(A) A\\\_i = A\\\_i \* 3…

---

## [Changing the the bounds for base.rand Float outputs](https://discourse.julialang.org/t/changing-the-the-bounds-for-base-rand-float-outputs/115186)

<div class="topic-metadata">

**Author:** [@ApproximateTruth](https://discourse.julialang.org/u/ApproximateTruth)\
**Replies:** 4\
**Last updated:** [June 4, 2024, 7:30pm UTC](https://discourse.julialang.org/t/changing-the-the-bounds-for-base-rand-float-outputs/115186 "2024-06-04T19:30:39Z")

</div>

Hey new to julia and wondering how to augment the bounds of the base.rand() function for Float64 numbers, I’m trying to get (-1,1) as the new min and max. I checked the documentation on this page and it isn’t clear to m…

---

## [How to use @byrow inside @chain pipeline?](https://discourse.julialang.org/t/how-to-use-byrow-inside-chain-pipeline/115184)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 5:36pm UTC](https://discourse.julialang.org/t/how-to-use-byrow-inside-chain-pipeline/115184 "2024-06-04T17:36:01Z")

</div>

I am trying to organize a pipeline for data processing using the @chain macro. However, I have a problem with using @byrow macro inside this pipeline. I get an error saying that @byrow is deprecated outside of DataFrames…

---

## [Unsure why a function isn't assigning a new value to a view](https://discourse.julialang.org/t/unsure-why-a-function-isnt-assigning-a-new-value-to-a-view/115182)

<div class="topic-metadata">

**Author:** [@GreyAerin](https://discourse.julialang.org/u/GreyAerin)\
**Replies:** 5\
**Last updated:** [June 4, 2024, 4:44pm UTC](https://discourse.julialang.org/t/unsure-why-a-function-isnt-assigning-a-new-value-to-a-view/115182 "2024-06-04T16:44:16Z")

</div>

I am writing code that goes through an array and does a calculation on each element, with the results previous calculations being used for future ones. I have a function that did this one index at a time, step!, and it …

---

## [CompatHelper?](https://discourse.julialang.org/t/compathelper/115090)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 8\
**Last updated:** [June 4, 2024, 3:15pm UTC](https://discourse.julialang.org/t/compathelper/115090 "2024-06-04T15:15:38Z")

</div>

I’m getting this error and I have no idea what it means. What is this? remote: Permission to sloisel/MultiGridBarrier.jl.git denied to github-actions\[bot\]. fatal: unable to access 'https://github.com/sloisel/MultiGridBa…

---

## [Parameter Estimation 10 dimensional ODE using Turing.jl for 0/1 data](https://discourse.julialang.org/t/parameter-estimation-10-dimensional-ode-using-turing-jl-for-0-1-data/115115)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 6\
**Last updated:** [June 4, 2024, 1:45pm UTC](https://discourse.julialang.org/t/parameter-estimation-10-dimensional-ode-using-turing-jl-for-0-1-data/115115 "2024-06-04T13:45:01Z")

</div>

Hi, I am trying to estimate the parameters of a ODE model, the model is N equations that represent a metapopulation, where at each node you have the probability of presence at time t. I want to compare this with the obs…

---

## [Simultaneous movement of agents with EventQueueABM?](https://discourse.julialang.org/t/simultaneous-movement-of-agents-with-eventqueueabm/115168)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 1:15pm UTC](https://discourse.julialang.org/t/simultaneous-movement-of-agents-with-eventqueueabm/115168 "2024-06-04T13:15:24Z")

</div>

For my current output it seems particles movements are sequential in nature though I want it to be simultaneously. It looks like they are stepping rather then floating. Main thing you would want to look into my move!…

---

## [How to decrease number of allocations when using NLSolve.jl?](https://discourse.julialang.org/t/how-to-decrease-number-of-allocations-when-using-nlsolve-jl/115164)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 8\
**Last updated:** [June 4, 2024, 1:07pm UTC](https://discourse.julialang.org/t/how-to-decrease-number-of-allocations-when-using-nlsolve-jl/115164 "2024-06-04T13:07:10Z")

</div>

With reference to my last post , I am trying to solve a set of non-linear equations known as the Coupled Cluster Equations in Quantum Chemistry using the NLSolve.jl package. As per the reply of @alfaromartino , in the sa…

---

## [Continuous time (EventQueueABM) Agent based model - Method Error](https://discourse.julialang.org/t/continuous-time-eventqueueabm-agent-based-model-method-error/115163)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 11:41am UTC](https://discourse.julialang.org/t/continuous-time-eventqueueabm-agent-based-model-method-error/115163 "2024-06-04T11:41:54Z")

</div>

Hello, Im working on this following example where I want particles to just move around and thats all to get started. Though I got Error even before a proper start. Will be helpful if someone can point cause. Im sure its …

---

## [For .... if ... syntax?](https://discourse.julialang.org/t/for-if-syntax/64559)

<div class="topic-metadata">

**Author:** [@dstarerstor](https://discourse.julialang.org/u/dstarerstor)\
**Replies:** 10\
**Last updated:** [June 3, 2024, 5:43pm UTC](https://discourse.julialang.org/t/for-if-syntax/64559 "2024-06-03T17:43:40Z")

</div>

I was just wondering what thoughts people have on the following syntax for iter if cond #stuff here end which would basically be short for for iter if cond #stuff here end end Obviously this isn’t…

---

## [\[ANN\] DispatchDoctor.jl 🩺 – offers you a prescription for type stability](https://discourse.julialang.org/t/ann-dispatchdoctor-jl-offers-you-a-prescription-for-type-stability/114837)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 45\
**Last updated:** [June 4, 2024, 11:39am UTC](https://discourse.julialang.org/t/ann-dispatchdoctor-jl-offers-you-a-prescription-for-type-stability/114837 "2024-06-04T11:39:13Z")

</div>

Announcing… DispatchDoctor :stethoscope: The doctor’s orders: no type instability allowed! This experimental package provides the @stable macro to enforce that functions have type stable return values. using D…

---

## [How to employ nlsolve() to a function which has parameters which are difficult to calculate](https://discourse.julialang.org/t/how-to-employ-nlsolve-to-a-function-which-has-parameters-which-are-difficult-to-calculate/115126)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 3\
**Last updated:** [June 4, 2024, 11:31am UTC](https://discourse.julialang.org/t/how-to-employ-nlsolve-to-a-function-which-has-parameters-which-are-difficult-to-calculate/115126 "2024-06-04T11:31:58Z")

</div>

Basically, I am trying to solve the Coupled Cluster Equations using Julia and the package NLsolve which can be used to solve such nonlinear equations. My initial strategy was to define a function as follows that accepts …

---

## [Incorrect interpolation on non regular grid](https://discourse.julialang.org/t/incorrect-interpolation-on-non-regular-grid/115161)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 11:16am UTC](https://discourse.julialang.org/t/incorrect-interpolation-on-non-regular-grid/115161 "2024-06-04T11:16:51Z")

</div>

I am trying to interpolate a point in 3-dimensional array with arbitrary spacing (distance between each point in real world coordinates). I had used scaled interpolation from Interpolations.jl . However as code below sho…

---

## [Change Column Names of a DataFrame - Previous methods don't work](https://discourse.julialang.org/t/change-column-names-of-a-dataframe-previous-methods-dont-work/48026)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 11\
**Last updated:** [June 4, 2024, 11:09am UTC](https://discourse.julialang.org/t/change-column-names-of-a-dataframe-previous-methods-dont-work/48026 "2024-06-04T11:09:43Z")

</div>

Apologies for the repeat of old question, but most of the posts on this question seem to give outdated/nonfunctional solutions for defining or updating the column names of a DataFrame. DataFrame(datamat,names) or name…

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

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