# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=331

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

**Page:** 332

---

## [\[GitHub.jl\] Getting the list of languages from a github repository](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455)

<div class="topic-metadata">

**Author:** [@Azzaare](https://discourse.julialang.org/u/Azzaare)\
**Replies:** 2\
**Last updated:** [June 6, 2021, 1:54am UTC](https://discourse.julialang.org/t/github-jl-getting-the-list-of-languages-from-a-github-repository/62455 "2021-06-06T01:54:39Z")

</div>

I am a bit lost on how to make a custom request to the GitHub API to get the list of languages of a repo. Any idea? The API link is here: Repositories - GitHub Docs

---

## [Makie: vlines! and mouse events](https://discourse.julialang.org/t/makie-vlines-and-mouse-events/69321)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 8:32pm UTC](https://discourse.julialang.org/t/makie-vlines-and-mouse-events/69321 "2021-10-06T20:32:49Z")

</div>

Hi, another Julia moment which lasts too long. Got stuck when trying to change the manual example to a vertical crosshair: using GLMakie GLMakie.activate!() fig, ax, p = scatter(rand(Point2f0, 100)) pos = Node(\[Point…

---

## [Makie: What is a scene?](https://discourse.julialang.org/t/makie-what-is-a-scene/69326)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 7:49pm UTC](https://discourse.julialang.org/t/makie-what-is-a-scene/69326 "2021-10-06T19:49:33Z")

</div>

Could not answer the question after reading What is a Scene ? Who can explain in simple terms where scenes fit in a mental picture of Makie? The manual puts them close to a container, the code below suggests them being…

---

## [Grouping consecutive sick days](https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 14\
**Last updated:** [October 6, 2021, 7:09pm UTC](https://discourse.julialang.org/t/grouping-consecutive-sick-days/69133 "2021-10-06T19:09:27Z")

</div>

The following is a “real problem” in the sense that it has been posted in a forum with reference to a real situation. Therefore the starting data are not pretty settled. I have (or almost … missing, in fact, the additi…

---

## [Out-of-bounds error when calling map!](https://discourse.julialang.org/t/out-of-bounds-error-when-calling-map/69053)

<div class="topic-metadata">

**Author:** [@JAgho](https://discourse.julialang.org/u/JAgho)\
**Replies:** 17\
**Last updated:** [October 6, 2021, 1:49pm UTC](https://discourse.julialang.org/t/out-of-bounds-error-when-calling-map/69053 "2021-10-06T13:49:46Z")

</div>

I’m using CUDA.jl to carry out some diffusion simulations. It’s a pretty standard setup, but makes fairly heavy use of rem and mod to bin particles to cells in a grid. To this end, we call map! on a pair of F32 CuArrays,…

---

## [Any Julia package to compute the Standardized Precipitation Index (SPI)?](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 12:33pm UTC](https://discourse.julialang.org/t/any-julia-package-to-compute-the-standardized-precipitation-index-spi/69286 "2021-10-06T12:33:26Z")

</div>

Any package in Julia to compute the Standardized Precipitation Index (SPI) ? I had a (quick) look at ClimateTools.jl but couldn’t find it there…

---

## [Error in NL expression UndefVarError: exp1 not defined](https://discourse.julialang.org/t/error-in-nl-expression-undefvarerror-exp1-not-defined/68780)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 2\
**Last updated:** [October 6, 2021, 3:52am UTC](https://discourse.julialang.org/t/error-in-nl-expression-undefvarerror-exp1-not-defined/68780 "2021-10-06T03:52:56Z")

</div>

Hi All, is there a way to use NL expression from nested loops? outside nested loops example code using JuMP model=Model() @variable(model,x) xy=1 for z in 1:10 if z==1 if xy\>=1 @NLexpression(model,exp1,x^3) …

---

## [How to register the name of anonymous variable to certain model?](https://discourse.julialang.org/t/how-to-register-the-name-of-anonymous-variable-to-certain-model/69273)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 1\
**Last updated:** [October 6, 2021, 3:47am UTC](https://discourse.julialang.org/t/how-to-register-the-name-of-anonymous-variable-to-certain-model/69273 "2021-10-06T03:47:49Z")

</div>

Hi all, I cannot view the anonymous variable in the model, when I use the following method: julia\> model = Model() A JuMP Model Feasibility problem with: Variables: 0 Model mode: AUTOMATIC CachingOptimizer state: NO\_OP…

---

## [Extremely low values of barrier term mu in Fminbox](https://discourse.julialang.org/t/extremely-low-values-of-barrier-term-mu-in-fminbox/69264)

<div class="topic-metadata">

**Author:** [@Gabriel\_Kreindler](https://discourse.julialang.org/u/Gabriel_Kreindler)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 10:36pm UTC](https://discourse.julialang.org/t/extremely-low-values-of-barrier-term-mu-in-fminbox/69264 "2021-10-05T22:36:01Z")

</div>

I am puzzled by Fminbox decreasing mu (the barier penalty term) to extremely low values. I do not quite understand why this happens and how I can control it. I run something like (note in case it’s relevant that my\_obj\_…

---

## [System modeling workflow example](https://discourse.julialang.org/t/system-modeling-workflow-example/67612)

<div class="topic-metadata">

**Author:** [@holmesthinking](https://discourse.julialang.org/u/holmesthinking)\
**Replies:** 5\
**Last updated:** [October 5, 2021, 7:51pm UTC](https://discourse.julialang.org/t/system-modeling-workflow-example/67612 "2021-10-05T19:51:26Z")

</div>

Hi, I have some experience in Simulink but I want to do stuff in Julia (ModelingToolkit). I’m searching for examples of simple system models for example two water tanks and pump or something similar in complexity. I wo…

---

## [Plots.jl mask values in heatmap](https://discourse.julialang.org/t/plots-jl-mask-values-in-heatmap/69223)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 6:01pm UTC](https://discourse.julialang.org/t/plots-jl-mask-values-in-heatmap/69223 "2021-10-05T18:01:02Z")

</div>

I’m trying to mask out some values of a rectangular array in a heatmap. It seems like it should be easy using alpha… heatmap(rand(10,10),alpha=rand(10,10) .\> 0.5) But this blanks out stripes instead of individual ce…

---

## [How to correctly use heatmap with 3 vectors as input?](https://discourse.julialang.org/t/how-to-correctly-use-heatmap-with-3-vectors-as-input/69191)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 6\
**Last updated:** [October 5, 2021, 5:11pm UTC](https://discourse.julialang.org/t/how-to-correctly-use-heatmap-with-3-vectors-as-input/69191 "2021-10-05T17:11:18Z")

</div>

When using heatmap as the example shows: using CairoMakie xls = range(0, 10, length = 25) yls = range(0, 15, length = 25) zm = \[cos(x) \* sin(y) for x in xs, y in ys\] heatmap(xls, yls, zm) I can get the result expect…

---

## [Batched multiplication with CuSparseMatrix isn't working](https://discourse.julialang.org/t/batched-multiplication-with-cusparsematrix-isnt-working/69210)

<div class="topic-metadata">

**Author:** [@Michael\_Birk](https://discourse.julialang.org/u/Michael_Birk)\
**Replies:** 6\
**Last updated:** [October 5, 2021, 3:35pm UTC](https://discourse.julialang.org/t/batched-multiplication-with-cusparsematrix-isnt-working/69210 "2021-10-05T15:35:39Z")

</div>

Applying batched\_mul from NNlib/NNlibCUDA to a CuArray tensor and a CuSparseMatrix matrix falls back to the generic method and performs scalar indexing. Is there a GPU-efficient way to broadcast multiplication of a CuSpa…

---

## [Argument "tgrad" in ODEFunction appears to have no influence. Correct?](https://discourse.julialang.org/t/argument-tgrad-in-odefunction-appears-to-have-no-influence-correct/69236)

<div class="topic-metadata">

**Author:** [@Andrey](https://discourse.julialang.org/u/Andrey)\
**Replies:** 2\
**Last updated:** [October 5, 2021, 2:53pm UTC](https://discourse.julialang.org/t/argument-tgrad-in-odefunction-appears-to-have-no-influence-correct/69236 "2021-10-05T14:53:44Z")

</div>

\[Question replicated from DifferentialEquations Lobby at JuliaDiffEq/Lobby - Gitter \] Hi All. I have got a question to the “DifferentialEquations” and “ModelingToolbox” Pkg developers, probably the right addressees are…

---

## [Abstract Branch and Bound API for MIP](https://discourse.julialang.org/t/abstract-branch-and-bound-api-for-mip/4691)

<div class="topic-metadata">

**Author:** [@michaellindon](https://discourse.julialang.org/u/michaellindon)\
**Replies:** 19\
**Last updated:** [October 5, 2021, 10:37am UTC](https://discourse.julialang.org/t/abstract-branch-and-bound-api-for-mip/4691 "2021-10-05T10:37:02Z")

</div>

I have a non-linear objective function F of p binary arguments… I would like to solve this using a branch and bound method, using a continuous relaxation to acquire the bound. The continuous relaxation of F, however, i…

---

## [Turing: no method matching MvNormal(::Matrix{Float64}, ::Float64)](https://discourse.julialang.org/t/turing-no-method-matching-mvnormal-matrix-float64-float64/69207)

<div class="topic-metadata">

**Author:** [@Tarotis](https://discourse.julialang.org/u/Tarotis)\
**Replies:** 4\
**Last updated:** [October 5, 2021, 8:06am UTC](https://discourse.julialang.org/t/turing-no-method-matching-mvnormal-matrix-float64-float64/69207 "2021-10-05T08:06:22Z")

</div>

Hello everybody, as I want to switch from R to Julia for my Bayesian modelling, tonight I run my first models in Turing. However, I encountered some problems, principally when trying to model a random-intercept model. T…

---

## [From notebook to structured project in Julia](https://discourse.julialang.org/t/from-notebook-to-structured-project-in-julia/69200)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 1\
**Last updated:** [October 5, 2021, 6:42am UTC](https://discourse.julialang.org/t/from-notebook-to-structured-project-in-julia/69200 "2021-10-05T06:42:13Z")

</div>

Last week I was talking to students about a workflow for moving code from a notebook to a structured project with src/ , scripts/ , … using an example resonance-pole analysis. Just in case someone is interested, here is…

---

## [Passing "dynamic" argument to function in Optim.jl](https://discourse.julialang.org/t/passing-dynamic-argument-to-function-in-optim-jl/69202)

<div class="topic-metadata">

**Author:** [@Gabriel\_Kreindler](https://discourse.julialang.org/u/Gabriel_Kreindler)\
**Replies:** 2\
**Last updated:** [October 4, 2021, 8:16pm UTC](https://discourse.julialang.org/t/passing-dynamic-argument-to-function-in-optim-jl/69202 "2021-10-04T20:16:08Z")

</div>

Hello, I have an objective function that solves for a vector z using an iterative algorithm. I then feed this into optimize(). I can use a “static” starting guess z0 that I set before calling optimize. However, it might…

---

## [DSP package filt vs. filtfilt](https://discourse.julialang.org/t/dsp-package-filt-vs-filtfilt/69199)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 5\
**Last updated:** [October 4, 2021, 7:45pm UTC](https://discourse.julialang.org/t/dsp-package-filt-vs-filtfilt/69199 "2021-10-04T19:45:58Z")

</div>

I am wondering how I need to modify the a and b vectors to make filtfilt give the same amplitude as filt. A minimum working example is: using DSP using Plots ω1 = 2 \* π \* 15 ω2 = 2 \* π \* 21 t = 0:1/400:1 fs = 1/(t\[2\]-…

---

## [LoadError: Can't differentiate loopinfo expression](https://discourse.julialang.org/t/loaderror-cant-differentiate-loopinfo-expression/69067)

<div class="topic-metadata">

**Author:** [@Tyler\_Ingebrand](https://discourse.julialang.org/u/Tyler_Ingebrand)\
**Replies:** 8\
**Last updated:** [October 4, 2021, 7:17pm UTC](https://discourse.julialang.org/t/loaderror-cant-differentiate-loopinfo-expression/69067 "2021-10-04T19:17:53Z")

</div>

When trying to run the code: (from an example) using DeepQLearning using POMDPs using Flux using POMDPModels using POMDPSimulators using POMDPPolicies # load MDP model from POMDPModels or define your own! mdp = SimpleG…

---

## [Makie: Multiline plots, subplots and attributes examples](https://discourse.julialang.org/t/makie-multiline-plots-subplots-and-attributes-examples/69113)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 11\
**Last updated:** [October 4, 2021, 12:12pm UTC](https://discourse.julialang.org/t/makie-multiline-plots-subplots-and-attributes-examples/69113 "2021-10-04T12:12:16Z")

</div>

I wanted some convenience in plotting several lines into one plot or several subplots. Since Plots.jl does not yet serve the Makie backend, I wrote the functions below. My first experiments with Makie, did I waste a lo…

---

## [Interactive network visualization](https://discourse.julialang.org/t/interactive-network-visualization/49054)

<div class="topic-metadata">

**Author:** [@elkaps](https://discourse.julialang.org/u/elkaps)\
**Replies:** 22\
**Last updated:** [October 4, 2021, 11:56am UTC](https://discourse.julialang.org/t/interactive-network-visualization/49054 "2021-10-04T11:56:57Z")

</div>

I’m looking for a way to visualize networks while being able to add/remove/move vertices interactively. I’ve seen NetworkViz but it doesn’t look maintained anymore. Would it be possible to use GraphRecipes by getting t…

---

## [SimulatedAnnealing (and SAMIN) claims "Status Failure", but output seems to be OK?](https://discourse.julialang.org/t/simulatedannealing-and-samin-claims-status-failure-but-output-seems-to-be-ok/69146)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 10:28am UTC](https://discourse.julialang.org/t/simulatedannealing-and-samin-claims-status-failure-but-output-seems-to-be-ok/69146 "2021-10-04T10:28:08Z")

</div>

I am trying to get SimulatedAnnealing to work for an optimisation problem, so I first look at a basic example. using Optim f(x) = (1.0 - x\[1\])^2 + 100.0 \* (x\[2\] - x\[1\]^2)^2 This works fine: x0 = \[0.0,0.0\] res = optimi…

---

## [Too many resources requested for launch](https://discourse.julialang.org/t/too-many-resources-requested-for-launch/69100)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 5:51am UTC](https://discourse.julialang.org/t/too-many-resources-requested-for-launch/69100 "2021-10-04T05:51:07Z")

</div>

I get “too many resources requested for launch” in CUDA.jl kernel when I try to either set value to the array set in global memory like mainWorkQueue\[1,1\]=1 OR print anything using CUDA.@cuprint “aa” I suspect …

---

## [Is there a package for fractional calculus?](https://discourse.julialang.org/t/is-there-a-package-for-fractional-calculus/19702)

<div class="topic-metadata">

**Author:** [@phelipe](https://discourse.julialang.org/u/phelipe)\
**Replies:** 10\
**Last updated:** [October 4, 2021, 5:46am UTC](https://discourse.julialang.org/t/is-there-a-package-for-fractional-calculus/19702 "2021-10-04T05:46:20Z")

</div>

Is there any package for fractional derivatives?

---

## [How to set lower and upper bound for SimulatedAnnealing OptimizationProblem's? Tired "lu=" and "ub=" but doesn't seem to work](https://discourse.julialang.org/t/how-to-set-lower-and-upper-bound-for-simulatedannealing-optimizationproblems-tired-lu-and-ub-but-doesnt-seem-to-work/69134)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [October 3, 2021, 5:42pm UTC](https://discourse.julialang.org/t/how-to-set-lower-and-upper-bound-for-simulatedannealing-optimizationproblems-tired-lu-and-ub-but-doesnt-seem-to-work/69134 "2021-10-03T17:42:03Z")

</div>

This is the sampel code: using GalacticOptim, Optim function tmp(x,p) return (x\[1\]-2)^2 end prob = OptimizationProblem(tmp,\[4.\],lb=\[3\],ub=\[6\]) res = solve(prob,SimulatedAnnealing()) the result is correct 1.99822287…

---

## [Separating a column into a variable number of possible columns](https://discourse.julialang.org/t/separating-a-column-into-a-variable-number-of-possible-columns/69035)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 22\
**Last updated:** [October 3, 2021, 12:40pm UTC](https://discourse.julialang.org/t/separating-a-column-into-a-variable-number-of-possible-columns/69035 "2021-10-03T12:40:49Z")

</div>

Hi there. Am trying to replicate some R code based on a movies dataset (available here) using Julia’s data wrangling utilities. What am trying to achieve is to separate/split a column into two or more columns depending…

---

## [How to extend the JuMP @variable so that it can construct a sparse array which can be used as a full matrix?](https://discourse.julialang.org/t/how-to-extend-the-jump-variable-so-that-it-can-construct-a-sparse-array-which-can-be-used-as-a-full-matrix/69125)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 1\
**Last updated:** [October 3, 2021, 1:54am UTC](https://discourse.julialang.org/t/how-to-extend-the-jump-variable-so-that-it-can-construct-a-sparse-array-which-can-be-used-as-a-full-matrix/69125 "2021-10-03T01:54:41Z")

</div>

Hi all In fact, this question is a derivative of my last question. I want to create a 4x4 array variables, but it only has a value at the index (1, 2), (2, 1), (2, 3), (3, 2) and the rest is 0. @blegat provide sever…

---

## [Can JuMP.jl create a sparse array variable that can be used as a full matrix?](https://discourse.julialang.org/t/can-jump-jl-create-a-sparse-array-variable-that-can-be-used-as-a-full-matrix/69114)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 2\
**Last updated:** [October 3, 2021, 1:21am UTC](https://discourse.julialang.org/t/can-jump-jl-create-a-sparse-array-variable-that-can-be-used-as-a-full-matrix/69114 "2021-10-03T01:21:15Z")

</div>

Hi all Recently, I have encountered some problems in optimizing code speed. I guess it is because I always create dense array variables I want to create a 4x4 array variables, but it only has a value at the index (1, 2…

---

## [How to code the following optimization problem](https://discourse.julialang.org/t/how-to-code-the-following-optimization-problem/69098)

<div class="topic-metadata">

**Author:** [@Jaidy](https://discourse.julialang.org/u/Jaidy)\
**Replies:** 4\
**Last updated:** [October 2, 2021, 10:57pm UTC](https://discourse.julialang.org/t/how-to-code-the-following-optimization-problem/69098 "2021-10-02T22:57:26Z")

</div>

Hi everyone, I have the following optimization problem to solve: minimize c^Tx, subject to ||c^Tx||\_1 \<= C Can someone tell me how to write this in say NLopt, or any other library?

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=330)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=332)
