utah-geological-survey / loggerloader

ArcGIS Toolbox for use with ArcGISpro that allows for import and trend processing of water-level transducer data
https://apps.geology.utah.gov/gwdp/
GNU General Public License v3.0
2 stars 2 forks source link

Bulk Processor Gets stuck on Certain Files #28

Open inkenbrandt opened 2 years ago

inkenbrandt commented 2 years ago

Traceback (most recent call last): File "tkinter__init.py", line 1705, in call File "llgui.py", line 291, in File "llgui.py", line 470, in make_file_info_table File "loader.py", line 1430, in xle_head File "loader.py", line 983, in init__ File "loader.py", line 1257, in new_xle_imp File "pandas\core\tools\datetimes.py", line 808, in to_datetime File "pandas\core\tools\datetimes.py", line 908, in _assemble_from_unit_mappings ValueError: to assemble mappings requires at least that [year, month, day] be specified: [day,month,year] is missing

Add error handling for this line: f['DateTime'] = pd.to_datetime(f.apply(lambda x: x['Date'] + ' ' + x['Time'], 1))

inkenbrandt commented 2 years ago

Issue happened on files without data. Need to recognize files without data.