# Latest

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

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

**Page:** 1971

---

## [Error in Array](https://discourse.julialang.org/t/error-in-array/25770)

<div class="topic-metadata">

**Author:** [@ahmedbulbul52](https://discourse.julialang.org/u/ahmedbulbul52)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 5:07pm UTC](https://discourse.julialang.org/t/error-in-array/25770 "2019-06-27T17:07:04Z")

</div>

ERROR: TypeError: fitdbm: in typeassert, expected Array{Int64,1}, got Array{Int64,2} in trainpartdbm function trainpartdbm(mat;partitions::Array{Array{Int64,1},1}=\[collect(1:size(mat)\[2\])\], nhiddens::Array{Int64,1}=\[s…

---

## [Turing - Syntax for Compositional Gibbs](https://discourse.julialang.org/t/turing-syntax-for-compositional-gibbs/25767)

<div class="topic-metadata">

**Author:** [@mrVeng](https://discourse.julialang.org/u/mrVeng)\
**Replies:** 4\
**Last updated:** [June 27, 2019, 4:47pm UTC](https://discourse.julialang.org/t/turing-syntax-for-compositional-gibbs/25767 "2019-06-27T16:47:58Z")

</div>

Hi everyone, I just finished reading the paper for the Julia Turing module and went through your tutorials – looks really great, congratulations! I did not find a specific forum for it, so I post my question here: In y…

---

## [Plot some Well logs, correlations  ](https://discourse.julialang.org/t/plot-some-well-logs-correlations/21943)

<div class="topic-metadata">

**Author:** [@Santiago\_Cuervo](https://discourse.julialang.org/u/Santiago_Cuervo)\
**Replies:** 29\
**Last updated:** [June 27, 2019, 3:54pm UTC](https://discourse.julialang.org/t/plot-some-well-logs-correlations/21943 "2019-06-27T15:54:19Z")

</div>

I’d like to plot well logs in Julia in which i can analyize and make calculations like the image below. i’d like to know some tips to do that. For example, to plot a single well I think I need to use layouts for differen…

---

## [JuliaRegistrator register past version](https://discourse.julialang.org/t/juliaregistrator-register-past-version/25765)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 5\
**Last updated:** [June 27, 2019, 2:19pm UTC](https://discourse.julialang.org/t/juliaregistrator-register-past-version/25765 "2019-06-27T14:19:32Z")

</div>

I was tagging versions but i did notice that attobot is not working. How I can use JuliaRegistrator to trigger existing githib tags/commits. For example, https://github.com/madsjulia/Mads.jl/commit/b5b53b6deaef990738fc0…

---

## [Error exporting dataframe from Julia to R with CSV.write](https://discourse.julialang.org/t/error-exporting-dataframe-from-julia-to-r-with-csv-write/25723)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 8\
**Last updated:** [June 27, 2019, 2:17pm UTC](https://discourse.julialang.org/t/error-exporting-dataframe-from-julia-to-r-with-csv-write/25723 "2019-06-27T14:17:51Z")

</div>

Dear all, I prepared an emtpy dataframe in Julia (I am working with Atom) with res\_df = DataFrame( Col\_1 = String\[\], Col\_2 = UInt8\[\], Col\_3 = Float16\[\]) then I populated it and I saved it with CSV.write("…

---

## [Binary\_reading](https://discourse.julialang.org/t/binary-reading/25207)

<div class="topic-metadata">

**Author:** [@Yoshua](https://discourse.julialang.org/u/Yoshua)\
**Replies:** 8\
**Last updated:** [June 27, 2019, 2:14pm UTC](https://discourse.julialang.org/t/binary-reading/25207 "2019-06-27T14:14:31Z")

</div>

Hello! I need help with the function for reading the binary file. I’m using function read\_bin(filename, dims::N) where N\<:Integer stream = open(filename, "r"); data = read(stream, Float16, dims); close(stre…

---

## [\`transcode(String, arr)\` sets the \`arr\` length to 0 elements](https://discourse.julialang.org/t/transcode-string-arr-sets-the-arr-length-to-0-elements/25751)

<div class="topic-metadata">

**Author:** [@sambitdash](https://discourse.julialang.org/u/sambitdash)\
**Replies:** 2\
**Last updated:** [June 27, 2019, 1:43pm UTC](https://discourse.julialang.org/t/transcode-string-arr-sets-the-arr-length-to-0-elements/25751 "2019-06-27T13:43:55Z")

</div>

Hi All, Is this behavior of transcode expected? Should transcode not be a function without side effects? regards, Sambit julia\> PADDING1 = \[0x28, 0xBF, 0x4E, 0x5E\] 4-element Array{UInt8,1}: 0x28 0xbf 0x…

---

## [Why read(io::IOBuffer, String) does not work as expected](https://discourse.julialang.org/t/why-read-io-iobuffer-string-does-not-work-as-expected/25754)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 4\
**Last updated:** [June 27, 2019, 1:25pm UTC](https://discourse.julialang.org/t/why-read-io-iobuffer-string-does-not-work-as-expected/25754 "2019-06-27T13:25:52Z")

</div>

io = IOBuffer() write(io, "name, age \\n tom, 12") data = read(io, String) # return empty string, not as expected The following code works data = String( take!(io) ) # return \`name, age \\n tom, 12\` as expected Why…

---

## [Writing permissions denied](https://discourse.julialang.org/t/writing-permissions-denied/25759)

<div class="topic-metadata">

**Author:** [@MartaVanin](https://discourse.julialang.org/u/MartaVanin)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 12:10pm UTC](https://discourse.julialang.org/t/writing-permissions-denied/25759 "2019-06-27T12:10:53Z")

</div>

Hi! I have been working with julia about one year now. From a couple of days, I can start and work on my .jl files for a while, saving them regularly. However, after a few saving actions, I suddenly I can’t save them a…

---

## [How to submit code coverage results to codecov/coveralls via GitLab CI?](https://discourse.julialang.org/t/how-to-submit-code-coverage-results-to-codecov-coveralls-via-gitlab-ci/25503)

<div class="topic-metadata">

**Author:** [@vlandau](https://discourse.julialang.org/u/vlandau)\
**Replies:** 13\
**Last updated:** [June 24, 2019, 7:57pm UTC](https://discourse.julialang.org/t/how-to-submit-code-coverage-results-to-codecov-coveralls-via-gitlab-ci/25503 "2019-06-24T19:57:36Z")

</div>

Hi everyone, I’m working on developing my first Julia package, and I want to make sure I have the code coverage aspect down before committing to developing and hosting the package on GitLab (which I prefer for a few rea…

---

## [Visualising a decision tree using GraphViz](https://discourse.julialang.org/t/visualising-a-decision-tree-using-graphviz/5087)

<div class="topic-metadata">

**Author:** [@Devi\_Sree](https://discourse.julialang.org/u/Devi_Sree)\
**Replies:** 4\
**Last updated:** [June 27, 2019, 11:42am UTC](https://discourse.julialang.org/t/visualising-a-decision-tree-using-graphviz/5087 "2019-06-27T11:42:36Z")

</div>

I see python visualisation of tree using Graphviz whch is simple and only few lines. \>\>\> from sklearn.datasets import load\_iris \>\>\> from sklearn import tree \>\>\> clf = tree.DecisionTreeClassi…

---

## [Behavior of threaded loop with BoundsError](https://discourse.julialang.org/t/behavior-of-threaded-loop-with-boundserror/25733)

<div class="topic-metadata">

**Author:** [@MaximilianJHuber](https://discourse.julialang.org/u/MaximilianJHuber)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 11:09am UTC](https://discourse.julialang.org/t/behavior-of-threaded-loop-with-boundserror/25733 "2019-06-27T11:09:26Z")

</div>

function f1() x = zeros(10000) Threads.@threads for i in 1:100000 #typo causes BoundsError x\[i\] = 2.0 \* i end return x end f1() returns x with values from 2 up to 20000 and prints Error thrown i…

---

## [Unfortunate deprecation of showall in DataFrames](https://discourse.julialang.org/t/unfortunate-deprecation-of-showall-in-dataframes/15627)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 3\
**Last updated:** [June 27, 2019, 9:53am UTC](https://discourse.julialang.org/t/unfortunate-deprecation-of-showall-in-dataframes/15627 "2019-06-27T09:53:09Z")

</div>

Understandable to reduce API surface area and eliminate lots of special case functions. Whether the loss of convenience is worth the streamlining is in the eye of the beholder. This one seems unfortunate: \*\*┌ Warning:…

---

## [Why is Vector{Float16} \<: AbstractVector{AbstractFloat} being false?](https://discourse.julialang.org/t/why-is-vector-float16-abstractvector-abstractfloat-being-false/25755)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [June 27, 2019, 9:24am UTC](https://discourse.julialang.org/t/why-is-vector-float16-abstractvector-abstractfloat-being-false/25755 "2019-06-27T09:24:04Z")

</div>

julia\> Float16 \<: AbstractFloat true julia\> Vector{Float16} \<: AbstractVector true julia\> Vector{Float16} \<: AbstractVector{AbstractFloat} false why?

---

## [Abstract Type Number does´t recognize Int64 as suitable type](https://discourse.julialang.org/t/abstract-type-number-does-t-recognize-int64-as-suitable-type/25750)

<div class="topic-metadata">

**Author:** [@Volker](https://discourse.julialang.org/u/Volker)\
**Replies:** 9\
**Last updated:** [June 27, 2019, 8:56am UTC](https://discourse.julialang.org/t/abstract-type-number-does-t-recognize-int64-as-suitable-type/25750 "2019-06-27T08:56:30Z")

</div>

I have to question to the following code: I get an MethodError message if I run the code below: “LoadError: MethodError: no method matching ox1(::Array{Int64,2}, ::Array{Int64,2})” But actually I don´t understand wh…

---

## [How to create an empty dataframe from a vector of row names and column names](https://discourse.julialang.org/t/how-to-create-an-empty-dataframe-from-a-vector-of-row-names-and-column-names/25650)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 11\
**Last updated:** [June 27, 2019, 6:29am UTC](https://discourse.julialang.org/t/how-to-create-an-empty-dataframe-from-a-vector-of-row-names-and-column-names/25650 "2019-06-27T06:29:45Z")

</div>

Hi, I would like to create a large empty dataframe of type Floats from a vector of row names and column names. For example rn=\["row1", "row2", "row3"\] cn=\["col1", "col2", "col3"\] Thanks !

---

## [First steps with Dagger](https://discourse.julialang.org/t/first-steps-with-dagger/25739)

<div class="topic-metadata">

**Author:** [@abx](https://discourse.julialang.org/u/abx)\
**Replies:** 2\
**Last updated:** [June 27, 2019, 1:15am UTC](https://discourse.julialang.org/t/first-steps-with-dagger/25739 "2019-06-27T01:15:12Z")

</div>

I am moving my first steps with Dagger.jl and I need some help. The following code works fine using Dagger using Distributed addprocs(4) @everywhere using Dagger @everywhere function f(x) println(x) x end a = delay…

---

## [Optional positional arguments NOT occur at end?](https://discourse.julialang.org/t/optional-positional-arguments-not-occur-at-end/25749)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 4\
**Last updated:** [June 27, 2019, 12:40am UTC](https://discourse.julialang.org/t/optional-positional-arguments-not-occur-at-end/25749 "2019-06-27T00:40:10Z")

</div>

we know that optional positional arguments must occur at end, however, functions like zeros() and ones() seems to violate the rule: zeros(\[T=Float64,\] dims...) ones(\[T=Float64,\] dims...) I tried to understand how it w…

---

## [Plot3d: how to set size of graph, or size of GIF file generated from one](https://discourse.julialang.org/t/plot3d-how-to-set-size-of-graph-or-size-of-gif-file-generated-from-one/25738)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 2\
**Last updated:** [June 26, 2019, 9:49pm UTC](https://discourse.julialang.org/t/plot3d-how-to-set-size-of-graph-or-size-of-gif-file-generated-from-one/25738 "2019-06-26T21:49:35Z")

</div>

Out of the answer I got from How to create an animation based on t, x, y and z data? - #6 by fusion809 I’ve now got Julia code that works in generating a 3D animation of chaotic attractors, like the Rossler Attractor. Th…

---

## [Julia included in Oreilly's "Emerging Programming Languages" report (June 2019)](https://discourse.julialang.org/t/julia-included-in-oreillys-emerging-programming-languages-report-june-2019/25562)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 52\
**Last updated:** [June 26, 2019, 4:19pm UTC](https://discourse.julialang.org/t/julia-included-in-oreillys-emerging-programming-languages-report-june-2019/25562 "2019-06-26T16:19:25Z")

</div>

It’s a nice and positive presentation of the language, although superficial compered to the others they covered:

---

## [Boosted trees implementation feedback](https://discourse.julialang.org/t/boosted-trees-implementation-feedback/25746)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 0\
**Last updated:** [June 26, 2019, 9:00pm UTC](https://discourse.julialang.org/t/boosted-trees-implementation-feedback/25746 "2019-06-26T21:00:22Z")

</div>

I’ve taken a shot at developing a boosted trees package and would be interested in having feedback on its usability: https://github.com/Evovest/EvoTrees.jl I’m conscious there’s been some initiatives in that direciton a…

---

## [Understanding environments and projects](https://discourse.julialang.org/t/understanding-environments-and-projects/25741)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 1\
**Last updated:** [June 26, 2019, 8:21pm UTC](https://discourse.julialang.org/t/understanding-environments-and-projects/25741 "2019-06-26T20:21:25Z")

</div>

I have a few questions about environments and projects in julia’s package manager. I have read the documentation, so these questions are really about making sure I understand properly. Q1. In .julia/environments lists a…

---

## [Merging a long-active development branch of a package](https://discourse.julialang.org/t/merging-a-long-active-development-branch-of-a-package/25730)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 5\
**Last updated:** [June 26, 2019, 6:49pm UTC](https://discourse.julialang.org/t/merging-a-long-active-development-branch-of-a-package/25730 "2019-06-26T18:49:50Z")

</div>

Those who follow the JuliaStats world will be aware that a major upgrade of StatsModels just landed as v"0.6.0", aka “Terms 2.0”. Thanks to @dave.f.kleinschmidt for leading the development on this. I have a “terms2.0” …

---

## [Equivalent of Python if \_\_debug\_\_](https://discourse.julialang.org/t/equivalent-of-python-if-debug/25715)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 3\
**Last updated:** [June 26, 2019, 5:46pm UTC](https://discourse.julialang.org/t/equivalent-of-python-if-debug/25715 "2019-06-26T17:46:57Z")

</div>

In Python there is a feature for simple print style debugging to be switched on or off. If you run a Python script with the -O option then if \_\_debug\_\_: print variable, variable, variable Is there an equivalent …

---

## [Precision–agnostic function with powered mathematical constants generated from symbolic SymPy expression](https://discourse.julialang.org/t/precision-agnostic-function-with-powered-mathematical-constants-generated-from-symbolic-sympy-expression/25592)

<div class="topic-metadata">

**Author:** [@tikej](https://discourse.julialang.org/u/tikej)\
**Replies:** 5\
**Last updated:** [June 26, 2019, 5:29pm UTC](https://discourse.julialang.org/t/precision-agnostic-function-with-powered-mathematical-constants-generated-from-symbolic-sympy-expression/25592 "2019-06-26T17:29:18Z")

</div>

Hello Julia users, I use Mathematica to generate analytic expressions for some quite complicated integrals I calculate. In Mathematica I generate tables of indexes and symbolic expression e.g. {{-1, -1, -1, -1, -1, -1…

---

## [MixedModels.jl confidence intervals and repeated measure, how to get?](https://discourse.julialang.org/t/mixedmodels-jl-confidence-intervals-and-repeated-measure-how-to-get/25534)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 9\
**Last updated:** [June 26, 2019, 3:38pm UTC](https://discourse.julialang.org/t/mixedmodels-jl-confidence-intervals-and-repeated-measure-how-to-get/25534 "2019-06-26T15:38:17Z")

</div>

I have a data: julia\> df 298×6 DataFrame │ Row │ Subject │ Period │ Seq │ Formulation │ logData │ Data │ │ │ Categorical… │ Categorical… │ Categorical… │ Categorical… │ Float64 │ Float64 │ ├─…

---

## [Flux RNNs leak into CuRNNs](https://discourse.julialang.org/t/flux-rnns-leak-into-curnns/25661)

<div class="topic-metadata">

**Author:** [@tanhevg](https://discourse.julialang.org/u/tanhevg)\
**Replies:** 2\
**Last updated:** [June 26, 2019, 3:27pm UTC](https://discourse.julialang.org/t/flux-rnns-leak-into-curnns/25661 "2019-06-26T15:27:57Z")

</div>

Hello, has anyone encountered Flux RNNs invoking cudnn code, although none of the models from Flux.CUDA are used? My model is built on top of Flux.LSTM (not CuLSTM), but I get the following error: ERROR: LoadError: CUD…

---

## [Fast logsumexp](https://discourse.julialang.org/t/fast-logsumexp/22827)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 14\
**Last updated:** [June 26, 2019, 3:21pm UTC](https://discourse.julialang.org/t/fast-logsumexp/22827 "2019-06-26T15:21:46Z")

</div>

We recently held a competition among the students in a Julia course we are teaching. The goal of the competition was to profile and optimize a provided particle-filter simulation. After all the obvious things were taken …

---

## [Is there a tool to automatically detect type piracy?](https://discourse.julialang.org/t/is-there-a-tool-to-automatically-detect-type-piracy/25721)

<div class="topic-metadata">

**Author:** [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Replies:** 2\
**Last updated:** [June 26, 2019, 2:40pm UTC](https://discourse.julialang.org/t/is-there-a-tool-to-automatically-detect-type-piracy/25721 "2019-06-26T14:40:57Z")

</div>

Hi, I think that I read here that someone has written a small script to detect type piracy, but I can not find it. Thanks in advance, Best,

---

## [Generating type specific deserialisers for BSON.jl](https://discourse.julialang.org/t/generating-type-specific-deserialisers-for-bson-jl/25720)

<div class="topic-metadata">

**Author:** [@richiejp](https://discourse.julialang.org/u/richiejp)\
**Replies:** 0\
**Last updated:** [June 26, 2019, 1:14pm UTC](https://discourse.julialang.org/t/generating-type-specific-deserialisers-for-bson-jl/25720 "2019-06-26T13:14:56Z")

</div>

This is more of a blog post than a forum post, but I don’t maintain a blog so… I have spent quite some time trying to optimise the excellent BSON.jl library as we make heavy use of it. The result of this so far is so…

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

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