Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showprogress option not working in IQ solver #52

Closed
p-ortega opened this issue May 22, 2023 · 6 comments
Closed

showprogress option not working in IQ solver #52

p-ortega opened this issue May 22, 2023 · 6 comments
Labels

Comments

@p-ortega
Copy link

p-ortega commented May 22, 2023

Hi!

I'm running a simulation using the showprogress option in the IQ solver as:

nreal = 50

#conditional simulation with loaded boreholes
condsim = SimulationProblem(geodata, domain, :prop1, nreal)

solver = IQ(:prop1 => 
            (trainimg=TI, 
            tilesize=(40,40,5), 
            overlap = (1/4, 1/4, 1/4)),
            showprogress = true)
solution = solve(condsim, solver)

but no progress is being shown in the terminal.

Thanks!!

@juliohm
Copy link
Member

juliohm commented May 22, 2023

Hi @p-ortega , where you are running the script? Pluto? Jupyter? Can you try in the Julia REPL?

@p-ortega
Copy link
Author

Hi @juliohm

I've tried running it in Jupyter, in the prompt (windows) with julia script-name.jl and in the REPL with julia> include("path/to/script-name.jl") but no luck.

@juliohm
Copy link
Member

juliohm commented May 23, 2023 via email

@p-ortega
Copy link
Author

v0.18.7 and Julia v1.8.5

@juliohm juliohm added the bug label May 23, 2023
@juliohm
Copy link
Member

juliohm commented May 23, 2023

Thank you @p-ortega , I can reproduce the issue. The problem is that our high-level IQ solver is calling the underlying iqsim function to generate each realization one-by-one in parallel, so the option showprogress doesn't take effect. We need to solve this issue probably in GeoStatsBase.jl by providing a general progress mechanism for all GeoStats.jl solvers.

In the meantime, if you need showprogress, I recommend using the more low-level iqsim function in this package.

@juliohm juliohm changed the title showprogress option not showing progress showprogress option not working in IQ solver May 23, 2023
@juliohm
Copy link
Member

juliohm commented May 30, 2023

Fixed in the latest release.

@juliohm juliohm closed this as completed May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants