How to wait on a condition for tasks
I am having some practice with tasks, channels and conditions. I would like to wait on a specific condition with a timeout. If the timeout ends, just put! a default value and continue, otherwise put!...
View ArticleChange Column Names of a DataFrame - Previous methods don't work
Apologies for the repeat of old question, but most of the posts on this question seem to give outdated/nonfunctional solutions for defining or updating the column names of a DataFrame....
View ArticleReason for the time difference in assigning columns with dot syntax
julia> const N = 10000; julia> const x = rand(N); julia> const m = zeros(N, 2); julia> using BenchmarkTools julia> @btime $m[:, 1] = $x; 12.799 μs (0 allocations: 0 bytes) julia>...
View ArticleUse constant variable from outer module in inner module
Hey community I’ve got a question about modules. I want to use a field of an outer module in an inner module. How would I do that? module A const A_const = "stuff" module B do_stuff(A_const) end end 2...
View ArticleError when opening notebook files
I followed the instructions, tried it on two different computers but each time I open a notebook file I receive the below error (any ideas as to how I can fix this?): Fetch content failed syntaxerror:...
View ArticleInitialization of array of arrays with `fill(ones(1),2,2)`: only one vector...
Disclaimer: this is explicit in the help entry of fill, so I am not complaining of anything… julia> m = fill(ones(1),2,2) 2×2 Array{Array{Float64,1},2}: [1.0] [1.0] [1.0] [1.0] julia> m[1,1][1]...
View ArticleMax() bug?
julia> a=[1,2,3]; julia> b=[10,-Inf,9]; julia> c=[-30,5,2]; julia> max(a,b,c) 3-element Array{Float64,1}: 10.0 -Inf 9.0 julia> max.(a,b,c) 3-element Array{Float64,1}: 10.0 5.0 9.0...
View ArticleODBC.DSN(dsn, user, password) error: DSN not defined
hi, I have been using ODBC.DSN(dsn, user, password) to connect to oracle database using ODBC.jl (v0.8.1) and Julia 1.2.0 with no issue. But when I upgraded to Julia 1.5.2 and ODBC (1.0.4), I got an...
View ArticleMean of each column in a DataFrame?
Hi! What would be the cleanest way to find the mean of each column in a dataframe? I would like to avoid writing for loops, since I think it should be possible without it. Kind regards 5 posts - 3...
View ArticleNot sure why my CI is failing for a Particular Version?
Hi, My local machine has julia version 1.5. My CI is failing for version 1.1. Not sure what is the problem, I tells about some unsatisfied dependencies. Can some one can tell what is the problem. Here...
View ArticleCreating a specialisation of a built-in type?
Hi, I want to work through the “Ray Tracer Challenge” book whilst learning julia. To do so I’d like to achieve the following: have a MyTuple type that acts exactly as regular tuples do be able to...
View ArticleAdding Packages in VS code
I just added Julia to VS Code, and wrote my “Hello World” Program. But, when I try to use pkg.add(“Calulus.jl”) to add a calculus package, I get a load error. 8 posts - 3 participants Read full topic
View ArticleOutput in VSCode
I ran this, and didn’t get any errors: a=f(x,y)=x^2+y g1= derivative(sin,0.0) g2=derivative(a) print(g1) print(g2) I don’t however, have an output for the function, nor can I find a sum, when I put in...
View ArticleAutomerge is Failing is it because of Version Number?
Hi, My auto merge is failing not sure why. Is it because of the version number? Can some one help me to identify. Here is the auto merge pipeline. Also can someone explain what does that mean in the...
View ArticleWhy Unions dont inheret its union?
Why does this return false IntOrString = Union{Int,AbstractString} (IntOrString <: String, IntOrString <: Int) I am not questioning the decision, just curious to know the reason behind it Also...
View ArticleGet values for a collection of keys
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleIJulia Installation Problem - MbedTLS Error
Hi everyone, I am new in Julia, I am trying to install IJulia package. I am using Windows 10 ->64bit OS, and last version of Julia, 1.5.2 (Sept 23,2020). ]add IJulia is my command. It works until...
View ArticleMCMC sampling for ODEs with multiple outputs and dependence on an external...
Hi, I am trying to run MCMC sampling with Turing.jl for a system of ODEs in which some parameters depend on an external variable (voltage). Furthermore, I would like to use data from multiple...
View ArticleSplitting texts in an array
How to get a separate array for movie names and years from the array? l = [“The Wizard of Oz (1939)”, “Citizen Kane (1941)”, “The Cabinet of Dr. Caligari (Das Cabinet des Dr. Caligari) (1920)”,...
View ArticleOccasionally NaNs when using similar()
I am occasionally (but not always!) getting NaNs when using the similar command on a Float array. Here is a MME: using Random: seed! function run_weird_test() seed!(0) # this really shouldn't do...
View Article