@@ -54,6 +54,15 @@ def __exit__(self, exc_type, exc_val, exc_tb):
5454 exc_tb (traceback): The traceback object.
5555 """
5656 self .close ()
57+ @staticmethod
58+ def set_global_debug_level (level : int ) -> None :
59+ """
60+ Sets the library debug level
61+
62+ Args:
63+ level (int): a value between 0 and 15. Larger for more output
64+ """
65+ _Native ().hec_dss_set_debug_level (level )
5766 def close (self ):
5867 """closes the DSS file and releases any locks
5968 """
@@ -506,7 +515,7 @@ def put(self, container) -> int:
506515 raise Exception ("Time Series has an empty times array" )
507516
508517 startDate , startTime = DateConverter .dss_datetime_strings_from_datetime (ts .times [0 ])
509- quality = [] # TO DO
518+ quality = container . quality
510519
511520 status = self ._native .hec_dss_tsStoreRegular (
512521 ts .id ,
@@ -525,7 +534,7 @@ def put(self, container) -> int:
525534 # saveAsFloat, units, type):
526535 start_date_base = (datetime (1900 , 1 , 1 )+ timedelta (days = its .julian_base_date ))
527536 startDate , startTime = DateConverter .dss_datetime_strings_from_datetime (start_date_base )
528- quality = [] # TO DO
537+ quality = container . quality
529538 julian_times = DateConverter .julian_array_from_date_times (its .times , its .time_granularity_seconds , start_date_base )
530539 if max (julian_times ) >= 2147483647 :
531540 raise Exception ("Julian times contains value larger than 2147483647, increase granularity or change "
0 commit comments