Investigating a package dependency issue
Hi, what is the recommended way to investigate a package dependency issue? I’m asking a general question in the “teach to fish” spirit, but here are the specifics: I can’t get SystemBenchmark.jl to...
View ArticleImpute by index
Hello! So I am new to the language, I have been learning now about all the joins, the select, combine, transform, etc. But there is an issue that I don’t know how to solve without creating a for loop:...
View ArticleAdding a package stops at "Resolving package versions" since yesterday
This is a recent problem, I’m not sure what’s causing it, and I’m wondering if anyone has a solution. (@v1.4) pkg> add PkgTemplates Updating registry at `C:\Users\peter\.julia\registries\General`...
View ArticleA little problem with combine from DataFrames.jl
Hi! I am learning the usage of DataFrames.jl from Julia Academy and I found a problem. When I used combine for creating a new column, the tutorial and any other material (like this) that I have...
View ArticleAn unexpected result using DataFrames.jl
Hi! Following JuliaAcademy, I had found something that results confusing. using DataFrames, Random function sim_e() draw = Float64[] while true push!(draw, rand()) sum(draw) > 1.0 && return...
View ArticleGLPK callbacks in JuMP
Hello! I’ve been trying to implement a callback function using GLPK that rejects feasible solutions (with lazy constraints) when certain conditions are met. However, I understand that JuMP only allows...
View ArticlePlease help, I study computer science at the university
Please my friends Can you answer these questions related to the Julia programming language ? Classify your language (imperative, functional, logic, OO, your choice). Is the scoping static or dynamic?...
View ArticleHow to plot square root of solution to an ODE
Hi, I have an ODEProblem, let us say like the one in this example: https://docs.sciml.ai/stable/tutorials/ode_example/ function parameterized_lorenz!(du,u,p,t) du[1] = p[1]*(u[2]-u[1]) du[2] =...
View ArticleWhile loop
Hello, I’m trying to rewrite some old java code to julia and I’ve problem with whlie loop. In java I was while(++a < b && c>d) and here I see that ++ is “not a unuary operator”. Is it...
View ArticleDebugging macros at module loading
Hello, I am using several macros in a module I am creating. How can I step through the macro for debugging? I am looking for something like (which obviously does not work, not a function call): @enter...
View ArticleNeed to sample from two-parameter univariate exponential distribution
Hello, I need to sample from a two-parameter family of continuous univariate distributions supported on the interval [0,C] where C is around 10^{12}. The parameters are \alpha and \beta and the PDF is...
View ArticleQuery @mutate changes other column type
Hi all, this is my smallest code that I fight with: contents = """ "5674012","aa66aa66" "5674012","9b4e08e5" "5674012","b036aa66,b036aa67,b036aa68" """; batches = CSV.File(IOBuffer(contents); header =...
View ArticleError when installing PowerModels
I have just installed Juno and I have a problem with installing the package PowerModels. I’m using windows 10 home 64-bit. The problem is displayed in the next lines (@v1.4) pkg> test PowerModels...
View ArticleHow to allow time array to be passed as an input for the parameter p...
hey, i am learning the example it works but i do not know if it is correct. using DifferentialEquations, Plots l = 1.0 # length [m] m = 1.0 # mass[m] g = 9.81 # gravitational acceleration [m/s²]...
View ArticleCan someone help me on how to resolve package conflicts with dev'ed packages?
I’d like to understand better the registry system, and how to troubleshoot this error ERROR: Unsatisfiable requirements detected for package <<>> I wanted to use the newest version of...
View ArticleDictionary with loop and squared numbers
i’m learning Julia through juliaacademy.com and i’m not getting past exercise 4.2. 4.1 I got it easy, but I ended up stalling right away. I’ve tried everything but it didn’t work at all. if anyone can...
View ArticleProblem with package TableView / Julia usage
First of all I would like to apologize if my question is too elementary. Although I have some experience with MS Excel VBA I am still a beginner at general use programming languages. Also, I would...
View ArticleConfusion with arrays and functions
I was using a function inside a loop to modify a 2-Dimensional array variable (say DATA) in my code when I realised that the variable changes even when I have not given DATA as an argument or tried to...
View ArticleArray/Vector multiplication for single element arrays
Hi, I’m a long term Matlab user just starting to wade into the world of Julia, so forgive me if my question is naive. I’m am currently writing some code to perform a number of matrix manipulation...
View ArticleWhat's the correct way to including functions that only got introduce from a...
I want to support all LTS Julia versions which is currently 1.0.5. However, some functions like nonmissingtype is only introduced in 1.3 What’s the correct way to support these type of functions?...
View Article