Comments (4)
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.
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.
This issue has been resolved in version 1.8.
from pydsstools.
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)
- Note on DSS Version 6 versus DSS Version 7 grid records. HOT 7
- Installation problem HOT 2
- Issue with installation of pydsstools HOT 2
- Suppress Output HOT 5
- Why is `trim_missing=True` the default method `read_ts` ? HOT 2
- cannot import name 'core_heclib' from 'pydsstools._lib.x64' HOT 1
- Support for python 3.11 HOT 3
- HEC DSS minor but breaking changing coming
- Problem with merging different HEC-DSS file HOT 5
- 2.2 wheels for Linux HOT 4
- cannot import core heclib HOT 3
- ERRO WARNING:root:-----DSS--- ztsRetrieveReg Warning: Invalid date or time given, after trying to open a DSS file HOT 1
- Unable to install in windows 11 pro getting error wheel is not supported HOT 3
- readme has incorrect example for overriding CRS when calling `save_tiff` HOT 3
- print statements HOT 3
- Incorrect dates returned with Monthly Time series HOT 10
- Example - writing a GIS Tiff file to DSS. HOT 2
- Uncertainty about the grid's boundaries
- cannot install from pip HOT 9
- WARNING:root:-----DSS--- ztsRetrieve Warning: No time window given, or invalid date or time specified. 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 pydsstools.