# Latest

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

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

**Page:** 1009

---

## [Blend pmap with dynamic addprocs() rmprocs() on shared High Performance Computing Cluster](https://discourse.julialang.org/t/blend-pmap-with-dynamic-addprocs-rmprocs-on-shared-high-performance-computing-cluster/82702)

<div class="topic-metadata">

**Author:** [@philip](https://discourse.julialang.org/u/philip)\
**Replies:** 7\
**Last updated:** [June 17, 2022, 12:47am UTC](https://discourse.julialang.org/t/blend-pmap-with-dynamic-addprocs-rmprocs-on-shared-high-performance-computing-cluster/82702 "2022-06-17T00:47:45Z")

</div>

I have a “trivially parallel” computation to run. The function is loosely like this: function process\_one\_iteration(i::Int64, input\_directory::String) x = read\_input\_from\_directory(i, input\_directory::String) …

---

## [Defining a new type with constraints on values](https://discourse.julialang.org/t/defining-a-new-type-with-constraints-on-values/82782)

<div class="topic-metadata">

**Author:** [@mmv](https://discourse.julialang.org/u/mmv)\
**Replies:** 7\
**Last updated:** [June 17, 2022, 12:38am UTC](https://discourse.julialang.org/t/defining-a-new-type-with-constraints-on-values/82782 "2022-06-17T00:38:39Z")

</div>

Hi! I understand from the Julia documentation that functions may be defined in all generality without specifying the type of its arguments, but that doing so may serve to catch programmer or user errors. I’d like to kn…

---

## [CI failing with julia call when packages build (error when calling julia 'get')](https://discourse.julialang.org/t/ci-failing-with-julia-call-when-packages-build-error-when-calling-julia-get/82192)

<div class="topic-metadata">

**Author:** [@Gus\_Hart](https://discourse.julialang.org/u/Gus_Hart)\
**Replies:** 11\
**Last updated:** [June 16, 2022, 11:40pm UTC](https://discourse.julialang.org/t/ci-failing-with-julia-call-when-packages-build-error-when-calling-julia-get/82192 "2022-06-16T23:40:11Z")

</div>

The CI on one of my packages started failing a couple of days ago. It seemed to coincide with an upgrade in the Manifest (that julia requested, if I remember). It doesn’t seem related to anything in my code itself. The e…

---

## [JuMP -- MethodError: no method matching \_parse\_section](https://discourse.julialang.org/t/jump-methoderror-no-method-matching-parse-section/82884)

<div class="topic-metadata">

**Author:** [@freiburgermsu](https://discourse.julialang.org/u/freiburgermsu)\
**Replies:** 1\
**Last updated:** [June 16, 2022, 8:44pm UTC](https://discourse.julialang.org/t/jump-methoderror-no-method-matching-parse-section/82884 "2022-06-16T20:44:25Z")

</div>

Hello, I receive the following error message ERROR: MethodError: no method matching \_parse\_section(::Val{:header}, ::MathOptInterface.Utilities.GenericModel{Float64, MathOptInterface.Utilities.ObjectiveContainer{Float6…

---

## [Base.modules\_warned\_for silently removed in 1.8](https://discourse.julialang.org/t/base-modules-warned-for-silently-removed-in-1-8/79035)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 133\
**Last updated:** [June 16, 2022, 8:10pm UTC](https://discourse.julialang.org/t/base-modules-warned-for-silently-removed-in-1-8/79035 "2022-06-16T20:10:30Z")

</div>

Looks like Base.modules\_warned\_for no longer exists in 1.8? I can’t find it mentioned in the news. What’s the status please and what’s the recommended way for replacing it?

---

## [Nested Parametric Types and Collections](https://discourse.julialang.org/t/nested-parametric-types-and-collections/82777)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 10\
**Last updated:** [June 16, 2022, 6:49pm UTC](https://discourse.julialang.org/t/nested-parametric-types-and-collections/82777 "2022-06-16T18:49:44Z")

</div>

I’m having trouble understand parametric types and mixing parameters in collections. For example, struct Foo{T, S} a::T b::S end If I have this definition I can do the following: a = Foo(1, 2) b = Foo(1., 2) c…

---

## [Fixing MIP problem integer variables to get Duals](https://discourse.julialang.org/t/fixing-mip-problem-integer-variables-to-get-duals/82885)

<div class="topic-metadata">

**Author:** [@Di11on](https://discourse.julialang.org/u/Di11on)\
**Replies:** 1\
**Last updated:** [June 16, 2022, 6:41pm UTC](https://discourse.julialang.org/t/fixing-mip-problem-integer-variables-to-get-duals/82885 "2022-06-16T18:41:50Z")

</div>

Hi folks, We are solving large models iteratively. It’s a mip problem and to calculate duals, we fix the binary and integer variables and use unset\_binary() and then unset\_integer() to remove the constraints, then solve…

---

## [JuMP register polynomial with its gradient](https://discourse.julialang.org/t/jump-register-polynomial-with-its-gradient/82876)

<div class="topic-metadata">

**Author:** [@Luca](https://discourse.julialang.org/u/Luca)\
**Replies:** 1\
**Last updated:** [June 16, 2022, 6:39pm UTC](https://discourse.julialang.org/t/jump-register-polynomial-with-its-gradient/82876 "2022-06-16T18:39:55Z")

</div>

Dear all, I am using jump and I want to register a polynomial function with its gradient, with register(model2, :poly, num\_var, poly, gradient) I build the polynomial with AbstractAlgebra.jl and the gradient with the …

---

## [Julia on M1 Macs](https://discourse.julialang.org/t/julia-on-m1-macs/55448)

<div class="topic-metadata">

**Author:** [@PavanChaggar](https://discourse.julialang.org/u/PavanChaggar)\
**Replies:** 22\
**Last updated:** [June 16, 2022, 4:22pm UTC](https://discourse.julialang.org/t/julia-on-m1-macs/55448 "2022-06-16T16:22:39Z")

</div>

Hi, What is the status of Julia on M1 MacBook Pro? I.e. are there any major compatibility issues/bugs or is it mostly safe to use? Also would there be any performance loss? Thanks, Pavan

---

## [MTK and JuMP](https://discourse.julialang.org/t/mtk-and-jump/58161)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 6\
**Last updated:** [June 16, 2022, 3:15pm UTC](https://discourse.julialang.org/t/mtk-and-jump/58161 "2022-06-16T15:15:24Z")

</div>

I would like to use MTK to build a physical model and than use the equations and convert them into a JuMP model. Any ideas how to do that? My thoughs (based on Automatic Conversion of Julia Code to C Functions · Symboli…

---

## [Computing Concave hull/alpha shape for a point cloud](https://discourse.julialang.org/t/computing-concave-hull-alpha-shape-for-a-point-cloud/82746)

<div class="topic-metadata">

**Author:** [@arsh](https://discourse.julialang.org/u/arsh)\
**Replies:** 14\
**Last updated:** [June 16, 2022, 2:56pm UTC](https://discourse.julialang.org/t/computing-concave-hull-alpha-shape-for-a-point-cloud/82746 "2022-06-16T14:56:14Z")

</div>

I have a point cloud and I want to find it’s outline(also includes holes). Eg: A delaunay triangulation of such point cloud might look like I have tried to use existing tools in the ecosystem but most of them don’t s…

---

## [Vector notation, intermediate value and allocations](https://discourse.julialang.org/t/vector-notation-intermediate-value-and-allocations/82860)

<div class="topic-metadata">

**Author:** [@uliano](https://discourse.julialang.org/u/uliano)\
**Replies:** 8\
**Last updated:** [June 16, 2022, 2:27pm UTC](https://discourse.julialang.org/t/vector-notation-intermediate-value-and-allocations/82860 "2022-06-16T14:27:11Z")

</div>

I made great progress in understanding allocation mechanism, I’m still failing occasionally to write unallocating vectorized code, not even sure that in the specific cases belowmentioned would it even be possible Under …

---

## [RFC: Mitsuba2.jl - differentiable physics-based renderer](https://discourse.julialang.org/t/rfc-mitsuba2-jl-differentiable-physics-based-renderer/82879)

<div class="topic-metadata">

**Author:** [@alhirzel](https://discourse.julialang.org/u/alhirzel)\
**Replies:** 0\
**Last updated:** [June 16, 2022, 2:21pm UTC](https://discourse.julialang.org/t/rfc-mitsuba2-jl-differentiable-physics-based-renderer/82879 "2022-06-16T14:21:24Z")

</div>

Hey all, I wanted to share a package I started, and I am hoping to get feedback from anyone who is interested in physics-based rendering. My package, Mitsuba2.jl, brings the Mitsuba 2 renderer into Julia via its Python i…

---

## [Why \`count\` is slower than my code?](https://discourse.julialang.org/t/why-count-is-slower-than-my-code/82856)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 7\
**Last updated:** [June 16, 2022, 1:13pm UTC](https://discourse.julialang.org/t/why-count-is-slower-than-my-code/82856 "2022-06-16T13:13:30Z")

</div>

I was expecting count to be highly optimized, but it seems like it is 10x slower than the following code, why? using BenchmarkTools function contar() c = 0 for i in "?#?##?#?#???####??##" c += i == '#' …

---

## [Julia's infix as synonym for ∉ operator?](https://discourse.julialang.org/t/julias-infix-as-synonym-for-operator/82846)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 9\
**Last updated:** [June 16, 2022, 10:58am UTC](https://discourse.julialang.org/t/julias-infix-as-synonym-for-operator/82846 "2022-06-16T10:58:38Z")

</div>

Hello everyone. I think there’s somebody raising the question in the past but since there’s no news or recent development then, I would like to talk about it again. Julia has the infix operator in and its equivalence ∈.…

---

## [Include files on (remote) worker processes](https://discourse.julialang.org/t/include-files-on-remote-worker-processes/82807)

<div class="topic-metadata">

**Author:** [@daharn](https://discourse.julialang.org/u/daharn)\
**Replies:** 5\
**Last updated:** [June 16, 2022, 10:22am UTC](https://discourse.julialang.org/t/include-files-on-remote-worker-processes/82807 "2022-06-16T10:22:35Z")

</div>

I have pretty much the same setup as described here, that is, I have a local run file that should start parallel computations on remote machines. These computations require functions defined in several files. Simply incl…

---

## [When should we use passmissing?](https://discourse.julialang.org/t/when-should-we-use-passmissing/82844)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 4\
**Last updated:** [June 16, 2022, 8:07am UTC](https://discourse.julialang.org/t/when-should-we-use-passmissing/82844 "2022-06-16T08:07:37Z")

</div>

Dear all, I find that whether or not use passmissing, the results are the same. So when should we use passmissing?Here are some examples. julia\> sqrt(missing) missing julia\> passmissing(sqrt)(missing) missing julia\> …

---

## [How to specify multiple return types of a function](https://discourse.julialang.org/t/how-to-specify-multiple-return-types-of-a-function/82861)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 2\
**Last updated:** [June 16, 2022, 8:02am UTC](https://discourse.julialang.org/t/how-to-specify-multiple-return-types-of-a-function/82861 "2022-06-16T08:02:22Z")

</div>

Hi, Specifying the return type of a function in Julia does not improve the code speed, but it can improve the clarity of the code. In Julia documentation it is not explain how to give more than one return type to a fun…

---

## [Cast \`Real\` to the closest representable value by default (or excess)](https://discourse.julialang.org/t/cast-real-to-the-closest-representable-value-by-default-or-excess/82811)

<div class="topic-metadata">

**Author:** [@etienne\_dg](https://discourse.julialang.org/u/etienne_dg)\
**Replies:** 3\
**Last updated:** [June 16, 2022, 7:33am UTC](https://discourse.julialang.org/t/cast-real-to-the-closest-representable-value-by-default-or-excess/82811 "2022-06-16T07:33:35Z")

</div>

I want to get the closest representation by default of a value x of type U\<:Real by a value y of type T\<:Real. If T\<:Integer, I can do y = floor(T, x) If T is a Float, I can do T(x). But none of these methods cover b…

---

## [JuliaUserGroupMunich: Fall-in-love-with-julia 101 on SciML](https://discourse.julialang.org/t/juliausergroupmunich-fall-in-love-with-julia-101-on-sciml/82035)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 3\
**Last updated:** [June 16, 2022, 7:00am UTC](https://discourse.julialang.org/t/juliausergroupmunich-fall-in-love-with-julia-101-on-sciml/82035 "2022-06-16T07:00:37Z")

</div>

Join us on :spiral\_calendar: Monday 13. June 2022 :clock630: 18:30 CEST organized via meetup Fall in love with Julia: Scientific Machine Learning (SciML) in Julia 101 ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Machine Learning is…

---

## [I didn't ask for plan\_bfft, but got MethodError: no method matching plan\_bfft(::Vector{Number}, ::UnitRange{Int64})](https://discourse.julialang.org/t/i-didnt-ask-for-plan-bfft-but-got-methoderror-no-method-matching-plan-bfft-vector-number-unitrange-int64/82791)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 3\
**Last updated:** [June 16, 2022, 6:57am UTC](https://discourse.julialang.org/t/i-didnt-ask-for-plan-bfft-but-got-methoderror-no-method-matching-plan-bfft-vector-number-unitrange-int64/82791 "2022-06-16T06:57:24Z")

</div>

While coding an iterative FFT function, I came upon a strange bug that depends on the arguments to the function in a complicated way. I’ve managed to reduce the problematic code to the following: using FFTW unitize(x::…

---

## [How to correctly install \`julia-vim\`?](https://discourse.julialang.org/t/how-to-correctly-install-julia-vim/82260)

<div class="topic-metadata">

**Author:** [@thudjx](https://discourse.julialang.org/u/thudjx)\
**Replies:** 2\
**Last updated:** [June 16, 2022, 6:24am UTC](https://discourse.julialang.org/t/how-to-correctly-install-julia-vim/82260 "2022-06-16T06:24:53Z")

</div>

I am trying to install the julia-vim plugin into vim. I tried to use the built-in-package-management to install the package, as this is the most easy one. But It seemed that nothing happend to my vim. When opening a .…

---

## [Plotting a weighted tree graph](https://discourse.julialang.org/t/plotting-a-weighted-tree-graph/82637)

<div class="topic-metadata">

**Author:** [@devanshu](https://discourse.julialang.org/u/devanshu)\
**Replies:** 14\
**Last updated:** [June 16, 2022, 5:31am UTC](https://discourse.julialang.org/t/plotting-a-weighted-tree-graph/82637 "2022-06-16T05:31:14Z")

</div>

I am trying to plot a weighted graph using SimpleWeightedGraphs using GraphPlot. g = SimpleWeightedGraph(5) add\_edge!(g, 1, 2, 0.5) add\_edge!(g, 1, 3, 2.0) add\_edge!(g, 1, 4, 3.5) add\_edge!(g, 1, 5, 5.0) gplot(g) Bu…

---

## [Inserting margins above plot title](https://discourse.julialang.org/t/inserting-margins-above-plot-title/82801)

<div class="topic-metadata">

**Author:** [@neuro\_enthusiast](https://discourse.julialang.org/u/neuro_enthusiast)\
**Replies:** 2\
**Last updated:** [June 16, 2022, 3:54am UTC](https://discourse.julialang.org/t/inserting-margins-above-plot-title/82801 "2022-06-16T03:54:19Z")

</div>

Hi all! I’m trying to insert margin above the plot title but am unsure how. Any help would be great! For context, I have been using Plots.jl and Measures.jl to insert margins but top\_margin only inserted space between t…

---

## [Best practice setting up docs environment for an unregistered package](https://discourse.julialang.org/t/best-practice-setting-up-docs-environment-for-an-unregistered-package/82773)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 7\
**Last updated:** [June 15, 2022, 11:31pm UTC](https://discourse.julialang.org/t/best-practice-setting-up-docs-environment-for-an-unregistered-package/82773 "2022-06-15T23:31:35Z")

</div>

I’m trying to use Documenter.jl to generate documentation for an unregistered package. What is the best practice for setting up the docs directory environment for this? The AnotherParser project (GitHub - MarkNahabedia…

---

## [Newbie: Need direction about realtime trajectory plotting platform](https://discourse.julialang.org/t/newbie-need-direction-about-realtime-trajectory-plotting-platform/82848)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 0\
**Last updated:** [June 15, 2022, 11:26pm UTC](https://discourse.julialang.org/t/newbie-need-direction-about-realtime-trajectory-plotting-platform/82848 "2022-06-15T23:26:01Z")

</div>

Hello, I need to plot vehicle trajectories real time on a map. I would like understand my options in Julia ecosystem. Are there any gis libraries with julia api that can do that? Any help much appreciated.

---

## [Solar radiation hitting different parts of earth's surface at specific time](https://discourse.julialang.org/t/solar-radiation-hitting-different-parts-of-earths-surface-at-specific-time/82565)

<div class="topic-metadata">

**Author:** [@water](https://discourse.julialang.org/u/water)\
**Replies:** 5\
**Last updated:** [June 15, 2022, 11:14pm UTC](https://discourse.julialang.org/t/solar-radiation-hitting-different-parts-of-earths-surface-at-specific-time/82565 "2022-06-15T23:14:36Z")

</div>

Hi, I want to calculate how much solar radiation is hitting different parts of earth’s surface at a specific time. I imagine a function that takes a datetime and returns a 361x181 matrix (where the array indices can be…

---

## [GDAL/ogr2ogr File Conversion](https://discourse.julialang.org/t/gdal-ogr2ogr-file-conversion/82835)

<div class="topic-metadata">

**Author:** [@hexjulia](https://discourse.julialang.org/u/hexjulia)\
**Replies:** 4\
**Last updated:** [June 15, 2022, 10:29pm UTC](https://discourse.julialang.org/t/gdal-ogr2ogr-file-conversion/82835 "2022-06-15T22:29:10Z")

</div>

Hi all, I’m trying to complete what I thought would be a relatively simple task (although I am new to Julia and coding in general) with GDAL, specifically converting a .shp to a GeoPackage using ogr2ogr. I’ve followed …

---

## [What is the problem with this Julia code?](https://discourse.julialang.org/t/what-is-the-problem-with-this-julia-code/82827)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 8\
**Last updated:** [June 15, 2022, 10:23pm UTC](https://discourse.julialang.org/t/what-is-the-problem-with-this-julia-code/82827 "2022-06-15T22:23:57Z")

</div>

I wrote a function that plots several boxplots, ordered by the orders of a factor (categorical variable). It works, but VSCode keeps telling me there is a problem in one of the lines. Would someone know the reason? Here…

---

## [Serializing nested Dicts (or DataFrames) so that they can (easily) be loaded in Python as well?](https://discourse.julialang.org/t/serializing-nested-dicts-or-dataframes-so-that-they-can-easily-be-loaded-in-python-as-well/82809)

<div class="topic-metadata">

**Author:** [@daharn](https://discourse.julialang.org/u/daharn)\
**Replies:** 3\
**Last updated:** [June 15, 2022, 10:21pm UTC](https://discourse.julialang.org/t/serializing-nested-dicts-or-dataframes-so-that-they-can-easily-be-loaded-in-python-as-well/82809 "2022-06-15T22:21:06Z")

</div>

From my simulations, I typically end up with (somewhat convoluted) Dicts and/or DataFrames made from these dicts that contain my input parameters as well as my results. Depending on the complexity of the results, they mi…

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

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