RGB image operations: addition works, multiplication doesn't?
Hi all I’m new to Julia, working on a script to perform flat field correction on images (as an introductory project, coming from python). using TestImages, Images, Statistics img =...
View ArticleCombine more DataFrames with some columns missing
Hi all, I deal with API, that returns sometimes incomplete JSON. Some properties are missing. That could be reproduced with this code: using Query using CSV using JSON using DataFrames testjson = """...
View ArticleProduction Package Installation Process - Install with user 'a', Access from...
Here is the steps on production environment (Very standard) Deployment process [one time task]: Copy source code and install all packages --> this is done by sudo user, lets say “sshuser” Run time...
View ArticleError with using distributions package
HI I am trying to use distribution package and I have an error as below I am using window10 64bit, 4gRam. [ Info: Precompiling Distributions [31c24e10-a181-5473-b8eb-7969acd0382f] Cannot open cache...
View ArticlePlotly gives error with contour plot
I am using Julia 1.4.1 with juno. I want to draw a filled contour plot. Following codes give me error. using Plots x = -3:0.1:3 y = -3:0.1:3 X = reshape([xi for xi in x for yj in y], length(y),...
View ArticleGetting a list of file names
I’ve been asked to convert some code from Matlab to Julia, and I am stuck right at the beginning with some Regex issues I want the equivalent of file_name = dir(‘A*.mmode’) file_name =...
View ArticleUpdating Values via Iteration
I’m having a few issues with using a while loop to update values and return. The code seems to work fine when wrapped in functions but not otherwise. As I’m still learning the language I want to...
View ArticleLegends on figure
I am using Plots.jl with plotly() backend. Legends of following figure are outer of the figure. Is it possible to take these legends on the figure as below Thank you. 9 posts - 3 participants Read...
View ArticlePlease vote if you find the Collapsed view menu button position in...
github.com/JuliaDocs/Documenter.jl Collapsed view menu button should be on the same side as the menu opened 07:40PM - 04 May 20 UTC BioTurboNick I don't know if this is standard, but I saw it used in...
View ArticleTell if a key is present in a dict
This is a very beginner question. I would like to check if a key exists in a dictionary. julia> 1 in Dict(1=>'a', 2=>'b') ERROR: AbstractDict collections only contain Pairs; Either look for...
View ArticleClear variable?
I am trying to sample a Turing model with this Gibbs sampler: sampler = Gibbs(PG(200, :toss), NUTS(.65, :a, :b, :θ, :σ, :μ, :temp)) Unfortunately, while making sure some of my code was correct, I have...
View Article"Type NamedTuple has no field" error
@model function f() s ~ Bernoulli(.5) if s == 1 v~Normal(0,1) else w ~ Normal(1,2) end end; model = f(); chain=sample(model,PG(20),100) gives the error CTaskException: type NamedTuple has no field v...
View ArticleExpaning Juno result
Is there a shortcut or a way of setting up a shortcut to expand the inline results that juno provides? Having to manually click the little arrow is getting tedious. I see that it can be configured to...
View ArticleCan't access large SparseMatrix using index
Hey! I am trying to access a large SparceMatrix (205440×102400) using the code below and it gives me a “BoundsError”. For small values of N = 4 and M = 4, I don’t have any problem. Could someone help...
View ArticleOpen a REPL at the stack frame of an error (for debugging)?
When an eror happens, we get a stack trace. But I realized that for debugging it could be extremely useful to ask that the REPL stay at the stack frame where the error happened rather than returning...
View ArticlePoint wise operations on array of vectors
I have an array of vectors (of different lengths) and I want to perform a point wise operation on all values: a= [[1 2 3 4], [1 2 3 4 5], [1 2 3]] b = a .-1 This give me an error. MethodError: no...
View ArticleAnimation slower than plotting separately
Hi, I want to plot animation of the graph in which the width of every edge changes over time but the node location is given. Here is the code generating one plot, given a simple graph G, the location...
View ArticlePlot Labelling
Hi everyone, I’m trying to make a graph of covid-19 case numbers in 3 countries. I’m having trouble with getting the labels to cooperate. Unlike what’s shown below, I want something like blue: AUS,...
View ArticleIterating over and slicing a multidimensional array
Is it possible to iterate over a multidimensional array and slice the different dimensions in a loop? For example instead of julia> a = zeros(2,2) 2×2 Array{Float64,2}: 0.0 0.0 0.0 0.0 julia>...
View ArticlePlotting streamlines
Hello everyone, I have 2d vectors u and v which are velocity fields in x and y direction, How can I plot the streamlines? 2 posts - 2 participants Read full topic
View Article