Git Product home page Git Product logo

Comments (4)

lucduron avatar lucduron commented on May 29, 2024

Thank you @alesok for reporting this bug.
Could you give us more details about this problem : the complete traceback or the procedure you followed (what did you tried to do : compute a volume? a flux?).

from pyteltools.

alesok avatar alesok commented on May 29, 2024

Hi, Sorry, there is no traceback for this bug - I use pyteltools.slf.interpolation programmatically in my code. As far as I can see there is only one call of MeshInterpolator with construct_index=True in the PyTelTools code tree which possibly can affect the GUI of PyTelTools.

See workflow/util.py

    def build_mesh(self, input_data):
        return MeshInterpolator(input_data.header, True)

image

from pyteltools.

lucduron avatar lucduron commented on May 29, 2024

Thank you for these details, I understand now your problem in case of calling MeshInterpolator without iter_pbar argment. Indeed some long computations/loops may require a progress (for the user) and to factor the code (for GUI and CLI) we used the "generic" argument called iter_pbar, but we did not try without any argument (in this case, there is no progress bar and iter_pbar should be a kind of "identity function"). Thanks to your issue, we fixed it in the last commit 5a1134e.
If you want to display a progress bar in a terminal, you could use the module tqdm, furthermore the argument unit is used only for tqdm. Here is an example:

from pyteltools.slf.mesh2D import Mesh2D
from pyteltools.slf.Serafin import Read

from tqdm import tqdm


with Read("../PyTelTools_validation/data/pildepon/f3d_piledepon.slf", 'en') as in_slf:
    in_slf.read_header()
    header = in_slf.header
    mesh = Mesh2D(header, True, tqdm)

from pyteltools.

alesok avatar alesok commented on May 29, 2024

Great, thank you.

from pyteltools.

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.