Git Product home page Git Product logo

Comments (4)

gyanz avatar gyanz commented on August 16, 2024

I suggest including following code at the beginning of file or code to suppress the print statements:

from pydsstools.heclib.utils import dss_logging
dss_logging.config(level='None')

The level parameter can be None, Error, Critical, General, Info, Debug or Diagnostic.

from pydsstools.

openSourcerer9000 avatar openSourcerer9000 commented on August 16, 2024

Hm, I'm trying that and it's still printing:

WARNING:root:Setting DSS Logging, Method = 0, Level = 0

WARNING:root:Setting DSS Logging, Method = 0, Level = 0

WARNING:root:Setting DSS Logging, Method = 0, Level = 0

-----DSS---ZOPEN:  Existing File Opened,  File: C:\Users\openSourcerer\CDT.dss

                   Unit:    3;  DSS Versions - Software: 6-YN, File: 6-KE,  Library 7-HS

-----DSS---ZREAD Unit 3; Vers. 1: //72106/PRECIP-INC/01JUN2001/15MIN//

-----DSS---ZREAD Unit 3; Vers. 1: //72774/PRECIP-INC/01JUN2001/15MIN//

-----DSS---ZREAD Unit 3; Vers. 1: //74436/PRECIP-INC/01JUN2001/15MIN//

-----DSS---ZREAD Unit 3; Vers. 1: //74455/PRECIP-INC/01JUN2001/15MIN//

from pydsstools.

gyanz avatar gyanz commented on August 16, 2024

This issue has been resolved in version 1.8.

from pydsstools.

JoeShmoJo avatar JoeShmoJo commented on August 16, 2024

I have the latest version recently installed from pip but the logging suppression is not working for me. I'm getting pages of logging and warnings that I'm using incompatible DSS versions (I'm using DSS 6, not 7) but the DSS reading and writing seems to be working fine. I see this issue is a couple years old. Has there been any recent fixes?

from pydsstools.

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.