Comments (4)
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.
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)
from pyteltools.
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.
Great, thank you.
from pyteltools.
Related Issues (20)
- plot a Serafin results file using Python API HOT 4
- `SerafinHeader.from_triangulation` performance HOT 3
- Support for 3D boundary files HOT 4
- Depth-averaging for 3D Serafin files HOT 2
- Add two variables HOT 2
- Fix temporal mean operator
- Interpolate to 2D vertical cross section HOT 2
- Provide example to reproject result HOT 1
- Error in Vertical Cross Section HOT 6
- Creating workflow and running from terminal HOT 1
- Error in SynchMax HOT 9
- Question regarding volume calculation HOT 2
- Liquid Flux Calculation Orientation HOT 1
- Duration over threshold
- Language selection in comp_ADCP_t2d HOT 1
- Create release
- Add t3s read/write to BlueKenue.py
- Serafin.Write creates a ghosted frame HOT 4
- Propose to add get_time_fast() to the Sefafin.py HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyteltools.