Somewhere in the code for dealing with duplicate timestamps in io.py, instrument_type gets changed to a float. I'm also not sure it is dropping the right things. I have added the following print statements
if len(ds_combined.time) != len(ds_combined.time.drop_duplicates(dim="time")):
timestamps = ds_combined.time.to_series()
duplicated_timestamps = timestamps[timestamps.duplicated(keep="first")]
print(duplicated_timestamps)
for timestamp in duplicated_timestamps:
print(ds_combined.instrument_type.sel(time=timestamp).values)
For multiple duplicate timestamps (with two Picarros) I get:
So on the first loop it prints integers (fine), then on the second loop it prints floats (weird), on the third loop it is no longer an array with two instruments (surely not the intention?). In my error log I get:
HFD co: TypeError in stack: run (line 397) / io (line 798). iteration over a 0-d array
Somewhere in the code for dealing with duplicate timestamps in io.py, instrument_type gets changed to a float. I'm also not sure it is dropping the right things. I have added the following print statements
For multiple duplicate timestamps (with two Picarros) I get:
So on the first loop it prints integers (fine), then on the second loop it prints floats (weird), on the third loop it is no longer an array with two instruments (surely not the intention?). In my error log I get:
HFD co: TypeError in stack: run (line 397) / io (line 798). iteration over a 0-d array