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

Move _get_time_bounds from preprocessor._time to cmor.check to avoid circular import with cmor module #1037

Merged
merged 4 commits into from
Mar 10, 2021

Conversation

valeriupredoi
Copy link
Contributor

Closes #1036

as a thumb rule, we should really not use variable names like time as well as we should make a proper __init__.py file for the cmor module - this fix here is not elegant at all but until we de-convolute cmor module from preprocessor modue via a good __init__ file I can't see another solution

@valeriupredoi valeriupredoi added the bug Something isn't working label Mar 8, 2021
@valeriupredoi
Copy link
Contributor Author

@bouweandela frenly ping so we can fix the failing tests sooner than later 👍

esmvalcore/cmor/check.py Outdated Show resolved Hide resolved
@bouweandela
Copy link
Member

Thanks for looking into this @valeriupredoi!

@valeriupredoi valeriupredoi changed the title Import esmvalcore.preprocessor inside function to avoid circular import with cmor module Move _get_time_bounds from preprocessor._time to cmor.check to avoid circular import with cmor module Mar 9, 2021
@bouweandela bouweandela merged commit c4bc763 into master Mar 10, 2021
@bouweandela bouweandela deleted the fix_circular_import branch March 10, 2021 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conda build broken
2 participants