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

Changed env var warning to info + updated unit test + using PyPI csv2bufr #52

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

RoryPTB
Copy link
Contributor

@RoryPTB RoryPTB commented Mar 26, 2024

No description provided.

Copy link
Member

@david-i-berry david-i-berry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest minor change to log message re not set environment variable.

ORIGINATING_CENTRE = os.environ.get("BUFR_ORIGINATING_CENTRE", 65535) # noqa
ORIGINATING_SUBCENTRE = os.environ.get("BUFR_ORIGINATING_SUBCENTRE", 65535) # noqa

if ORIGINATING_CENTRE == 65535:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if ORIGINATING_CENTRE is set to 65535? Is this still classed as missing, i.e. the value is set to a missing value rather then the ENV being missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made these changes to align with your code as requested by Maaike. I will change it back now

synop2bufr/__init__.py Show resolved Hide resolved
@RoryPTB RoryPTB merged commit 9530d90 into main Mar 27, 2024
10 checks passed
@RoryPTB RoryPTB deleted the env_vars branch March 27, 2024 15:14
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 this pull request may close these issues.

2 participants