gyanz / pydsstools

Python library for simple HEC-DSS functions
MIT License
80 stars 36 forks source link

ERRO WARNING:root:-----DSS--- ztsRetrieveReg Warning: Invalid date or time given, after trying to open a DSS file #48

Open bouhia30 opened 1 year ago

bouhia30 commented 1 year ago

Dear Support team,

Description: I encountered an error while using pydsstools library in Python when running the following command:

fid = HecDss.Open(dss_file)

The error message I received is:

WARNING:root:-----DSS--- ztsRetrieveReg Warning: Invalid date or time given.

This error seems to be related to retrieving data from the time series in the DSS file. It indicates that the provided date or time value is invalid.

Steps to Reproduce:

To reproduce the issue, you can follow these steps: Install pydsstools library (version X.X.X) in your Python environment.

Import the necessary modules and classes:

from hec.heclib.dss import HecDss

Open a DSS file using the HecDss.Open method:

fid = HecDss.Open(dss_file)

Replace dss_file with the path to your specific DSS file.

Expected Behavior: I expected the DSS file to be successfully opened without any warning or error related to invalid date or time values.

Actual Behavior:

The warning message "WARNING:root:-----DSS--- ztsRetrieveReg Warning: Invalid date or time given" is displayed, indicating an issue with the provided date or time.

Additional Information:

I have verified that the date and time values used are valid and correctly formatted according to the requirements of the pydsstools library.

I have checked the documentation for pydsstools but couldn't find any specific guidance related to this warning.

I am running Python 3.9 on Windows 11.

Please let me know if any further information is needed to investigate and resolve this issue. Thank you for your assistance!

gyanz commented 1 year ago

Above information is not sufficient to reproduce the issue. Please post more lines from your code.