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

Python is construct is forbidden and should error out at gtscript level #60

Open
1 task
FlorianDeconinck opened this issue Sep 6, 2024 · 0 comments
Open
1 task

Comments

@FlorianDeconinck
Copy link
Collaborator

The following code should error at gtscript level:

def (a_bool: bool, x: FloatField):
     with computation(PARALLEL), interval(...):
         if a_bool is True:
             x = 42

Parent: GEOS-ESM/SMT-Nebulae#36


  • Fail with a clean feedback for the user
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

1 participant