Git Product home page Git Product logo

Comments (7)

anitagraser avatar anitagraser commented on August 20, 2024

Thank you for checking my port and for the recommendations! I had a good template in Alex Bruy's plugin.

from qgis-edge-bundling.

anitagraser avatar anitagraser commented on August 20, 2024

Currently, pressing run opens a big popup window that blocks everything until the algorithm finishes. Is that an issue with my code or with Processing in general?

from qgis-edge-bundling.

nyalldawson avatar nyalldawson commented on August 20, 2024

Currently, pressing run opens a big popup window that blocks everything until the algorithm finishes. Is that an issue with my code or with Processing in general?

Processing in general - it's a modal progress dialog for algs which can't safely run in background threads.( Not sure why it defaults to such a large size). But a fix is very close to allow background execution by default for Python algs...

from qgis-edge-bundling.

nyalldawson avatar nyalldawson commented on August 20, 2024

Try with a new master build... Your algorithm should operate in a background task now!

from qgis-edge-bundling.

anitagraser avatar anitagraser commented on August 20, 2024

"Run in background" looks great in nightly!

On the other hand, I cannot cancel the algorithm. If I click cancel, it takes as long as if I let it run uninterrupted and then shows "Execution failed"

from qgis-edge-bundling.

nyalldawson avatar nyalldawson commented on August 20, 2024

@anitagraser could it be getting caught up in the call to force_directed_eb, (during which there's no cancel checks)? If so, you could pass the feedback object into that method and also add cancel checks within it.

from qgis-edge-bundling.

anitagraser avatar anitagraser commented on August 20, 2024

Good catch, thank you!

from qgis-edge-bundling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.