Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing values causing descriptors values taken as a list #34

Open
alhelguera opened this issue Feb 19, 2025 · 0 comments · May be fixed by #35
Open

missing values causing descriptors values taken as a list #34

alhelguera opened this issue Feb 19, 2025 · 0 comments · May be fixed by #35

Comments

@alhelguera
Copy link
Collaborator

While checking an error that the colleagues from Chile were receiving:

File "/usr/local/lib/python3.10/dist-packages/bufr2geojson/__init__.py", line 488, in get_zcoordinate
    z_amsl = station_ground.get('value') + self.qualifiers["07"].get(rel_height[0], {}).get('value')  # noqa
TypeError: unsupported operand type(s) for +: 'float' and 'list'

Found an issue where the values from same-key descriptors are appended incorrectly into a list if the descriptor between them has it's value missing.

@alhelguera alhelguera linked a pull request Feb 19, 2025 that will close this issue
@maaikelimper maaikelimper linked a pull request Feb 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant