Trouble understanding how time() works
@kw_martin wrote: I have a simple program using the time() function and can’t understand the results the time() function is giving. My guess is it has something to do with Julia’s optimization. I...
View ArticleIJulia notebook() Failed to Launch the IJulia Notebook in my Browser
@KGregory wrote: I was previously using IJulia notebook (Jupyter) to run the FUND model. I have just upgraded to Julia v.1.4.0, connected my julia installation with the central Mimi registry of Mimi...
View ArticleDefining functions using begin
@risingganymede wrote: I found that it is possible to define functions like this: f(x, y) = begin x + y end I couldn’t find documentation for this style of function definition in the Julia manual. My...
View ArticleError with modules sharing types
@peterj wrote: The following code gives me an error with Julia v1.4 # M1.jl module M1 export M1Type struct M1Type data::Real end end # M2.jl module M2 using ..M1 export f function f(x::M1Type) end end...
View Article"could not load library" problem from inside Juno
@nshaviv wrote: I am an enthusiastic julia newbie. I was trying to run ArrayFire (i.e., use the GPU with Julia). After downloading and installing ArrayFire and ArrayFire.jl, it worked in Julia running...
View ArticleHow is Julia Like Python?
@jasheldo wrote: I’ve been spending quite a bit of time learning Julia at a high level and have to say I’m excited and the prospect of what it is and what it can do. The benchmarks are impressive and...
View ArticleSyntax for type stability in Turing.jl
@sudete wrote: Turing.jl recommends to replace @model tmodel(x, y) = begin p,n = size(x) params = Vector{Real}(undef, n) for i = 1:n params[i] ~ truncated(Normal(), 0, Inf) end a = x * params y ~...
View ArticleError 'No such file or directory'
@beep wrote: Hi, This is my very first time using Julia. I tried to add the IJulia package but got this error message: (v1.3) pkg> add IJulia Cloning default registries into `C:\Users\name\.julia`...
View ArticleHow to customize Base.load_path()?
@LysandrosAn wrote: Hi community, is it possible to edit the contents of the Base.load_path()? Appending a new load path to it works, but it leaves the old one remaining, while overwriting the load...
View ArticleHow to add an inset to a plot
@jipphysics wrote: I am trying to understand how to plot a figure with an inset in Julia using the Plots package. I have tried the examples in the documentation without too much success (see...
View ArticlePrecompiled libraries
@erlebach wrote: Hi, Where can I find a collection of precompiled libraries for Julia? The very long times I have to wait to compile libraries such as Flux and even BSON is getting to me. Thanks....
View ArticleIs a way to use differential equation as multiple variable function for...
@PharmCat wrote: I have a function: dx/dt = f(x, y) = (p1 + y) * x + p2 * sqrt(x) where p1, p2 - parameter for optimization Is a way to make solution like sol(t, y) for nonlinear model fitting? Can it...
View ArticlePackage installation fail
@Kihong_Kim wrote: Hi, all. I have the following error and don’t know what to do… Any help will be appriciated. I use JuliaPro 1.4 and my OS is Win 10 64 bit. I search the webpage mentioned below but...
View ArticleJLD2 MethodError when dealing with large dictionaries?
@DocDave wrote: I have a numeric analysis code currently running on a cluster which serialises a dictionary contains several multi-million point arrays using the JLD2 library. The file is saved using...
View ArticleA way to create large dictionary? "ERROR: LoadError: syntax: expression too...
@olugovoy wrote: Hi there, What is the best way to create a large dictionary? This expression works for smaller Dicts: pDemand = Dict( (:DEM_ELC_DH, :ELC, :AL, :2018, :d001_h00) => 20.4280246,...
View ArticleCannot assign value to variable named data
@erlebach wrote: Here is MWE: using Flux.Data.MNIST data = 3 I get the error: image903×48 11.6 KB There is no variable called “data” in the Atom workspace: Any ideas? This is rather bothersome. I may...
View ArticleTuple with unknown n elements
@Locust wrote: I need to define a tuple of n elements ie (1,2,3,…,n) where n is the argument of function f as below function f(n) … None of the following work x=(1,2,3,…,n) x=(i, i=1:n) … end Posts: 3...
View ArticleGet new type with different parameter
@jonniedie wrote: How do I get a type with a different parameter? Let’s say I have some T where T<:SomeType{P} and I want the type SomeType{Q}. I can’t just do T{Q} because T is a concrete type....
View ArticleBuilding a Dockerfile with packages
@nnn wrote: I want to build a docker image with Julia packages ready to go. What are best practices for that? Here’s what I got so far: FROM julia RUN julia install.jl where install.jl is: using Pkg...
View ArticleAtom and Juno problem after the installation : I can't run my files
@juju wrote: Hello, I just installed Julia, Atom, and Juno. When I am trying to write a code, I have this error : “Warning: Atom.jl: unrecognised message ismodule”. I really don’t know what’s the...
View Article