dparrini / python-comtrade

A module designed to read Common Format for Transient Data Exchange (COMTRADE) file format.
MIT License
80 stars 41 forks source link

re.time match nonetype error #34

Closed R-Ormrod closed 1 year ago

R-Ormrod commented 2 years ago

line 65 of contrade.py causes an error on some comtrade files as it expects only 2 numbers after the second ':'

this line should read re_time = re.compile(r"([0-9]{1,2}):([0-9]{2}):([0-9]{1,2})(.([0-9]{1,12}))?")

allowing 1, or 2 values in that position.

dparrini commented 1 year ago

Hi, @R-Ormrod , thanks for the solution! It's now integrated.