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

replace globals by locals #1802

Merged
merged 1 commit into from
Jun 1, 2023
Merged

replace globals by locals #1802

merged 1 commit into from
Jun 1, 2023

Conversation

ReimarBauer
Copy link
Member

No description provided.

@ReimarBauer ReimarBauer requested a review from joernu76 May 26, 2023 18:08
@@ -35,7 +35,7 @@
from metpy.xarray import preprocess_and_wrap
import metpy.calc as mpcalc

exporter = Exporter(globals())
exporter = Exporter(locals())
Copy link
Member

@joernu76 joernu76 May 30, 2023

Choose a reason for hiding this comment

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

This doesn't make sense. The Exporter is a metpy helper class that maintains the "__all__" list of module symbols.
Also, is there a difference in globals/locals at this point in the code???
I do not now why we use this anyway. I suggest removing it and its decorator use below.

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea :)

Copy link
Member Author

@ReimarBauer ReimarBauer left a comment

Choose a reason for hiding this comment

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

@joernu76 can you try to approve this, as initial author I can't

@open-mss-build open-mss-build requested review from crolf and gisi90 June 1, 2023 04:54
@joernu76 joernu76 merged commit 04d030b into develop Jun 1, 2023
@joernu76 joernu76 deleted the thermolib branch June 13, 2023 10:46
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