# Latest

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

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

**Page:** 1638

---

## [Adding "caps" (upper-bounded \`\[compat\]\` entries) to all packages in the General registry](https://discourse.julialang.org/t/adding-caps-upper-bounded-compat-entries-to-all-packages-in-the-general-registry/46244)

<div class="topic-metadata">

**Author:** [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 10:18am UTC](https://discourse.julialang.org/t/adding-caps-upper-bounded-compat-entries-to-all-packages-in-the-general-registry/46244 "2020-09-08T10:18:52Z")

</div>

We have used the RetroCap.jl package to add “caps” (upper-bounded \[compat\] entries) to all packages in the General registry. More specifically, for each package in the General registry, we iterate over each of the packa…

---

## [Problems trying to run JuMP and GLPK](https://discourse.julialang.org/t/problems-trying-to-run-jump-and-glpk/46175)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 4\
**Last updated:** [September 8, 2020, 8:08am UTC](https://discourse.julialang.org/t/problems-trying-to-run-jump-and-glpk/46175 "2020-09-08T08:08:53Z")

</div>

When I try to run JuMP packets, GLPK with the command using JuMP, GLPK I get the following alert: m = Model(GLPK.Optimizer) ERROR: MethodError: no method matching Model(::Type{GLPK.Optimizer}) Closest candidates are: …

---

## [Generate an array in a macro](https://discourse.julialang.org/t/generate-an-array-in-a-macro/22836)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 13\
**Last updated:** [September 8, 2020, 7:46am UTC](https://discourse.julialang.org/t/generate-an-array-in-a-macro/22836 "2020-09-08T07:46:07Z")

</div>

I have some variables, eg a=1;b=2;c=3; What I want is to generate an array (or tuple) of the following: \[("a", 1), ("b", 2), ("c", 3)\] So far I got the conversion for one variable macro convertarg(var) return …

---

## [Error when calling ScikitLearn from a function in a Package](https://discourse.julialang.org/t/error-when-calling-scikitlearn-from-a-function-in-a-package/46131)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 7\
**Last updated:** [September 8, 2020, 7:03am UTC](https://discourse.julialang.org/t/error-when-calling-scikitlearn-from-a-function-in-a-package/46131 "2020-09-08T07:03:13Z")

</div>

I have a function inside a package that I am writing, that looks like this: using ScikitLearn function logistic\_skl(points::AbstractMatrix{\<:Real}, labels::AbstractVector{Bool}) @sk\_import linear\_model: LogisticReg…

---

## [Three dots \`...\`](https://discourse.julialang.org/t/three-dots/46196)

<div class="topic-metadata">

**Author:** [@onButtonUp](https://discourse.julialang.org/u/onButtonUp)\
**Replies:** 12\
**Last updated:** [September 8, 2020, 6:53am UTC](https://discourse.julialang.org/t/three-dots/46196 "2020-09-08T06:53:09Z")

</div>

At various points in my exploration of Julia code, I find ... being used. For example, in help for symbol ?Symbol Symbol(x...) -\> Symbol And, currently, I’m using the following code that includes ... to create a data f…

---

## [\\cdot not printing properly in my REPL](https://discourse.julialang.org/t/cdot-not-printing-properly-in-my-repl/46194)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 6\
**Last updated:** [September 8, 2020, 6:37am UTC](https://discourse.julialang.org/t/cdot-not-printing-properly-in-my-repl/46194 "2020-09-08T06:37:38Z")

</div>

So in goofing around with matrices, I tried to do \\cdot\<tab\> in the REPL and expected the dot-symbol that can be used to compute the inner product. Instead, I got a question-mark in a box. It computes correctly, and when…

---

## [Adding SOS1 constraint problem](https://discourse.julialang.org/t/adding-sos1-constraint-problem/46209)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 10\
**Last updated:** [September 8, 2020, 5:57am UTC](https://discourse.julialang.org/t/adding-sos1-constraint-problem/46209 "2020-09-08T05:57:57Z")

</div>

I am trying to add a simple SOS1 constraint, but getting the following error MethodError: no method matching build\_constraint(::JuMP.var"#\_error#68"{Symbol}, ::Array{VariableRef,2}, ::SOS1) for @constrain…

---

## [How to choose a GPU - Please forgive the total noob question](https://discourse.julialang.org/t/how-to-choose-a-gpu-please-forgive-the-total-noob-question/44339)

<div class="topic-metadata">

**Author:** [@RussBowdrey](https://discourse.julialang.org/u/RussBowdrey)\
**Replies:** 23\
**Last updated:** [September 8, 2020, 4:27am UTC](https://discourse.julialang.org/t/how-to-choose-a-gpu-please-forgive-the-total-noob-question/44339 "2020-09-08T04:27:20Z")

</div>

So, I figured there would be some very well informed opinions on here for this rather basic (but essential question). I’ve had a quick look and can’t find a similar question. I appreciate the answer is likely to be “it …

---

## [Convert an array into Int](https://discourse.julialang.org/t/convert-an-array-into-int/26335)

<div class="topic-metadata">

**Author:** [@MuadhF](https://discourse.julialang.org/u/MuadhF)\
**Replies:** 10\
**Last updated:** [September 8, 2020, 1:58am UTC](https://discourse.julialang.org/t/convert-an-array-into-int/26335 "2020-09-08T01:58:14Z")

</div>

Hi, If I have an 2D array of multiple elements (named aux), how do I convert or ensure that they are integers? Also note that I didn’t create this array, it was copied from a dataframe, which was in turn taken from a C…

---

## [ODE where u and du are different sizes](https://discourse.julialang.org/t/ode-where-u-and-du-are-different-sizes/46213)

<div class="topic-metadata">

**Author:** [@klowrey](https://discourse.julialang.org/u/klowrey)\
**Replies:** 11\
**Last updated:** [September 8, 2020, 1:30am UTC](https://discourse.julialang.org/t/ode-where-u-and-du-are-different-sizes/46213 "2020-09-08T01:30:03Z")

</div>

I didn’t see an obvious solution in the docs so I thought I would ask: I have an ODE problem where the state is a different size than the change in state. Specifically, lets say my state of \[pos; vel\] includes a quatern…

---

## [Feeding solver parameters as a dictionary](https://discourse.julialang.org/t/feeding-solver-parameters-as-a-dictionary/46227)

<div class="topic-metadata">

**Author:** [@varun7rs](https://discourse.julialang.org/u/varun7rs)\
**Replies:** 2\
**Last updated:** [September 8, 2020, 12:06am UTC](https://discourse.julialang.org/t/feeding-solver-parameters-as-a-dictionary/46227 "2020-09-08T00:06:13Z")

</div>

I’d like to set solver parameters not manually but by just passing a dictionary and unpacking the keys and arguments using the splat operator. When I tried doing this: fRAN = Model(solver = GurobiSolver(parameters...)) …

---

## [Dual number is unidentified by OpenModelica while using user-defined function with autodiff in JuMP!](https://discourse.julialang.org/t/dual-number-is-unidentified-by-openmodelica-while-using-user-defined-function-with-autodiff-in-jump/45740)

<div class="topic-metadata">

**Author:** [@pandeysudan27](https://discourse.julialang.org/u/pandeysudan27)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 10:20pm UTC](https://discourse.julialang.org/t/dual-number-is-unidentified-by-openmodelica-while-using-user-defined-function-with-autodiff-in-jump/45740 "2020-09-07T22:20:45Z")

</div>

Hi, I am trying to solve a simple set point tracking MPC using JuMP. The model I am trying is \\frac{dx}{dt} =a+bsin(x). There is no issues in JuMP while discretizing it in Julia. However, when the model is used from …

---

## [Generating data with multiple index](https://discourse.julialang.org/t/generating-data-with-multiple-index/46223)

<div class="topic-metadata">

**Author:** [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 9:04pm UTC](https://discourse.julialang.org/t/generating-data-with-multiple-index/46223 "2020-09-07T21:04:08Z")

</div>

J= 3 #numeber of agents T = 24 # time horizon W= 100 #Numebr of scenario d\_jtw\_mean = \[50 ,70,90\] d\_jtw\_std = 0.25 d\_jtw\_sigma = d\_jtw\_std\*d\_jtw\_mean dd = MvNormal(d\_jtw\_mean, d\_jtw\_sigma) d\_jtw= rand(dd,W) which giv…

---

## [How to use a variable value inside @tullio](https://discourse.julialang.org/t/how-to-use-a-variable-value-inside-tullio/46172)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 12\
**Last updated:** [September 7, 2020, 8:12pm UTC](https://discourse.julialang.org/t/how-to-use-a-variable-value-inside-tullio/46172 "2020-09-07T20:12:54Z")

</div>

What’s the proper syntax to get this to run? using Tullio function ugh(tf::Bool) X = randn(10000,100) y = zeros(100) @tullio threads=tf y\[j\] = X\[i,j\] end ugh(true)

---

## [Simple discrete event simulation in Julia](https://discourse.julialang.org/t/simple-discrete-event-simulation-in-julia/46013)

<div class="topic-metadata">

**Author:** [@DrDoug](https://discourse.julialang.org/u/DrDoug)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 7:38pm UTC](https://discourse.julialang.org/t/simple-discrete-event-simulation-in-julia/46013 "2020-09-07T19:38:45Z")

</div>

I am porting a process-based discrete simulation DSL from Racket into Julia and am beginning by developing a very simple (almost trivial) sample to make sure I understand using tasks to represent simulation processes and…

---

## [\[feedback\] Make Julia as Pythonic as possible](https://discourse.julialang.org/t/feedback-make-julia-as-pythonic-as-possible/46216)

<div class="topic-metadata">

**Author:** [@newtojulia](https://discourse.julialang.org/u/newtojulia)\
**Replies:** 11\
**Last updated:** [September 7, 2020, 7:25pm UTC](https://discourse.julialang.org/t/feedback-make-julia-as-pythonic-as-possible/46216 "2020-09-07T19:25:36Z")

</div>

I was searching for best programming language which format and syntaxes like Python but as fast as c programming. I found Julia, and i am very thankful to that. But seeing those codes, Julia programming have stepper lea…

---

## [WeakRef semantics](https://discourse.julialang.org/t/weakref-semantics/46217)

<div class="topic-metadata">

**Author:** [@Christian\_Rorvik](https://discourse.julialang.org/u/Christian_Rorvik)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 6:47pm UTC](https://discourse.julialang.org/t/weakref-semantics/46217 "2020-09-07T18:47:13Z")

</div>

I recently discovered WeakRef can reach its target post-finalization, which I think can lead to a lot of unintended bugs, and was curious where this design choice arose. Left a comment here, with more details. In brief,…

---

## [Getting the benchmarked speedup from Distances.jl](https://discourse.julialang.org/t/getting-the-benchmarked-speedup-from-distances-jl/46170)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 8\
**Last updated:** [September 7, 2020, 6:08pm UTC](https://discourse.julialang.org/t/getting-the-benchmarked-speedup-from-distances-jl/46170 "2020-09-07T18:08:34Z")

</div>

I am studying the possibility of using Distances.jl to accelerate the computation of Euclidean distances between atom coordinates in a package, but I am not getting something right, because my simple loops perform better…

---

## [Convert LightXML array to XMLElement?](https://discourse.julialang.org/t/convert-lightxml-array-to-xmlelement/46163)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [September 7, 2020, 6:05pm UTC](https://discourse.julialang.org/t/convert-lightxml-array-to-xmlelement/46163 "2020-09-07T18:05:36Z")

</div>

Hello! Suppose I have: using LightXML e = new\_element("a") e\_arr = \[e;e\] How would I then go about converting e\_arr from Array{LightXML,1} to LightXML? Kind regards

---

## [Testing performance of functions that are 'parametric over input collections'](https://discourse.julialang.org/t/testing-performance-of-functions-that-are-parametric-over-input-collections/46206)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 5:28pm UTC](https://discourse.julialang.org/t/testing-performance-of-functions-that-are-parametric-over-input-collections/46206 "2020-09-07T17:28:36Z")

</div>

I have the following MWE for two methods: addUnits1 is parametric in the type of an input vector, while addUnits2 gives the parameters of the individual elements of the input vector. struct Myunit{X,Y} x::X y::Y…

---

## [Complete End-to-end guide for professional Julia development guide](https://discourse.julialang.org/t/complete-end-to-end-guide-for-professional-julia-development-guide/46174)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 5:15pm UTC](https://discourse.julialang.org/t/complete-end-to-end-guide-for-professional-julia-development-guide/46174 "2020-09-07T17:15:04Z")

</div>

I find that it’s actually hard to find info on how to do professional Julia development from end to end. By that I mean How to set up a Julia repo on Github/Gitlab (use PkgTemplates.jl) What to include in the repo to …

---

## [The speed of light is an integer. Why should we care?](https://discourse.julialang.org/t/the-speed-of-light-is-an-integer-why-should-we-care/40108)

<div class="topic-metadata">

**Author:** [@gevis](https://discourse.julialang.org/u/gevis)\
**Replies:** 78\
**Last updated:** [September 7, 2020, 3:55pm UTC](https://discourse.julialang.org/t/the-speed-of-light-is-an-integer-why-should-we-care/40108 "2020-09-07T15:55:35Z")

</div>

Since 1983, the speed of light is defined to be exactly equal to 299,792,458 meters per second. So, it seems natural to define it as an integer while doing some culculations with Julia, for example, to calculate a Planck…

---

## [Boolean false filter in update selection query](https://discourse.julialang.org/t/boolean-false-filter-in-update-selection-query/46203)

<div class="topic-metadata">

**Author:** [@yoh-meyers](https://discourse.julialang.org/u/yoh-meyers)\
**Replies:** 5\
**Last updated:** [September 7, 2020, 3:26pm UTC](https://discourse.julialang.org/t/boolean-false-filter-in-update-selection-query/46203 "2020-09-07T15:26:46Z")

</div>

Hello, Am trying to update values in a dataframe as follows: df\[ ( df\[!, :country\] .== country && !df\[!, :bool\] ), :value \] = value However I receive error that non-boolean value is used i…

---

## [Use of CartesianIndices with CUDA?](https://discourse.julialang.org/t/use-of-cartesianindices-with-cuda/42160)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 3:01pm UTC](https://discourse.julialang.org/t/use-of-cartesianindices-with-cuda/42160 "2020-09-07T15:01:10Z")

</div>

Hi, I have a function that iterates over all elements of a four-dimenasional array full of CartesianIndices elements 21×31×41×51 Array{CartesianIndex{4},4}: \[:, :, 1, 1\] = CartesianIndex(1, 1, 1, 1) … CartesianInde…

---

## [Mac's AMD GPU](https://discourse.julialang.org/t/macs-amd-gpu/33014)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 61\
**Last updated:** [September 7, 2020, 2:34pm UTC](https://discourse.julialang.org/t/macs-amd-gpu/33014 "2020-09-07T14:34:18Z")

</div>

the new Mac Pro seems to be very powerful and can be equipped with multiple powerful AMD GPUs. But OpenCL.jl seems very inactive. do we have any chance to unleash the power of Mac’s GPU using Julia? (Mac is not supporti…

---

## [Issue with FFMPEG and libk5crypto.so.3](https://discourse.julialang.org/t/issue-with-ffmpeg-and-libk5crypto-so-3/46197)

<div class="topic-metadata">

**Author:** [@CodeLenz](https://discourse.julialang.org/u/CodeLenz)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 1:27pm UTC](https://discourse.julialang.org/t/issue-with-ffmpeg-and-libk5crypto-so-3/46197 "2020-09-07T13:27:00Z")

</div>

Hi. Stock Julia 1.5.1. Fresh install, empty .julia so far. (@v1.5) pkg\> add FFMPEG Updating registry at \`~/.julia/registries/General\` Resolving package versions... Updating \`~/.julia/environments/v1.5/Project.toml…

---

## [ANN: new GridapBifurcationKit](https://discourse.julialang.org/t/ann-new-gridapbifurcationkit/46142)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 0\
**Last updated:** [September 6, 2020, 1:57pm UTC](https://discourse.julialang.org/t/ann-new-gridapbifurcationkit/46142 "2020-09-06T13:57:23Z")

</div>

Dear all, I am happy to announce a new package GridapBifurcationKit.jl which allows to perform bifurcation analysis of PDE using the FEM implemented in Gridap.jl. In effect, this is just a wrapper of BifurcationKit.jl …

---

## [Custom debugging with macro programming](https://discourse.julialang.org/t/custom-debugging-with-macro-programming/46191)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 11:18am UTC](https://discourse.julialang.org/t/custom-debugging-with-macro-programming/46191 "2020-09-07T11:18:23Z")

</div>

How would I do the following the right way? for sym in (:debugging, :debugging\_str) @eval macro $sym(ex) quote $(esc(println(Dates.now(UTC), ":\\t", ex))) end end end Sometimes if I u…

---

## [netcdf.DLL library not found on Windows Server 2016](https://discourse.julialang.org/t/netcdf-dll-library-not-found-on-windows-server-2016/46072)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 3\
**Last updated:** [September 7, 2020, 11:14am UTC](https://discourse.julialang.org/t/netcdf-dll-library-not-found-on-windows-server-2016/46072 "2020-09-07T11:14:46Z")

</div>

I am trying to read an exodus file using the NetCDF package. If I only add the NetCDF package to my environment than it works fine. However, when I add the package MATLAB to my environment then I get an error message rel…

---

## [How can I save this data with CSV?](https://discourse.julialang.org/t/how-can-i-save-this-data-with-csv/46159)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 5\
**Last updated:** [September 7, 2020, 10:53am UTC](https://discourse.julialang.org/t/how-can-i-save-this-data-with-csv/46159 "2020-09-07T10:53:46Z")

</div>

I am confused about the CSV way of writing files. My problem is really simple: I have two arrays and I want to save them in a .csv file, but I also want the following column names above my data: Voltage \[V\] and Current…

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

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