Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bouhia30 opened this issue Jun 28, 2023 · 1 comment

Comments

@bouhia30
Copy link

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
Copy link
Owner

gyanz commented Jun 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants