# Specific Domains

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

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

**Page:** 419

---

## [Extract field from the elements of a column in a DataFrame](https://discourse.julialang.org/t/extract-field-from-the-elements-of-a-column-in-a-dataframe/47405)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 3\
**Last updated:** [September 28, 2020, 4:58pm UTC](https://discourse.julialang.org/t/extract-field-from-the-elements-of-a-column-in-a-dataframe/47405 "2020-09-28T16:58:34Z")

</div>

Let’s say I a have a DataFrame with a column :C1. The elements of the column are structs of the type struct MyStruct a::Float64 b::Float64 end How do I extract, for example, the field :a from the elements of th…

---

## [(d::Int)(x::Int) = d + x?](https://discourse.julialang.org/t/d-int-x-int-d-x/47321)

<div class="topic-metadata">

**Author:** [@bigdataman2015](https://discourse.julialang.org/u/bigdataman2015)\
**Replies:** 5\
**Last updated:** [September 28, 2020, 11:12am UTC](https://discourse.julialang.org/t/d-int-x-int-d-x/47321 "2020-09-28T11:12:12Z")

</div>

julia\> (d::Int)(x::Int) = d + x # what does this mean ?

---

## [Testing code that is executed when solve reaches non-optimal status](https://discourse.julialang.org/t/testing-code-that-is-executed-when-solve-reaches-non-optimal-status/47293)

<div class="topic-metadata">

**Author:** [@vtjeng](https://discourse.julialang.org/u/vtjeng)\
**Replies:** 3\
**Last updated:** [September 27, 2020, 10:51pm UTC](https://discourse.julialang.org/t/testing-code-that-is-executed-when-solve-reaches-non-optimal-status/47293 "2020-09-27T22:51:50Z")

</div>

I’m looking for advice on the best way to test code that is executed only when the termination status for optimization returns a status of MathOptInterface.TIME\_LIMIT. The first approach I tried was to construct models …

---

## [How to do distributed multithreading?](https://discourse.julialang.org/t/how-to-do-distributed-multithreading/47373)

<div class="topic-metadata">

**Author:** [@vkv](https://discourse.julialang.org/u/vkv)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 10:30pm UTC](https://discourse.julialang.org/t/how-to-do-distributed-multithreading/47373 "2020-09-27T22:30:31Z")

</div>

I’ve a function that uses multithreading to compute a function f with each thread value and stores the value as an array element. function multithread() num\_threads = 8 output = Array{Float64}(num\_thread…

---

## [Error installing Mosek (unable to build)](https://discourse.julialang.org/t/error-installing-mosek-unable-to-build/47337)

<div class="topic-metadata">

**Author:** [@axw](https://discourse.julialang.org/u/axw)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 9:47pm UTC](https://discourse.julialang.org/t/error-installing-mosek-unable-to-build/47337 "2020-09-27T21:47:54Z")

</div>

Got the license file and put in C:\\Users\\user\_name\\mosek. Ran pkg add mosek, and looks fine. But when I pkg build mosek I get this error. Any ideas? I see on the mosek site it mentions defining some distro but I’m …

---

## [Getting started with distributed Julia computations on a cluster](https://discourse.julialang.org/t/getting-started-with-distributed-julia-computations-on-a-cluster/47366)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [September 27, 2020, 7:06pm UTC](https://discourse.julialang.org/t/getting-started-with-distributed-julia-computations-on-a-cluster/47366 "2020-09-27T19:06:45Z")

</div>

Thus far, my parallel Julia experiences have involved running jobs on a single node on a cluster (shared memory environment) using the Distributed.jl module for computations like: using SharedArrays a = SharedArray{Flo…

---

## [DataFrames.jl development survey](https://discourse.julialang.org/t/dataframes-jl-development-survey/44022)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 52\
**Last updated:** [September 27, 2020, 4:50pm UTC](https://discourse.julialang.org/t/dataframes-jl-development-survey/44022 "2020-09-27T16:50:56Z")

</div>

Hi, before Julia & Data: An Evolving Ecosystem BOF I wanted to run a quick pool what you think about different major directions in DataFrames.jl development. So please upvote the things you perceive as important. This …

---

## [Adding (remote) workers to ongoing Dagger job](https://discourse.julialang.org/t/adding-remote-workers-to-ongoing-dagger-job/47196)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 4\
**Last updated:** [September 26, 2020, 7:12pm UTC](https://discourse.julialang.org/t/adding-remote-workers-to-ongoing-dagger-job/47196 "2020-09-26T19:12:19Z")

</div>

Use case is that on LSF (and probably many other cluster systems) jobs to fire up workers are queued and started individually at the whim of the cluster scheduler. This basically means that the time between the first wor…

---

## [X positions of boxplot in StatsPlots](https://discourse.julialang.org/t/x-positions-of-boxplot-in-statsplots/47314)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 0\
**Last updated:** [September 26, 2020, 2:23pm UTC](https://discourse.julialang.org/t/x-positions-of-boxplot-in-statsplots/47314 "2020-09-26T14:23:48Z")

</div>

This may be a naive way to be constructing them, but I am making boxplots in the following way: using StatsPlots x1 = randn(100); # A group x2 = rand(100); # B group boxplot(\["A"\], x1,label="") boxplot!(\["B"\], x2,label…

---

## [Plotting in log scale with zeros](https://discourse.julialang.org/t/plotting-in-log-scale-with-zeros/47260)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 3\
**Last updated:** [September 26, 2020, 2:11pm UTC](https://discourse.julialang.org/t/plotting-in-log-scale-with-zeros/47260 "2020-09-26T14:11:47Z")

</div>

When using Plots.jl, is there a straightforward way to plot on log scale with data which might contain zeros? When using matplotlib in Python, these values are just filtered and an image is still rendered, but Plots.jl …

---

## [Race condition in online plotting with Makie](https://discourse.julialang.org/t/race-condition-in-online-plotting-with-makie/47258)

<div class="topic-metadata">

**Author:** [@jagot](https://discourse.julialang.org/u/jagot)\
**Replies:** 2\
**Last updated:** [September 25, 2020, 9:08pm UTC](https://discourse.julialang.org/t/race-condition-in-online-plotting-with-makie/47258 "2020-09-25T21:08:23Z")

</div>

I’m time stepping a problem and want to plot various quantities as the solver progresses. Inspired by this post, I came up with the following: using Makie using AbstractPlotting.MakieLayout using AbstractPlotting using …

---

## [Finite Difference, calculating the differentiation matrix, etc](https://discourse.julialang.org/t/finite-difference-calculating-the-differentiation-matrix-etc/47180)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 6\
**Last updated:** [September 25, 2020, 4:01pm UTC](https://discourse.julialang.org/t/finite-difference-calculating-the-differentiation-matrix-etc/47180 "2020-09-25T16:01:43Z")

</div>

Hello, I have been trying to solve vorticity and streamfunctions using finite-difference methods using linear algebra. However, when I calculate the streamfunction \\psi using the formula \\zeta = \\nabla^2\\psi I get ext…

---

## [Strange behaviour with if-else-Statements](https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266)

<div class="topic-metadata">

**Author:** [@SonntagK](https://discourse.julialang.org/u/SonntagK)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 3:47pm UTC](https://discourse.julialang.org/t/strange-behaviour-with-if-else-statements/47266 "2020-09-25T15:47:24Z")

</div>

Hello, I’m new to Julia and working with Julia/JuMP for optimization purposes. I want to use if-else-statements in the constraints I’m defining to write them more compact. When trying so I ran in some strange behaviour. …

---

## [Problems updating from JuMP 0.21.4 to 0.21.5](https://discourse.julialang.org/t/problems-updating-from-jump-0-21-4-to-0-21-5/47145)

<div class="topic-metadata">

**Author:** [@gbustosx](https://discourse.julialang.org/u/gbustosx)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 3:39pm UTC](https://discourse.julialang.org/t/problems-updating-from-jump-0-21-4-to-0-21-5/47145 "2020-09-25T15:39:33Z")

</div>

Hi, all, I can’t seem to update from JuMP 0.21.4 to 0.21.5, should I go back to 0.21.3 firtst? Many thanks!

---

## [Solver for a robust model](https://discourse.julialang.org/t/solver-for-a-robust-model/47088)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 2:16pm UTC](https://discourse.julialang.org/t/solver-for-a-robust-model/47088 "2020-09-25T14:16:57Z")

</div>

I believe that the solver is suitable for robust models, but I cannot obtain the result of the compilation. (template for study taken from the website: https://jumper.readthedocs.io/en/latest/jumper.htm using JuMP, JuM…

---

## [Change spacing between xticks](https://discourse.julialang.org/t/change-spacing-between-xticks/47257)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 2:08pm UTC](https://discourse.julialang.org/t/change-spacing-between-xticks/47257 "2020-09-25T14:08:41Z")

</div>

Hiii, I would like to stack a bar plot and a box plot and have their boxes align. But I can’t find a way to do this. Here’s a MWE : using DataFrames, StatsPlots, StatsBase df = DataFrame(a = rand(1:6, 30), b = rand(30)…

---

## [\[Resolved\] Return in @model](https://discourse.julialang.org/t/resolved-return-in-model/47140)

<div class="topic-metadata">

**Author:** [@mcql](https://discourse.julialang.org/u/mcql)\
**Replies:** 4\
**Last updated:** [September 25, 2020, 1:59pm UTC](https://discourse.julialang.org/t/resolved-return-in-model/47140 "2020-09-25T13:59:10Z")

</div>

Hello, I would like to know what is the meaning of the return statement in a @model block in Turing. In the documentation only some example use return in the model definition. The samples generation works as well witho…

---

## [Whitespace as missingstring in CSV.File()](https://discourse.julialang.org/t/whitespace-as-missingstring-in-csv-file/47245)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 5\
**Last updated:** [September 25, 2020, 1:57pm UTC](https://discourse.julialang.org/t/whitespace-as-missingstring-in-csv-file/47245 "2020-09-25T13:57:23Z")

</div>

I have a CSV file which has all of "" (empty string), " " (1x whitespace), and " " (2x whitespace) as missing values (horrible, I know). I tried tackling it with CSV.File(file, missingstrings = \["", " ", " "\]) but appa…

---

## [Explain the results of ceiling Dates?](https://discourse.julialang.org/t/explain-the-results-of-ceiling-dates/44553)

<div class="topic-metadata">

**Author:** [@bigdataman2015](https://discourse.julialang.org/u/bigdataman2015)\
**Replies:** 3\
**Last updated:** [September 25, 2020, 10:17am UTC](https://discourse.julialang.org/t/explain-the-results-of-ceiling-dates/44553 "2020-09-25T10:17:49Z")

</div>

julia\> using Dates julia\> ceil(DateTime(2013, 2, 13, 0, 31, 24), Dates.Minute(15)) 2013-02-13T00:45:00 julia\> ceil(DateTime(2013, 2, 13, 0, 31, 24), Dates.Minute(16)) 2013-02-13T00:32:00 julia\> ceil(DateTime(2013, 2…

---

## [\[ANN\] JSON3.jl 1.0 Release + new StructTypes.jl Package](https://discourse.julialang.org/t/ann-json3-jl-1-0-release-new-structtypes-jl-package/34700)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 1\
**Last updated:** [September 25, 2020, 9:17am UTC](https://discourse.julialang.org/t/ann-json3-jl-1-0-release-new-structtypes-jl-package/34700 "2020-09-25T09:17:00Z")

</div>

Just tagged a 1.0 release for JSON3.jl. Highlights include: Moving the core StructType trait into a separate package StructTypes.jl, to allow further integration/re-use by other packages; what this means is that instea…

---

## [How to call cuda functions that are not implemented in CUDA.jl?](https://discourse.julialang.org/t/how-to-call-cuda-functions-that-are-not-implemented-in-cuda-jl/47219)

<div class="topic-metadata">

**Author:** [@cuchxq](https://discourse.julialang.org/u/cuchxq)\
**Replies:** 8\
**Last updated:** [September 25, 2020, 1:20am UTC](https://discourse.julialang.org/t/how-to-call-cuda-functions-that-are-not-implemented-in-cuda-jl/47219 "2020-09-25T01:20:26Z")

</div>

If there is a function in CUDA, but have not been implemented in CUDA.jl, is it possible to call that function using ccall? I am trying it with a call to dgemm ( gemm is available through CUDA.jl, but I want to try a fu…

---

## [Sparse high dimensional array support einsum?](https://discourse.julialang.org/t/sparse-high-dimensional-array-support-einsum/47222)

<div class="topic-metadata">

**Author:** [@yupbank](https://discourse.julialang.org/u/yupbank)\
**Replies:** 6\
**Last updated:** [September 24, 2020, 9:51pm UTC](https://discourse.julialang.org/t/sparse-high-dimensional-array-support-einsum/47222 "2020-09-24T21:51:30Z")

</div>

Hello there, I’m wondering if there is any effort in high dimensional sparse tensors with einsum support? For example, I’m working on something that can be abstracted into high dimensional tensors and i need to perform…

---

## [Complementarity in MOI wrappers](https://discourse.julialang.org/t/complementarity-in-moi-wrappers/47225)

<div class="topic-metadata">

**Author:** [@mrt](https://discourse.julialang.org/u/mrt)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 8:51pm UTC](https://discourse.julialang.org/t/complementarity-in-moi-wrappers/47225 "2020-09-24T20:51:09Z")

</div>

I’m writing a MathOptInterface wrapper for a solver, and have been trying to implement complementarity. How do I define the problem attribute for the optimizer? If I naively attempt e.g. : comp::Vector{ConstraintInfo{MO…

---

## [Evaluating a SyntaxTree.genfun within a function](https://discourse.julialang.org/t/evaluating-a-syntaxtree-genfun-within-a-function/46744)

<div class="topic-metadata">

**Author:** [@Jhall7529](https://discourse.julialang.org/u/Jhall7529)\
**Replies:** 6\
**Last updated:** [September 23, 2020, 9:30pm UTC](https://discourse.julialang.org/t/evaluating-a-syntaxtree-genfun-within-a-function/46744 "2020-09-23T21:30:08Z")

</div>

Im trying to evaluate a string as a function within a function. I have made good progress: using SyntaxTree function Evaluate(some\_function::String ; variables = \[:x\]) g = genfun(Meta.parse(some\_function), variables…

---

## [Making gif out of graphs](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143)

<div class="topic-metadata">

**Author:** [@Codzilla](https://discourse.julialang.org/u/Codzilla)\
**Replies:** 2\
**Last updated:** [September 24, 2020, 5:47pm UTC](https://discourse.julialang.org/t/making-gif-out-of-graphs/47143 "2020-09-24T17:47:43Z")

</div>

Hi, I’m teaching an undergraduate class in algorithmics and I would like to make some nice visualization of algorithms on graphs. To do so I would like to make gifs out of plots of graphs. I would very much like to use…

---

## [PyPlot warning](https://discourse.julialang.org/t/pyplot-warning/32553)

<div class="topic-metadata">

**Author:** [@zwwi](https://discourse.julialang.org/u/zwwi)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 5:37pm UTC](https://discourse.julialang.org/t/pyplot-warning/32553 "2020-09-24T17:37:31Z")

</div>

I am using PyPlot to make a plot with subplots of different sizes. using PyPlot fig=figure(constrained\_layout=false, figsize=(5, 4)) heights = \[1, 2\] spec = fig.add\_gridspec(ncols=1, nrows=2, height\_ratios=heights, hs…

---

## [How to configure which port workers listen](https://discourse.julialang.org/t/how-to-configure-which-port-workers-listen/46759)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 8\
**Last updated:** [September 24, 2020, 3:49pm UTC](https://discourse.julialang.org/t/how-to-configure-which-port-workers-listen/46759 "2020-09-24T15:49:10Z")

</div>

I’m trying to use ClusterManagers.jl to distribute jobs on an LSF cluster but I have ran into issues as the ports used by workers (9000-10000?) are not open. Is it possible to specify a port range when the --worker argu…

---

## [Different samples distribution after execution](https://discourse.julialang.org/t/different-samples-distribution-after-execution/47077)

<div class="topic-metadata">

**Author:** [@mcql](https://discourse.julialang.org/u/mcql)\
**Replies:** 5\
**Last updated:** [September 24, 2020, 3:14pm UTC](https://discourse.julialang.org/t/different-samples-distribution-after-execution/47077 "2020-09-24T15:14:57Z")

</div>

Hello, I wrote a this simple Turing model: @model function λ(y) lambda1 ~ Exponential(alpha) lambda2 ~ Exponential(alpha) τ ~ Uniform(1, n\_count\_data) for i in 1:length(y) y\[i\] ~ Poisson(τ \> i ?…

---

## [Community call notes 09/20](https://discourse.julialang.org/t/community-call-notes-09-20/47208)

<div class="topic-metadata">

**Author:** [@McCoy](https://discourse.julialang.org/u/McCoy)\
**Replies:** 1\
**Last updated:** [September 24, 2020, 1:58pm UTC](https://discourse.julialang.org/t/community-call-notes-09-20/47208 "2020-09-24T13:58:59Z")

</div>

Just so we get broad coverage - if you took notes, you might share them here as well (@mohamed82008, @cscherrer, @phg) Also, here are the collected links from the chat: From Alex: From Chad: https://julialang.zulip…

---

## [How to determine if a constraint is actually applied to the model?](https://discourse.julialang.org/t/how-to-determine-if-a-constraint-is-actually-applied-to-the-model/47176)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 5\
**Last updated:** [September 24, 2020, 10:08am UTC](https://discourse.julialang.org/t/how-to-determine-if-a-constraint-is-actually-applied-to-the-model/47176 "2020-09-24T10:08:38Z")

</div>

I have yet an another question. I have a working costraint: @variable(prmx, PRODAMOUNT\[op\_k in keys(\_ORDER\_PRODUCTs\_ALL), u\_k in keys(UNITS), t in TIME\], Int, lower\_bound = 0) for f\_f\_k in \_FORB…

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

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