# Latest

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

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

**Page:** 1677

---

## [Question on setfields](https://discourse.julialang.org/t/question-on-setfields/43837)

<div class="topic-metadata">

**Author:** [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Replies:** 7\
**Last updated:** [July 29, 2020, 12:25pm UTC](https://discourse.julialang.org/t/question-on-setfields/43837 "2020-07-29T12:25:55Z")

</div>

I have a weird setfields use case: p = Normal(1,2); setproperties(p, μ=0.5) works but I would like to do a=:μ; setproperties(p, a=0.5) such that I can pass a to a function…how do I do that?

---

## [astariul/Sentencize.jl](https://discourse.julialang.org/t/astariul-sentencize-jl/43873)

<div class="topic-metadata">

**Author:** [@astariul](https://discourse.julialang.org/u/astariul)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 12:09pm UTC](https://discourse.julialang.org/t/astariul-sentencize-jl/43873 "2020-07-29T12:09:07Z")

</div>

Hello, I’m a beginner in Julia, and as exercise I ported a python library for splitting text into sentences into Julia. You can find the code here : GitHub - astariul/Sentencize.jl: Smallish library for sentence splitt…

---

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

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 12:05pm UTC](https://discourse.julialang.org/t/is-there-a-package-for-package-info/43875 "2020-07-29T12:05:16Z")

</div>

As a packakge developer I often want to find out if the dependencies of my packakge is at the latest version as I want to support the latest features. CompatHelper.jl helps but I still feel something is missing. Is ther…

---

## [Fuzzy inexact merge](https://discourse.julialang.org/t/fuzzy-inexact-merge/43666)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 5\
**Last updated:** [July 29, 2020, 11:04am UTC](https://discourse.julialang.org/t/fuzzy-inexact-merge/43666 "2020-07-29T11:04:38Z")

</div>

I am looking for a tool/approach to perform an inexact merge. I have two (or more) dataframes with datetime columns (and value columns) that do not correspond. I imagine specifying a tolerance value (say 5 minutes) for …

---

## [Understanding IR representation and argument values](https://discourse.julialang.org/t/understanding-ir-representation-and-argument-values/43863)

<div class="topic-metadata">

**Author:** [@mespinosami](https://discourse.julialang.org/u/mespinosami)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 9:32am UTC](https://discourse.julialang.org/t/understanding-ir-representation-and-argument-values/43863 "2020-07-29T09:32:51Z")

</div>

I am trying to understand how the IR representation exactly works and its structure. More specifically, would like to know if it is possible to access the values of the arguments passed to a function through the IR. Say…

---

## [Enforce a matrix to be positive semidefinite in JuMP](https://discourse.julialang.org/t/enforce-a-matrix-to-be-positive-semidefinite-in-jump/43853)

<div class="topic-metadata">

**Author:** [@Rasoul](https://discourse.julialang.org/u/Rasoul)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 9:34am UTC](https://discourse.julialang.org/t/enforce-a-matrix-to-be-positive-semidefinite-in-jump/43853 "2020-07-29T09:34:10Z")

</div>

Hi All, I want to enforce a square matrix in my code (i.e. W) to be positive semidefinite. I am using Gurobi solver. I have added the following constraint in my code to fulfill the task. @constraint (model, W in PSDcon…

---

## [UndefVarError: θ not defined](https://discourse.julialang.org/t/undefvarerror-not-defined/43820)

<div class="topic-metadata">

**Author:** [@Irene](https://discourse.julialang.org/u/Irene)\
**Replies:** 7\
**Last updated:** [July 29, 2020, 8:14am UTC](https://discourse.julialang.org/t/undefvarerror-not-defined/43820 "2020-07-29T08:14:43Z")

</div>

Hi, I stumbled upon this very nice example from @SebastianCallh in which Neural ODE are used to model and forecast the weather in the city of Delhi. I have a keen interest in learning how to apply differential equations…

---

## [Different ways to initialize an array of specified type](https://discourse.julialang.org/t/different-ways-to-initialize-an-array-of-specified-type/43818)

<div class="topic-metadata">

**Author:** [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Replies:** 10\
**Last updated:** [July 29, 2020, 8:09am UTC](https://discourse.julialang.org/t/different-ways-to-initialize-an-array-of-specified-type/43818 "2020-07-29T08:09:05Z")

</div>

Let’s benchmark the following three: julia\> function a() x = Vector{Int}() x end a (generic function with 1 method) julia\> function b() x::Vector{Int} = \[\] x en…

---

## [JuliaPro pulling Genie issues](https://discourse.julialang.org/t/juliapro-pulling-genie-issues/43484)

<div class="topic-metadata">

**Author:** [@Mizuno](https://discourse.julialang.org/u/Mizuno)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 6:37am UTC](https://discourse.julialang.org/t/juliapro-pulling-genie-issues/43484 "2020-07-29T06:37:11Z")

</div>

I am trying to add Genie to my packages but encountered this error… ERROR: failed to clone from https://github.com/JuliaComputing/BinaryProvider.jl.git, error: GitError(Code:ERROR, Class:Net, request failed with status…

---

## [NeuralODE and ModelingToolkit](https://discourse.julialang.org/t/neuralode-and-modelingtoolkit/43855)

<div class="topic-metadata">

**Author:** [@Jagirhussan](https://discourse.julialang.org/u/Jagirhussan)\
**Replies:** 2\
**Last updated:** [July 29, 2020, 5:07am UTC](https://discourse.julialang.org/t/neuralode-and-modelingtoolkit/43855 "2020-07-29T05:07:31Z")

</div>

I would like to do statespace analysis. ModelingToolkit provides some very useful constructs to do this. I was wondering if there is a way to analyse NeuralODE’s (trained using DiffEqFlux) using ModelingToolkit? Thanks

---

## [PowerModelsAnnex.jl obtaining duals](https://discourse.julialang.org/t/powermodelsannex-jl-obtaining-duals/43535)

<div class="topic-metadata">

**Author:** [@fnbillimoria](https://discourse.julialang.org/u/fnbillimoria)\
**Replies:** 5\
**Last updated:** [July 29, 2020, 4:17am UTC](https://discourse.julialang.org/t/powermodelsannex-jl-obtaining-duals/43535 "2020-07-29T04:17:10Z")

</div>

I have downloaded the PowerModelsAnnex.jl files. I am using the build\_qc\_opf functions, and wish to obtain dual prices from the solution. The specific dual prices I wish to obtain are the duals of the power balance or …

---

## [Utility packages for Windows: WinTypes.jl and WinKnownPaths.jl](https://discourse.julialang.org/t/utility-packages-for-windows-wintypes-jl-and-winknownpaths-jl/43835)

<div class="topic-metadata">

**Author:** [@musm](https://discourse.julialang.org/u/musm)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 7:34pm UTC](https://discourse.julialang.org/t/utility-packages-for-windows-wintypes-jl-and-winknownpaths-jl/43835 "2020-07-28T19:34:56Z")

</div>

Two simple utility packages for interacting with the Windows API: WinTypes.jl This package defines aliases in Julia to Windows Data types. Example import WinTypes: HANDLE, DWORD hOutput = ccall(:GetStdHandle, stdcall,…

---

## ["@everywhere using AAA" causes races on writing precompilation files?](https://discourse.julialang.org/t/everywhere-using-aaa-causes-races-on-writing-precompilation-files/25638)

<div class="topic-metadata">

**Author:** [@RonK](https://discourse.julialang.org/u/RonK)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 12:09am UTC](https://discourse.julialang.org/t/everywhere-using-aaa-causes-races-on-writing-precompilation-files/25638 "2020-07-29T00:09:56Z")

</div>

It seems to me that the precompiler doesn’t lock files properly to prevent race conditions on generating precompilation files. I have a script which uses the Distributed module which I run on a single multicore computer …

---

## [\[ANN\] Purses.jl 👛](https://discourse.julialang.org/t/ann-purses-jl/43846)

<div class="topic-metadata">

**Author:** [@Evey](https://discourse.julialang.org/u/Evey)\
**Replies:** 3\
**Last updated:** [July 28, 2020, 11:45pm UTC](https://discourse.julialang.org/t/ann-purses-jl/43846 "2020-07-28T23:45:46Z")

</div>

Purses.jl :purse: Does this describe you or someone you know? Do you often find yourself writing a bunch of composable functions that end up calling the same expensive function on the same single input several times? …

---

## [Problem with the calling of Laplacian.jl functions from PyJulia](https://discourse.julialang.org/t/problem-with-the-calling-of-laplacian-jl-functions-from-pyjulia/43829)

<div class="topic-metadata">

**Author:** [@Alip](https://discourse.julialang.org/u/Alip)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 6:26pm UTC](https://discourse.julialang.org/t/problem-with-the-calling-of-laplacian-jl-functions-from-pyjulia/43829 "2020-07-28T18:26:13Z")

</div>

I’m trying to call some functions from the laplacians.jl package by using PyJulia in my python code. It seems that I cannot run the code from Pyjulia because when I use the function directly in the Julia environment it w…

---

## [Distributed testing](https://discourse.julialang.org/t/distributed-testing/43824)

<div class="topic-metadata">

**Author:** [@Peter\_Adelman](https://discourse.julialang.org/u/Peter_Adelman)\
**Replies:** 0\
**Last updated:** [July 28, 2020, 5:37pm UTC](https://discourse.julialang.org/t/distributed-testing/43824 "2020-07-28T17:37:37Z")

</div>

I am developing a set of \]dev’d packages. If I test them in serial, it takes about 2 hours. I have been doing this instead: # The script is intended to be run from \`parent\_dir/test\`. using Distributed addproc(7) @ever…

---

## [LAPACK exception with gels!](https://discourse.julialang.org/t/lapack-exception-with-gels/43620)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 1\
**Last updated:** [July 28, 2020, 7:43pm UTC](https://discourse.julialang.org/t/lapack-exception-with-gels/43620 "2020-07-28T19:43:28Z")

</div>

If I run the following program then Julia quits with an exception. I suspect this has something to do with rounding in the factorization. The matrix B below can be replaced with a matrix of zeros of the same size and t…

---

## [Multiple dispatch on StructArrays](https://discourse.julialang.org/t/multiple-dispatch-on-structarrays/43810)

<div class="topic-metadata">

**Author:** [@ozmaden](https://discourse.julialang.org/u/ozmaden)\
**Replies:** 7\
**Last updated:** [July 28, 2020, 7:15pm UTC](https://discourse.julialang.org/t/multiple-dispatch-on-structarrays/43810 "2020-07-28T19:15:21Z")

</div>

Hi everyone. I am working with the StructArrays.jl package and trying to program a function to react differently for different types of arrays inside of a StructArray. Specifically I want to differentiate between Array …

---

## [Can you collapse combine many solution objects into one?](https://discourse.julialang.org/t/can-you-collapse-combine-many-solution-objects-into-one/43825)

<div class="topic-metadata">

**Author:** [@cbasile21](https://discourse.julialang.org/u/cbasile21)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 6:59pm UTC](https://discourse.julialang.org/t/can-you-collapse-combine-many-solution-objects-into-one/43825 "2020-07-28T18:59:37Z")

</div>

If I solve an ode system by calling the solver once I get a sol object let us call it sol\_final , where I can save and access different times later. Let us pretend , I solve same system by chunks meaning I split up t\_sta…

---

## [Setting a small case in PowerModels as m file](https://discourse.julialang.org/t/setting-a-small-case-in-powermodels-as-m-file/43821)

<div class="topic-metadata">

**Author:** [@mayar](https://discourse.julialang.org/u/mayar)\
**Replies:** 3\
**Last updated:** [July 28, 2020, 6:57pm UTC](https://discourse.julialang.org/t/setting-a-small-case-in-powermodels-as-m-file/43821 "2020-07-28T18:57:44Z")

</div>

hello there, I want to test a small 3 bus system on PowerModels and I had to modify the case5.m into case3.m since there was no smaller system than 5 bus network however I get this error when I run my julia file with t…

---

## [Gurobi - Branch Priority](https://discourse.julialang.org/t/gurobi-branch-priority/43826)

<div class="topic-metadata">

**Author:** [@afazevedo](https://discourse.julialang.org/u/afazevedo)\
**Replies:** 3\
**Last updated:** [July 28, 2020, 6:39pm UTC](https://discourse.julialang.org/t/gurobi-branch-priority/43826 "2020-07-28T18:39:55Z")

</div>

I wish I could use the Gurobi attribute “Branch Priority”. So I tried to use it that way and it gave an error. Is there a smarter way to do this? MOI.set(model,Gurobi.ModelAttribute("BranchPriority"), u) u is the varia…

---

## [Read csv files slow](https://discourse.julialang.org/t/read-csv-files-slow/43803)

<div class="topic-metadata">

**Author:** [@Ruan\_Stander](https://discourse.julialang.org/u/Ruan_Stander)\
**Replies:** 13\
**Last updated:** [July 28, 2020, 6:29pm UTC](https://discourse.julialang.org/t/read-csv-files-slow/43803 "2020-07-28T18:29:28Z")

</div>

Hi I am loading a long list of text files into memory using DataFrames (joined on the Date Column) It is taking very long to read them in so tried to do multithreading since my nthreads()=12 The multithreading is only…

---

## [Benders decomposition in JuMP](https://discourse.julialang.org/t/benders-decomposition-in-jump/43678)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 4\
**Last updated:** [July 28, 2020, 6:10pm UTC](https://discourse.julialang.org/t/benders-decomposition-in-jump/43678 "2020-07-28T18:10:44Z")

</div>

Hello, I have been experimenting with JuMP and I have coded a CVaR optimisation problem using the method introduced by Rockfeller and Uryasev. My implementation given below uses extensive form of the stochastic program. …

---

## [Flux: GPU not working as expected](https://discourse.julialang.org/t/flux-gpu-not-working-as-expected/43759)

<div class="topic-metadata">

**Author:** [@Ruan\_Stander](https://discourse.julialang.org/u/Ruan_Stander)\
**Replies:** 6\
**Last updated:** [July 28, 2020, 5:50pm UTC](https://discourse.julialang.org/t/flux-gpu-not-working-as-expected/43759 "2020-07-28T17:50:40Z")

</div>

https://github.com/FluxML/model-zoo/blob/master/vision/mnist/mlp.jl Adapting above example to my own set of inputs. The example works as expected When I change input from 28x28 MNIST pictures to my input ( 10x5 Array{…

---

## [Extending a string by adding 0's to the end](https://discourse.julialang.org/t/extending-a-string-by-adding-0s-to-the-end/43813)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 7\
**Last updated:** [July 28, 2020, 4:02pm UTC](https://discourse.julialang.org/t/extending-a-string-by-adding-0s-to-the-end/43813 "2020-07-28T16:02:53Z")

</div>

Suppose I have a process that receives strings like the following: “1.542” “1.293” “1.652” “1.297” Every now and again, however, the process receives a string with fewer “decimal places”. For example: “1.9” I wish…

---

## [Working One-class SVM in Julia?](https://discourse.julialang.org/t/working-one-class-svm-in-julia/43747)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 6\
**Last updated:** [July 28, 2020, 2:56pm UTC](https://discourse.julialang.org/t/working-one-class-svm-in-julia/43747 "2020-07-28T14:56:52Z")

</div>

Hi. Does anyone know of a working One-Class SVM in Julia? There is a ‘OneClassSVM’ option in LIBSVM, but it doesn’t work properly (which I have documented on GItHub, but there doesn’t seem to be much activity on the L…

---

## [Best performance for eval of expressions with parameters](https://discourse.julialang.org/t/best-performance-for-eval-of-expressions-with-parameters/43443)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 2:07pm UTC](https://discourse.julialang.org/t/best-performance-for-eval-of-expressions-with-parameters/43443 "2020-07-28T14:07:40Z")

</div>

I try to achieve better/best performance for eval(expression). Up to now I found 5 more or less different possibilities (in respect to my code logic) to eval an expression. It’s best, to see it in code. The following MW…

---

## [Implementing one-class SVM for Novelty Detection](https://discourse.julialang.org/t/implementing-one-class-svm-for-novelty-detection/1357)

<div class="topic-metadata">

**Author:** [@KrishnaKanhaiya](https://discourse.julialang.org/u/KrishnaKanhaiya)\
**Replies:** 11\
**Last updated:** [July 28, 2020, 10:58am UTC](https://discourse.julialang.org/t/implementing-one-class-svm-for-novelty-detection/1357 "2020-07-28T10:58:50Z")

</div>

Hi, I want to implement one-class SVM in Julia(SVM.jl) very similar to scikit-learn in python (here). I see that SVM.jl is unmaintained and will be removed from the metadata shortly. Is it going to be removed for sure?…

---

## [How define this Dict more precise?](https://discourse.julialang.org/t/how-define-this-dict-more-precise/43807)

<div class="topic-metadata">

**Author:** [@Darione](https://discourse.julialang.org/u/Darione)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 10:56am UTC](https://discourse.julialang.org/t/how-define-this-dict-more-precise/43807 "2020-07-28T10:56:23Z")

</div>

I can’t understand why … :-/ What is wrong in defining a dictionary in a more precise way? julia\> x = Dict() Dict{Any,Any} with 0 entries julia\> x\["weight"\]=105 105 julia\> x\["number"\]=3 3 julia\> x Dict{Any,Any} with…

---

## [JuliaCon: The Podcast](https://discourse.julialang.org/t/juliacon-the-podcast/43791)

<div class="topic-metadata">

**Author:** [@Keno](https://discourse.julialang.org/u/Keno)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 10:12am UTC](https://discourse.julialang.org/t/juliacon-the-podcast/43791 "2020-07-28T10:12:02Z")

</div>

Hi all, as most of you probably know, Huda, Nathan, and I have started doing a podcast to accompany JuliaCon. In case you’re not already subscribed, you can find it on your favorite platform: YouTube: JuliaCon: The Pod…

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

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