shawes / mesh3d-python

Mesh3d is an application to layer quadrats on 3D mesh files
MIT License
0 stars 0 forks source link

Progress indicator #4

Open willfig opened 7 years ago

willfig commented 7 years ago

Would there be any way to give a progress indicator when the script is running, especially for the more time consuming steps?

shawes commented 7 years ago

I'll look into it. Hopefully with pypy, the code should take less than 30 seconds to run. However, I agree it is a good idea. The idea with verbose was to try and print text after each stage is completed, but if one stage takes a long time there won't be any output.

Potentially a solution could be found using this library: https://github.com/tqdm/tqdm

willfig commented 7 years ago

Does this mean you implemented this?

shawes commented 7 years ago

Yep, just quickly did it this morning.

I also added some notes on Yammer about running your python code in a virtual environment. Its good practice for python code. The steps are for running it via the command line. But PyCharm actually bundles virtual environments in with the IDE (https://www.jetbrains.com/help/pycharm/2017.1/creating-virtual-environment.html)

On 26 May 2017, at 11:09 am, Will Figueira notifications@github.com wrote:

Does this mean you implemented this?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/shawes/mesh3d-python/issues/4#issuecomment-304179575, or mute the thread https://github.com/notifications/unsubscribe-auth/ADvS1tx_XK9MSSgzTEgzV2XKBSm5EG7Fks5r9kKGgaJpZM4Njmis.

shawes commented 6 years ago

Had to temporarily remove to get working on the linux server, as it does not allow connections to the internet to download the required python package.