dfo-mar-odis / dart

DFO At-sea Reporting Template, collect Elog, CTD and sample data at sea to produce reports then upload to BioChem at the end of the mission
3 stars 1 forks source link

Pandas Encoding Issue #133

Closed upsonp closed 4 months ago

upsonp commented 4 months ago

When reading TEL2024880 Oxygen and Salt samples into Dart I was getting an issue with pandas. The 'data' was in a byte stream, which use to work, but is now giving an error. I had to change data_frame = pd.read_csv(data, nrows=30, header=None) to data_frame = pd.read_csv(io.StringIO(data.decode('utf-8')), nrows=30, header=None) in two places in form_sample_type_config.py to read the data.