# Latest

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

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

**Page:** 1030

---

## [\[ANN\] ICD\_GEMs.jl: A Package to Translate Between ICD-9 and ICD-10 Codes](https://discourse.julialang.org/t/ann-icd-gems-jl-a-package-to-translate-between-icd-9-and-icd-10-codes/81679)

<div class="topic-metadata">

**Author:** [@PietroMonticone](https://discourse.julialang.org/u/PietroMonticone)\
**Replies:** 6\
**Last updated:** [May 26, 2022, 5:05pm UTC](https://discourse.julialang.org/t/ann-icd-gems-jl-a-package-to-translate-between-icd-9-and-icd-10-codes/81679 "2022-05-26T17:05:10Z")

</div>

We’re glad to announce ICD\_GEMs.jl: a package that allows to translate ICD-9 codes in ICD-10 and viceversa via the General Equivalence Mappings (GEMs) of the International Classification of Diseases (ICD). The package e…

---

## [How to obtain numerical values of observed variables after structural simplification?](https://discourse.julialang.org/t/how-to-obtain-numerical-values-of-observed-variables-after-structural-simplification/81639)

<div class="topic-metadata">

**Author:** [@Vinicius\_Viena](https://discourse.julialang.org/u/Vinicius_Viena)\
**Replies:** 7\
**Last updated:** [May 26, 2022, 4:31pm UTC](https://discourse.julialang.org/t/how-to-obtain-numerical-values-of-observed-variables-after-structural-simplification/81639 "2022-05-26T16:31:12Z")

</div>

Hi there. I am quite new to Julia and sorry if this question is too silly, but here it goes. I have used the modelingtoolkitize function to convert my discretized PDE to symbolic form and then used the strucutural\_simpl…

---

## [How to add methods to a function](https://discourse.julialang.org/t/how-to-add-methods-to-a-function/81730)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 4:14pm UTC](https://discourse.julialang.org/t/how-to-add-methods-to-a-function/81730 "2022-05-26T16:14:27Z")

</div>

Suppose it has the task of writing a function that splits a given string at the points where there is a character change from one from to another to set. To delimit the context, suppose that the from and the to can be d…

---

## [Is Julia comprehension not a function call?](https://discourse.julialang.org/t/is-julia-comprehension-not-a-function-call/81541)

<div class="topic-metadata">

**Author:** [@juliafriend](https://discourse.julialang.org/u/juliafriend)\
**Replies:** 5\
**Last updated:** [May 26, 2022, 4:08pm UTC](https://discourse.julialang.org/t/is-julia-comprehension-not-a-function-call/81541 "2022-05-26T16:08:33Z")

</div>

If I parse a list comprehension as such: The head isn’t a Symbol call but literally a comprehension. Is call for all non-built-in functions? The first Arg for comprehension Expr isn’t a Symbol but an expression.…

---

## [Extreme compute slowness after using PLuto/Franklin?](https://discourse.julialang.org/t/extreme-compute-slowness-after-using-pluto-franklin/64542)

<div class="topic-metadata">

**Author:** [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Replies:** 9\
**Last updated:** [May 26, 2022, 4:06pm UTC](https://discourse.julialang.org/t/extreme-compute-slowness-after-using-pluto-franklin/64542 "2022-05-26T16:06:18Z")

</div>

Hi, I’m hesitating to make this post because I know how vague it is but the fact is that this already happened to me 6 times. After using Pluto, and happened also once with Franklin, my computer becomes extremely slow.…

---

## [How do I structure this correctly in my package?](https://discourse.julialang.org/t/how-do-i-structure-this-correctly-in-my-package/81726)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 5\
**Last updated:** [May 26, 2022, 4:05pm UTC](https://discourse.julialang.org/t/how-do-i-structure-this-correctly-in-my-package/81726 "2022-05-26T16:05:49Z")

</div>

Hello! I have made a small package here: In this package I have a folder structure such as: - src - geometry.jl - main.jl - main\_package.jl - math\_vectors.jl In which I try to split …

---

## [Something I like about Julia that I dont have with other langs](https://discourse.julialang.org/t/something-i-like-about-julia-that-i-dont-have-with-other-langs/81727)

<div class="topic-metadata">

**Author:** [@kodintent](https://discourse.julialang.org/u/kodintent)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 3:28pm UTC](https://discourse.julialang.org/t/something-i-like-about-julia-that-i-dont-have-with-other-langs/81727 "2022-05-26T15:28:12Z")

</div>

Hi. Ive settled into using Julia for my general scripting needs. And i realized that theres something that makes it really nice for me to use. I understand all the code i use. With other languages, i quickly encountere…

---

## [\[ANN\] UnrollingAverages.jl: A Package to Deconvolve Time Series Data](https://discourse.julialang.org/t/ann-unrollingaverages-jl-a-package-to-deconvolve-time-series-data/81684)

<div class="topic-metadata">

**Author:** [@claudio20497](https://discourse.julialang.org/u/claudio20497)\
**Replies:** 0\
**Last updated:** [May 25, 2022, 9:46pm UTC](https://discourse.julialang.org/t/ann-unrollingaverages-jl-a-package-to-deconvolve-time-series-data/81684 "2022-05-25T21:46:31Z")

</div>

We’re happy to announce UnrollingAverages.jl: a package aimed at deconvolving (or unrolling) moving averages of time series to get the original ones back. In the following, by “original series” or “series” we are going …

---

## [Including files within a single module](https://discourse.julialang.org/t/including-files-within-a-single-module/81729)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 1\
**Last updated:** [May 26, 2022, 3:53pm UTC](https://discourse.julialang.org/t/including-files-within-a-single-module/81729 "2022-05-26T15:53:36Z")

</div>

I’m wondering if there are any general views on the cleanest way to combine files within a module. I have at present three types: Parent, Child1 and Child2. Parent is a synonym for AbstractArray{Complex}, and Child1 and C…

---

## [Need Help to implement my loss function](https://discourse.julialang.org/t/need-help-to-implement-my-loss-function/81724)

<div class="topic-metadata">

**Author:** [@Hupdup](https://discourse.julialang.org/u/Hupdup)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 2:13pm UTC](https://discourse.julialang.org/t/need-help-to-implement-my-loss-function/81724 "2022-05-26T14:13:40Z")

</div>

Hi I want to implement a loss function for the weight-update of the neural network in my Reinforcement learning (DQN) project. The Q Value of the next state should be estimated by my target network (yellow mark) wheras…

---

## [Reflection API for Union types](https://discourse.julialang.org/t/reflection-api-for-union-types/81612)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 7\
**Last updated:** [May 26, 2022, 2:55pm UTC](https://discourse.julialang.org/t/reflection-api-for-union-types/81612 "2022-05-26T14:55:32Z")

</div>

Are there any methods to inspect Union types? Ex: julia\> y::Union{Number,Nothing} = nothing julia\> typeof(y) Nothing 1/ how to find out the fact that y is a Union? 2/ how to get the types supported by the Union (Num…

---

## [Select color range for heatmap](https://discourse.julialang.org/t/select-color-range-for-heatmap/81589)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 5\
**Last updated:** [May 26, 2022, 2:55pm UTC](https://discourse.julialang.org/t/select-color-range-for-heatmap/81589 "2022-05-26T14:55:14Z")

</div>

Hello, I want to plot the values of a “big” matrix using plots. The matrix is on a .txt file and I do the following: using DelimitedFiles, Plots, LinearAlgebra, Pyplot writedlm( "MyFile.txt", values, ' ') t1 = readdlm…

---

## [Why can't I use any Unicode character in field name?](https://discourse.julialang.org/t/why-cant-i-use-any-unicode-character-in-field-name/81715)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 8\
**Last updated:** [May 26, 2022, 2:34pm UTC](https://discourse.julialang.org/t/why-cant-i-use-any-unicode-character-in-field-name/81715 "2022-05-26T14:34:41Z")

</div>

Hello! I am just trying this: struct Vec{Ti \<: Number, Tj \<: Number, Tk \<: Number} ₁::Ti ₂::Tj ₃::Tk end And it does not work for these unicode characters, but works for something like “\\bb…

---

## [How to wrap MetaGraphsNext.MetaDiGraph effectively?](https://discourse.julialang.org/t/how-to-wrap-metagraphsnext-metadigraph-effectively/81718)

<div class="topic-metadata">

**Author:** [@seamsay](https://discourse.julialang.org/u/seamsay)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 1:40pm UTC](https://discourse.julialang.org/t/how-to-wrap-metagraphsnext-metadigraph-effectively/81718 "2022-05-26T13:40:09Z")

</div>

So I need a DAG for a project but I’m really struggling to wrap MetaDiGraph in a wrapper struct to ensure that it is in fact a DAG. I eventually gave up and just left it untyped but this has been really bothering ever si…

---

## [Define coupled ODE solution as differentiable](https://discourse.julialang.org/t/define-coupled-ode-solution-as-differentiable/81708)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 1:38pm UTC](https://discourse.julialang.org/t/define-coupled-ode-solution-as-differentiable/81708 "2022-05-26T13:38:12Z")

</div>

I have a variable A defined by an ODE, and I want to treat the solution as an explicit differentiable function of time so I can tie it in with some other code. For example m\*Ä+k\*A = f(A,t) where m,k are the mass and …

---

## [To provide Jacobian in non-linear solver, time-stepping or Jacobian](https://discourse.julialang.org/t/to-provide-jacobian-in-non-linear-solver-time-stepping-or-jacobian/81632)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 12:52pm UTC](https://discourse.julialang.org/t/to-provide-jacobian-in-non-linear-solver-time-stepping-or-jacobian/81632 "2022-05-26T12:52:20Z")

</div>

Is there a good example showing that the effort of providing the Jacobian to either a non-linear solver, a time-stepping solver or an optimization solver does pay off in reducing the number of (non-linear, right-hand sid…

---

## [Can we find a DDe's canstant from a table](https://discourse.julialang.org/t/can-we-find-a-ddes-canstant-from-a-table/81676)

<div class="topic-metadata">

**Author:** [@Achraf\_el\_fadli](https://discourse.julialang.org/u/Achraf_el_fadli)\
**Replies:** 6\
**Last updated:** [May 26, 2022, 12:35pm UTC](https://discourse.julialang.org/t/can-we-find-a-ddes-canstant-from-a-table/81676 "2022-05-26T12:35:33Z")

</div>

for finding a,b,c the most compatible with the model

---

## [Making Plots place its legend in a better spot](https://discourse.julialang.org/t/making-plots-place-its-legend-in-a-better-spot/74986)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 18\
**Last updated:** [May 26, 2022, 10:27am UTC](https://discourse.julialang.org/t/making-plots-place-its-legend-in-a-better-spot/74986 "2022-05-26T10:27:21Z")

</div>

Apparently this is a feature, or not of the backend, and Plots sends legend=:best to them. PyPlot should place the legend in a nice position by default, avoiding the data, but GR apparently does not have this feature. I…

---

## [For-loop over two arrays, sequentially](https://discourse.julialang.org/t/for-loop-over-two-arrays-sequentially/81699)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 9:18am UTC](https://discourse.julialang.org/t/for-loop-over-two-arrays-sequentially/81699 "2022-05-26T09:18:55Z")

</div>

I want to write code like this: for i in vcat(vector1, vector2) do\_something(i) end But I want to avoid the allocation of a new array in vcat. What’s a good way to do this?

---

## [Convert string into Cmd object](https://discourse.julialang.org/t/convert-string-into-cmd-object/81691)

<div class="topic-metadata">

**Author:** [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 1:48am UTC](https://discourse.julialang.org/t/convert-string-into-cmd-object/81691 "2022-05-26T01:48:04Z")

</div>

How can i convert a string like "command arg1 arg2 --opt1=value --flag" into a Cmd object and run that command?

---

## [How to translate bash to .bat](https://discourse.julialang.org/t/how-to-translate-bash-to-bat/81652)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 25\
**Last updated:** [May 26, 2022, 1:43am UTC](https://discourse.julialang.org/t/how-to-translate-bash-to-bat/81652 "2022-05-26T01:43:41Z")

</div>

I have a bash script to create a Julia system image. (KiteSimulators.jl/create\_sys\_image at main · aenarete/KiteSimulators.jl · GitHub) Now I want to convert it to a .bat file for windows users. How could I translate th…

---

## [Nice blogpost comparing Julia w/ 6 other languages to solve a Logistic DE](https://discourse.julialang.org/t/nice-blogpost-comparing-julia-w-6-other-languages-to-solve-a-logistic-de/81623)

<div class="topic-metadata">

**Author:** [@Albert\_Zevelev](https://discourse.julialang.org/u/Albert_Zevelev)\
**Replies:** 24\
**Last updated:** [May 26, 2022, 12:46am UTC](https://discourse.julialang.org/t/nice-blogpost-comparing-julia-w-6-other-languages-to-solve-a-logistic-de/81623 "2022-05-26T00:46:57Z")

</div>

Recent discussions of blog posts here tended to be of posts critical of Julia. Some of the criticism is fair, some not-so-much. (Btw I’m impressed at how the community looks for constructive feedback to improve). I th…

---

## [Arithmetic broadcasting in Julia 5x slower than MATLAB](https://discourse.julialang.org/t/arithmetic-broadcasting-in-julia-5x-slower-than-matlab/81628)

<div class="topic-metadata">

**Author:** [@elenev](https://discourse.julialang.org/u/elenev)\
**Replies:** 17\
**Last updated:** [May 26, 2022, 12:46am UTC](https://discourse.julialang.org/t/arithmetic-broadcasting-in-julia-5x-slower-than-matlab/81628 "2022-05-26T00:46:42Z")

</div>

I was surprised to find a fairly simple broadcasting operation on somewhat large arrays be considerably slower in Julia relative to MATLAB. Is there some unattainable level of optimization that folks at MathWorks have fi…

---

## [Streaming data represented on webpage dataframe or array?](https://discourse.julialang.org/t/streaming-data-represented-on-webpage-dataframe-or-array/81660)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [May 26, 2022, 12:06am UTC](https://discourse.julialang.org/t/streaming-data-represented-on-webpage-dataframe-or-array/81660 "2022-05-26T00:06:48Z")

</div>

Hi all I have ZMQ streaming data and want to represent it using a webpage. The data has an update frequency of about 100 per second. It’s completely float64 and contains other information that represents the ROW, COLUMN…

---

## [Is there a function to permute columns or rows of a matrix in place?](https://discourse.julialang.org/t/is-there-a-function-to-permute-columns-or-rows-of-a-matrix-in-place/81667)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 2\
**Last updated:** [May 25, 2022, 8:09pm UTC](https://discourse.julialang.org/t/is-there-a-function-to-permute-columns-or-rows-of-a-matrix-in-place/81667 "2022-05-25T20:09:35Z")

</div>

Slicing works to create a permuted copy. But, is there some way to get the permutation in-place?

---

## [Should a = \[0\]; a\[\[1,1\]\]+=\[1,2\] cause a==\[3\]?](https://discourse.julialang.org/t/should-a-0-a-1-1-1-2-cause-a-3/81669)

<div class="topic-metadata">

**Author:** [@skraemer](https://discourse.julialang.org/u/skraemer)\
**Replies:** 8\
**Last updated:** [May 25, 2022, 9:18pm UTC](https://discourse.julialang.org/t/should-a-0-a-1-1-1-2-cause-a-3/81669 "2022-05-25T21:18:45Z")

</div>

To repeat the title, should a = \[0\]; a\[\[1,1\]\]+=\[1,2\] update the array a such that a==\[3\]? This is not really a pressing issue, but changing to this kind of interpretation would be helpful in some cases when dealing with…

---

## [JuMP writeMPS does not finish writing LP model to file](https://discourse.julialang.org/t/jump-writemps-does-not-finish-writing-lp-model-to-file/81427)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 20\
**Last updated:** [May 25, 2022, 8:31pm UTC](https://discourse.julialang.org/t/jump-writemps-does-not-finish-writing-lp-model-to-file/81427 "2022-05-25T20:31:40Z")

</div>

I’m trying to save a large linear program model created with JuMP v0.18.5 in Julia v0.6.4 to a .mps file on disk using writeMPS, but the file maxes out quickly at 711MB and the Julia script trying to write the file event…

---

## [Dynamic expreesion name in JuMP](https://discourse.julialang.org/t/dynamic-expreesion-name-in-jump/80995)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 4\
**Last updated:** [May 25, 2022, 2:15pm UTC](https://discourse.julialang.org/t/dynamic-expreesion-name-in-jump/80995 "2022-05-25T14:15:11Z")

</div>

Hi All, is there a way to create dynamic expression name in Julia? like the code given below Julia 1.2 mod2=Model() @variable(mod2,x\[ i in 1:13\]) @variable(mod2,y\[ i in 1:13\]) @constraint(mod2, \[i in 1:13\], x\[i\]+y\[i\]\>=…

---

## [Can this equation be modeled by julia](https://discourse.julialang.org/t/can-this-equation-be-modeled-by-julia/81527)

<div class="topic-metadata">

**Author:** [@Achraf\_el\_fadli](https://discourse.julialang.org/u/Achraf_el_fadli)\
**Replies:** 25\
**Last updated:** [May 25, 2022, 8:15pm UTC](https://discourse.julialang.org/t/can-this-equation-be-modeled-by-julia/81527 "2022-05-25T20:15:56Z")

</div>

---

## [@code\_warntype with StaticArrays](https://discourse.julialang.org/t/code-warntype-with-staticarrays/81673)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 1\
**Last updated:** [May 25, 2022, 7:23pm UTC](https://discourse.julialang.org/t/code-warntype-with-staticarrays/81673 "2022-05-25T19:23:44Z")

</div>

I am initializing a MVector and MMatrix from StaticArrays inside a function as follows function test(v::Vector{T}) where{T\<:Real} n = length(v) myvec = MVector{n, T}(undef) mymat = MMatrix{n, n, T}(undef) .…

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

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