Code Monkey home page Code Monkey logo

Comments (3)

joshburkart avatar joshburkart commented on August 24, 2024

Example output:

\n\nA
 Slope calculation (radians)\x1b[39m\nC Horn, B.K.P., 1981. Hill shading and the reflectance map. Proceedings of the IEEE 69, 14\u201347. doi:10.1109/PROC.1981.11918\x1b[39m\n\n\
r\x1b[2K\r\x1b[2K[==                                                ] (4% - 0.0s - 1 threads)\r\x1b[2K[====                                              ] (9% - 0.0s - 1 threads)
\r\x1b[2K[=======                                           ] (14% - 0.0s - 1 threads)\r\x1b[2K[=========                                         ] (19% - 0.0s - 1 threads)\r\x1b
[2K[===========                                       ] (23% - 0.0s - 1 threads)\r\x1b[2K[==============                                    ] (28% - 0.0s - 1 threads)\r\x1b[2K[==
==============                                  ] (33% - 0.0s - 1 threads)\r\x1b[2K[===================                               ] (38% - 0.0s - 1 threads)\r\x1b[2K[========
=============                             ] (42% - 0.0s - 1 threads)\r\x1b[2K[=======================                           ] (47% - 0.0s - 1 threads)\r\x1b[2K[==============
============                        ] (52% - 0.0s - 1 threads)\r\x1b[2K[============================                      ] (57% - 0.0s - 1 threads)\r\x1b[2K[====================
==========                    ] (61% - 0.0s - 1 threads)\r\x1b[2K[=================================                 ] (66% - 0.0s - 1 threads)\r\x1b[2K[==========================
=========               ] (71% - 0.0s - 1 threads)\r\x1b[2K[======================================            ] (76% - 0.0s - 1 threads)\r\x1b[2K[================================
========          ] (80% - 0.0s - 1 threads)\r\x1b[2K[==========================================        ] (85% - 0.0s - 1 threads)\r\x1b[2K[======================================
=======     ] (90% - 0.0s - 1 threads)\r\x1b[2K[===============================================   ] (95% - 0.0s - 1 threads)\r\x1b[2Kt Wall-time = 0.000431681\x1b[39m\n\nA Curvat
ure attribute calculation\x1b[39m\nC Zevenbergen, L.W., Thorne, C.R., 1987. Quantitative analysis of land surface topography. Earth surface processes and landforms 12, 47\u201356
.\x1b[39m\n\n\r\x1b[2K\r\x1b[2K[==                                                ] (4% - 0.0s - 1 threads)\r\x1b[2K[====                                              ] (9% - 0.0
s - 1 threads)\r\x1b[2K[=======                                           ] (14% - 0.0s - 1 threads)\r\x1b[2K[=========                                         ] (19% - 0.0s - 1
threads)\r\x1b[2K[===========                                       ] (23% - 0.0s - 1 threads)\r\x1b[2K[==============                                    ] (28% - 0.0s - 1 thread
s)\r\x1b[2K[================                                  ] (33% - 0.0s - 1 threads)\r\x1b[2K[===================                               ] (38% - 0.0s - 1 threads)\r\x
1b[2K[=====================                             ] (42% - 0.0s - 1 threads)\r\x1b[2K[=======================                           ] (47% - 0.0s - 1 threads)\r\x1b[2K[
==========================                        ] (52% - 0.0s - 1 threads)\r\x1b[2K[============================                      ] (57% - 0.0s - 1 threads)\r\x1b[2K[======
========================                    ] (61% - 0.0s - 1 threads)\r\x1b[2K[=================================                 ] (66% - 0.0s - 1 threads)\r\x1b[2K[============
=======================               ] (71% - 0.0s - 1 threads)\r\x1b[2K[======================================            ] (76% - 0.0s - 1 threads)\r\x1b[2K[==================
======================          ] (80% - 0.0s - 1 threads)\r\x1b[2K[==========================================        ] (85% - 0.0s - 1 threads)\r\x1b[2K[========================
=====================     ] (90% - 0.0s - 1 threads)\r\x1b[2K[===============================================   ] (95% - 0.0s - 1 threads)\r\x1b[2Kt Wall-time = 0.000370996\x1b[3
9m\n\nA Aspect attribute calculation\x1b[39m\nC Horn, B.K.P., 1981. Hill shading and the reflectance map. Proceedings of the IEEE 69, 14\u201347. doi:10.1109/PROC.1981.11918\x1b[
39m\n\n\r\x1b[2K\r\x1b[2K[==                                                ] (4% - 0.0s - 1 threads)\r\x1b[2K[====                                              ] (9% - 0.0s - 1
threads)\r\x1b[2K[=======                                           ] (14% - 0.0s - 1 threads)\r\x1b[2K[=========                                         ] (19% - 0.0s - 1 thread
s)\r\x1b[2K[===========                                       ] (23% - 0.0s - 1 threads)\r\x1b[2K[==============                                    ] (28% - 0.0s - 1 threads)\r\x
1b[2K[================                                  ] (33% - 0.0s - 1 threads)\r\x1b[2K[===================                               ] (38% - 0.0s - 1 threads)\r\x1b[2K[
=====================                             ] (42% - 0.0s - 1 threads)\r\x1b[2K[=======================                           ] (47% - 0.0s - 1 threads)\r\x1b[2K[======
====================                        ] (52% - 0.0s - 1 threads)\r\x1b[2K[============================                      ] (57% - 0.0s - 1 threads)\r\x1b[2K[============
==================                    ] (61% - 0.0s - 1 threads)\r\x1b[2K[=================================                 ] (66% - 0.0s - 1 threads)\r\x1b[2K[==================
=================               ] (71% - 0.0s - 1 threads)\r\x1b[2K[======================================            ] (76% - 0.0s - 1 threads)\r\x1b[2K[========================
================          ] (80% - 0.0s - 1 threads)\r\x1b[2K[==========================================        ] (85% - 0.0s - 1 threads)\r\x1b[2K[==============================
===============     ] (90% - 0.0s - 1 threads)\r\x1b[2K[===============================================   ] (95% - 0.0s - 1 threads)\r\x1b[2Kt Wall-time = 0.00044846\x1b[39m

from richdem.

r-barnes avatar r-barnes commented on August 24, 2024

This is a good idea. As a workaround until I have time to fix this, you could consider temporarily redirecting output:

https://stackoverflow.com/questions/6796492/temporarily-redirect-stdout-stderr

Does this help?

from richdem.

joshburkart avatar joshburkart commented on August 24, 2024

Ah, I tried that but it unfortunately didn't seem to work... I'm guessing contextlib.redirect_stdout only operates within Python and doesn't affect C++ stuff that writes directly to /dev/stdout? Anyways I can totally just eat the messages for now! 😁

from richdem.

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.