Skip to content

User defined function arguments #65

Answered by nusbaume
brianpm asked this question in Q&A
Discussion options

You must be logged in to vote

@andrewgettelman @brianpm I have made a working example of what this object-passing interface for a script would look like for the regrid_example.py script. Specifically, compare the version on glade here (with the ADF object interface):

/glade/work/nusbaume/SE_projects/model_diagnostics/ADF_fork/scripts/regridding/regrid_example_new.py

with the original version here:

/glade/work/nusbaume/SE_projects/model_diagnostics/ADF_fork/scripts/regridding/regrid_example.py

Obviously the new version requires extra lines to extract the necessary variables, but the actual function interface is much simplified (as well as the code in adf_diag.py). Plus this method gives the script access to the ADF deb…

Replies: 13 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@brianpm
Comment options

brianpm Nov 16, 2021
Collaborator Author

Comment options

You must be logged in to vote
0 replies
Comment options

brianpm
Nov 16, 2021
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@brianpm
Comment options

brianpm Nov 16, 2021
Collaborator Author

@andrewgettelman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@brianpm
Comment options

brianpm Nov 18, 2021
Collaborator Author

@brianpm
Comment options

brianpm Nov 30, 2021
Collaborator Author

Answer selected by brianpm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@brianpm
Comment options

brianpm Nov 29, 2021
Collaborator Author

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants