Pkg artifact download when lazy=true
I’m building a docker image with an application contained within and all pre-requisites are provided. This is important because the image runs without an internet connection. However I found (to my...
View ArticleSumming an array does not return type that matches eltype of the array
This seems strange to me: julia> typeof(sum(ones(Int32,3,4))) Int64 Shouldn’t the result be type Int32? This seems related to Allow to specify the result type of a sum #5311, which was closed way...
View ArticleChoose a tool for curve fitting out of all available
Hello! I’m relatively new to Julia. This year I saw the JuliaCon and I’m trying to use it for my Master Thesis. I need to fit data from a simulation to a Foster series but I can’t really choose the...
View ArticleUnable to debug code
Hi everyone, I am new to the community. I started a sample project, working on 3D objects and it has worked terrific so far. I wanted to debug the code to start dealing with manipulation of the loaded...
View ArticleProblem using "diffeqpy" package on Colab
I’m unable to import the “diffeqpy” which is the python base pack for the DifferentialEquation.jl on Google Colab. can anyone help? this is the error I receive trying to " from diffeqpy import de" :...
View ArticleWhat is the equivalent of “patch” function in MATLAB in Julia?
what is the equivalent of “patch” function in MATLAB in Julia? 2 posts - 2 participants Read full topic
View ArticleSetting up testing and code coverage on Travis
I’ve already got my project on Travis to create the documentation and I wanted to add testing and the corresponding information on code coverage. I’ve added the corresponding testing script and was...
View ArticleSerialize or swap file?
Hello! When processing data that does not fit in RAM, what is more efficient - manual serialization or swap file? Splitting the algorithm into subtasks will not work, because at each stage of the...
View ArticleMongoDB Atlas
I’m trying out julia and need to connect to a mongoDB Atlas instance to continue, any pointers on how to do that in julia, thx! 1 post - 1 participant Read full topic
View Article‘UndefVarError: xx not defined’
function ackley(x) d = length(xx); c = 2pi; b = 0.2; a = 20; for ii in 1:d xi = xx(ii); sum1 = sum1 + xi^2; sum2 = sum2 + cos(cxi); end sum1 = sum1 + x1^2; sum2 = sum2 + cos(cx2); term1 = -a *...
View ArticleJulia data storage
Hello, Please advise a reliable, stable and simple package for long-term data storage in a universal cross-platform format? it is desirable to support dataframe 3 posts - 3 participants Read full topic
View ArticleWhy does this conversion happen implicitly?
julia> d = Dict{String,Vector{Int}}() Dict{String,Array{Int64,1}}() julia> v = view(zeros(Int, 10), :) 10-element view(::Array{Int64,1}, :) with eltype Int64: 0 0 0 0 0 0 0 0 0 0 julia>...
View ArticleUsing package dependencies
Hi! I have recently started to learn Julia, so if it’s too basic question, please bear with me. I’m following Think Julia. In Chapter 4, it is teaching turtle graphics and suggested to download the...
View ArticleSymPy.jl: how to get non-zero assumptions?
in the following, c should be assumed non-zero for the solution x = 1 /c : import SymPy const sympy = SymPy.sympy julia> eqn = sympy.sympify("x * c - 1") c⋅x - 1 julia> sol = sympy.solve(eqn,...
View ArticleHow Julia's virtual environment physically store the packages added in the...
Hi, I am trying to understand the environment in Julia which can be initiated in ] Pkg mode with activate . But when I add a new package with a specific version with add where it physically installed?...
View ArticleSystem of ODE passed to the OrdinaryDiffEq solver in the symbolical array...
I have a bulky system of 26 differential equations with 26 variables. There is a trouble of solving such a system when I pass it to the function “ode!” as an array of symbolic equations. As a...
View ArticleWhile loop until value falls within a range
I’d like to be able to randomly pick a species that has a trophic level within a certain range. num_animals = 40 trophic_position = rand(num_animals) function target_species_check_change() sp =...
View ArticleDiffEqTutorials not working in Julia 1.5.0
Hi all, I’ve decided to give differential equations a go, and wanted to follow along with the notebooks, I have Julia 1.5.0 installed. The documentation for DifferentialEquations.jl says to run using...
View ArticleAccess a struct field from a string
Hey Everyone! I have incurred in an issue that I believe is conceptual. I have a struct that I want to fill from a dictionary and i’m encountering problems on accessing the struct fields. The main...
View ArticlePython to julia
this is a python code that i try to convert to julia. Input: [“bella”,“label”,“roller”] Output: [“e”,“l”,“l”] class Solution: def commonChars(self, A: List[str]) -> List[str]: check = list(A[0])...
View Article