PMEAL / porespy

A set of tools for characterizing and analying 3D images of porous materials
https://porespy.org
MIT License
302 stars 98 forks source link

All tqdm instances should include a description. #941

Open jgostick opened 6 months ago

jgostick commented 6 months ago

The tqdm function accepts the desc keyword, which will then include a text description of what the progress bar is doing. We should probably fetch the function name where tqdm is actually running and at least include this, like info = inspect.getouterframes(inspect.currentframe())[1].function then tqdm(iter, desc=info, ...).

jgostick commented 3 months ago

During our brief testing today it seems that the inspect trick did not work, so this needs to be investigated first.