12,845 questions
Score of 0
1 answer
71 views
Using DIVAnd loadobs feature, but issues with 'obsid' feature
In Julia, I'm using SeaDataNet's DIVAnd to try to perform an objective analysis on in-situ data.
I'm running this code:
"@time obsval, obslon, obslat, obsdepth, obstime, obsids = loadobs(Float64, ...
Score of 0
1 answer
79 views
Package installation ERROR: KeyError: key v"version" not found
I usually come across the following error when installing a new package in Julia.
When I run the following in the REPL:
julia> import Pkg
julia> Pkg.add("Foo")
Updating registry at `~/...
Score of 3
1 answer
160 views
What produces the strange result of qr(A) when the number of the columns of A is greater than the rank of A?
I do not understand the behavior of Julia's qr function.
For the result of qr(A_1), the rank of A_1 is 2, so the result is as expected.
On the other hand, the result of qr(A_2) is puzzling. Since the ...
Best practices
2
votes
2
replies
123
views
Type Unstable Functions in Julia
I am writing some numerical simulations in Julia.
I have some functions which compute many parameters iteratively. When I am debugging, I like to have a debugging option, where a function additionally ...
Score of 0
1 answer
55 views
Two structurally identical ModelingToolkit models — one solves, one crashes at `solve`
I have two Julia models using ModelingToolkit.jl that are identical in every way except the name of one sub-component. Despite this, structural_simplify produces a different number of unknowns for ...
Score of 2
1 answer
50 views
How can I place axis labels closer to a PolarAxis in Makie and remove the unused surrounding regions?
I would like to add custom axis labels to a PolarAxis in Makie. Since there does not seem to be a direct way to place labels in polar coordinates, I tried overlaying a second Axis and using its xlabel ...
Tooling
0
votes
2
replies
76
views
JuMP Semicontinuous range solver compatibility
What are the solvers that interface with the Semicontinuous variable range in JuMP?
using JuMP
using solver # solver that supports Semicontinuous range
model = Model(solver.Optimizer)
@variable(...
Score of 0
1 answer
65 views
Eglot-jl fails to index my imported julia packages
Julia 1.12 with my .emacs config, where I placed in my .../lsp-isolated my LanguageServer.jj and SymbolServer.jl :
(use-package eglot-jl
:after julia-mode
:config
(eglot-jl-init)
(setq eglot-...
Score of 1
1 answer
61 views
I am trying to make a PPM file and I am only getting a singular pixel. How do I fix this?
I was following along with the "ray tracing in a weekend" e-book and I was attempting to do the first task of making a ppm file to produce an image. I have written some code but it only ...
Best practices
0
votes
1
replies
49
views
Using Julia's multiple dispatch as an interface vs as a lookup table for extensible library code
In Java, there is the concept of an Interface, which groups several method signatures together without any implementations. This interface can then be 'implemented' on a class to specify that that ...
Score of 0
1 answer
80 views
Reloading a local Julia package (without Revise)
I was following the pkg.jl documentation here: https://pkgdocs.julialang.org/v1/creating-packages/
The setup is that a project HelloWorld has been generated, and then activated. At some point the ...
Score of 1
0 answers
51 views
How to compute QNMs using KerrQuasinormalModes.jl?
I have downloaded the package KerrQuasinormalModes.jl. I have never used Julia before, and I tried to run this package using Visual Studio Code. However, I keep encountering error messages when ...
Tooling
0
votes
0
replies
39
views
Implicit surface mesh creation using Meshes.jl
Is there an easy way to generate a simple triangular mesh, given an implicit surface defined by
S = {(u,v) : f(u,v) = 0}
where f(u,v) = ± sqrt(1-(v²)-((u-v²)²)) ?
Currently, I have successfully ...
Score of 2
2 answers
124 views
What is the difference between `@. f(x,p) = expression` and `f(x,p) = @. expression` in Julia?
I was trying to understand the difference between the two following Julia snippets:
@. model(x, p) = p[1]*exp(-x*p[2])
and
model(x, p) = @. p[1]*exp(-x*p[2])
where the first one is taken from the ...
Advice
1
vote
10
replies
93
views
How to get highest representable value of BigInt in julia
For the basic types Int8 ,Int16,Int32,Int64 and Int128 one can obtain the highest representable value by calling typemax, e.g.
julia> typemax(Int8)
127
How can I get the highest representable ...