Replies: 4 comments 1 reply
-
@tomvothecoder FYI ^ |
Beta Was this translation helpful? Give feedback.
-
@tomvothecoder I made another version of the script here, which looks for any CDAT dependency anywhere in
Output:
|
Beta Was this translation helpful? Give feedback.
-
@tomvothecoder Many of the CDAT dependencies come in via calls to functions defined elsewhere. There are several ways to visualize such dependencies, which may prove more useful than this text-based approach. Someone mentioned at the US RSE conference that PyCharm has a dependency graph feature. I believe that's this: https://www.jetbrains.com/help/pycharm/viewing-model-dependency-diagram.html Since we use VS Code, perhaps https://marketplace.visualstudio.com/items?itemName=sz-p.dependencygraph would be a better plug-in to try out. (Assuming we don't need any special approvals to install third-party plug-ins). |
Beta Was this translation helpful? Give feedback.
-
I created a conda dev environment without CDAT so I could see if our pre-commit tools could find any remaining CDAT dependencies, but apparently that doesn't provide any useful information. (I was hoping the linter would produce output like "this function isn't defined" [because the CDAT dependency isn't installed]). For reference, I wrote
Then:
|
Beta Was this translation helpful? Give feedback.
-
This script will generate directly-called CDAT dependencies in
e3sm_diags
:The output is:
Beta Was this translation helpful? Give feedback.
All reactions