You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Metadata key lookup should work without error.
Screenshots
UNIQUE METADATAINDEXES:
[4638. 4639. 4640. 4641. 4642. 4643. 4644. 4645. 4646. 4647. 4648. 4649.
4650. 4651. 4652. 4653. 4654. 4655. 4656. 4657. 4658. 4659. 4660. 4661.
4662. 4663. 4664.]
METADATA KEYS:
dict_keys([0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0])
Traceback (most recent call last):
File "/home/thlun8736/Documents/work/aerotools-scripts/bug.py", line 16, in <module>
df["station_id"] = [data.metadata[x]["station_id"] for x in data._data[:, data._METADATAKEYINDEX]]
File "/home/thlun8736/Documents/work/aerotools-scripts/bug.py", line 16, in <listcomp>
df["station_id"] = [data.metadata[x]["station_id"] for x in data._data[:, data._METADATAKEYINDEX]]
KeyError: 4638.0
Additional context
Unique metadata key indexes has the same number of sequential entries as the dictionary, so it seems likely that some erroneous offset is being applied.
UngriddedData.merge may be where this issue occurs as it is the only place which seems to apply an offset.
The text was updated successfully, but these errors were encountered:
Describe the bug
Please provide a clear and concise description of what the bug is.
To Reproduce
The following script reproduces the error:
Expected behavior
Metadata key lookup should work without error.
Screenshots
Additional context
UngriddedData.merge
may be where this issue occurs as it is the only place which seems to apply an offset.The text was updated successfully, but these errors were encountered: