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

generate_metadata_table prints variables that I did not define #97

Open
emmanuellaiyke opened this issue Feb 2, 2021 · 1 comment
Open

Comments

@emmanuellaiyke
Copy link

Good day,

I am currently having issues printing my defined variables without printing essm defined variables alongside. Could you look into this?

Regards.

@schymans
Copy link
Collaborator

schymans commented Feb 9, 2021

Thanks for reporting. The problem only occurs if I import at least one variable from essm.variables. For some reason, generate_metadata_table then lists all variables from the module, even those that were not imported. Example using essm 1.1:

from essm.variables import Variable
from essm.variables.utils import generate_metadata_table
from essm.variables.physics.thermodynamics import R_mol

class var1(Variable):
    """Test variable"""

generate_metadata_table()

The table now contains all variables from essm.variables.physics.thermodynamics.

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

No branches or pull requests

2 participants