nrgpy
nrgpy copied to clipboard
When Data is empty, there will get an error: AttributeError: 'SymProTextRead' object has no attribute 'data'
This is first txt file read in data_dir
. Data is empty:
NRG Systems SymphoniePRO Desktop Application
Software Version: 3.15.0.11 (build built by CI server 2023-06-13)
... ...
... ...
Channel: 17
Effective Date: 2023-08-16 22:05:03
Type: Analog
Data Logging Mode: Statistics
Description: NRG RH5X Humi
Serial Number:
Height: 10.00
Bearing: 0.00
Scale Factor: 20.00000
Offset: 0.00000
Units: %RH
Reference Voltage: 5 V
Excitation Mode: Constant On
Excitation Value: 12 V
Data
I have other txt files in this dir.
reader = nrgpy.SymProTextRead()
reader.concat_txt(txt_dir=data_dir, ch_details=True, start_date=start_date, progress_bar=False)
print(reader.data)
I got an error:
AttributeError: 'SymProTextRead' object has no attribute 'data'