JuliaDataCubes / JuliaDataCubes/YAXArrays.jl

Computations with mapCube doesn't show ProgressBar

Open
#19 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Julia
Stars
132
Forks
25
PR merge metrics
No merged PRs in 30d

Description

With ESDL we got a nice progress bar for long running computations. This is not showing up for me at the moment. I would really like to have this progress bar to estimate for very heavy computations how much more computing power I would need to get this done in a reasonable amount of time.

I am using this test function at the moment, because it will take a fixed amount of time.

I would be thankful for some pointers as of where I i would have to fix this so that I could have a look myself tomorrow.

function csleep!(xout, xin)
           ts = collect(skipmissing(xin))
           sleep(0.1)
           #@show size(xout)
           xout .= mean(ts)
           end
arr = rand(10,10,90);
x = RangeAxis(:X, 1:10)
y = RangeAxis(:Y, 1:10)
t = RangeAxis(:time, 1:90)
yax = YAXArray([x,y,t], arr)
@time mapCube(csleep!, yax, indims=InDims("Time"))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the mapCube entry point and compare its progress reporting with the ESDL behavior described in the issue. Run the provided Julia csleep! and mapCube example, then verify that a progress bar appears during the long-running computation.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.